Theoretical question
Why are small caps and italics of the same typeface treated as if they were absolutely different (and, as a consequence, they aren't properly kerned)?
I know no —so to speak— «organic» family typeface (or software to generate so), in the sense that it has metrics between regular and italics (or bold). However, most OTFs/TTFs today include in the same file the small caps and its kerning character/class pairs. The fontspec package (?) seems to ignore this feature.
Practical question
Is there any way to kern pairs of small caps, italics and regular characters? There are some specific combinations which are annoying, such as small capital w
and period or italic e
and »
: in the first case, the dot looks too far; in the second, the guillemot may even almost collide with some fonts.
XeteX ignores the definitions of \XeTeXinterchartoks when the characters are not only regular, only italics or only small caps.
MWE with simple macros
\documentclass{article}
\usepackage{ebgaramond}
\usepackage{csquotes}
\newcommand\firstabb{AW}
\newcommand\secondabb{\textsc{aw}}
\newcommand\firstex{ce}
\newcommand\secondex{\textit{ce}}
\begin{document}
\huge
\firstabb.
\enquote{\firstex}
\secondabb.
\enquote{\secondex}
\end{document}
A second MWE involving a shorthand in the bibliography:
\documentclass[12pt]{article}
\usepackage{ebgaramond}
\usepackage{filecontents}
\usepackage[natbib=true,style=verbose-trad2,backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
@book{MEW,
author = {Marx, Karl and Engels, Friedrich},
title = {{Werke}},
shorthand = {\textsc{mew}},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{MEW}.
\cite{MEW}.
\end{document}
This is a follow-up of this former question.