For a modern edition of music from the seventeenth century Spanish empire, I need to typeset certain antiquated abbreviations in the manuscript sources. In this convention, the middle part of the word is abbreviated and the ending is centered over the period. For example:
For the curious, this expands to "Al Santissimo [Sacramento]. a 8", meaning the piece is dedicated to the Blessed Sacrament (and so used for Corpus Christi or Eucharistic devotion), and is scored for eight voices.
The command in the MWE does this using \rlap, but the ending is left-aligned with the period.
When using italics (at least when using ebgaramond), the ending collides with the preceding letter.
How could I space this better so that the ending is centered over the period without collisions, in both roman and italic type?
\documentclass[12pt]{article}
\usepackage{ebgaramond}
\usepackage[T1]{fontenc}
\newcommand{\oldabbrev}[2]{#1\rlap{.}\textsuperscript{#2}}
\begin{document}
\oldabbrev{M}{o} Salazar, \oldabbrev{Villan}{co} al \oldabbrev{SS}{mo} a 8
\itshape
\oldabbrev{M}{o} Salazar, \oldabbrev{Villan}{co} al \oldabbrev{SS}{mo} a 8
\end{document}







Also, it doesn't "make sense" (to me) to center the period for this type of abbreviation, because the period denotes an abbreviation, and always goes at the end of the word in that case. The superscript letters are just there to clarify, because there could be multiple words with the same abbreviation.
– sig_seg_v Jun 08 '16 at 03:07