This time I'm working on the bilingual edition of the First Grammatical Treatise. I chose the Brill font which is almost perfect -- by itself and for my goals -- except that it is missing a few necessary glyphs, most frequent of which is the accent that looks like dieresis with acute instead of the rightmost dot. I can emulate it with manually shifted dot and acute accents as in the attached image, but I wonder if there is some clever way to do it making use of the original glyphs' anchors?
Asked
Active
Viewed 80 times
1 Answers
4
Does that accent exist in Unicode? I don't think so.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Brill}
\newcommand{\dotacute}[1]{{%
\leavevmode
\vbox{\offinterlineskip
\dimen0=\fpeval{(\the\fontdimen1\font)/(1pt)}\expanded{\fontcharwd\font`\checki{#1}}%
\ialign{\hfil##\hfil\cr
\hskip0.5\dimen0 \clap{.{}}\kern0.15em\clap{'{}}\cr
\noalign{\vskip-1ex}
\checki{#1}\cr
}%
}%
}}
\newcommand{\checki}[1]{\ifx#1iı\else#1\fi}
\begin{document}
ramr r\dotacute{a}mr r\dotacute{i}mr R\dotacute{A}MR u\dotacute{ǫ}n
\textit{ramr r\dotacute{a}mr r\dotacute{i}mr R\dotacute{A}MR u\dotacute{ǫ}n}
\end{document}
egreg
- 1,121,712
-
Nice. Just for clarity, your answer does address the question (how to emulate the accents), but does not involve extracting the anchor points. Yes? Ineeed, knowing the anchor points might not be enough, without additional font feature that specifies what anchors in combination with others. – rallg Mar 18 '24 at 19:49
-
@egreg Thank you, Enrico, for this macro -- I'll adopt it, adding some check for kerning with adjacent letters. 20 years ago I'd have tried to write some virtual font based on the font in use to shift and combine the accents (was it possible? I can't remember exactly). Do you know if it is possible with opentype font like Brill? – Vadim Radionov Mar 18 '24 at 20:05
-
This accent is not Unicode, but some MUFI fonts have it, eg Junicode and Palemonas – Vadim Radionov Mar 18 '24 at 20:08
-
But maybe I'm wrong and this is just a way to arrange two separate accents: https://mufi.info/q.php?p=mufi/chars/unichar/58568 – Vadim Radionov Mar 18 '24 at 23:04


fontspectag. – rallg Mar 18 '24 at 16:20