4

I’ve been trying to use Greek ligatures with the font Alfios in the version available here. In particular, I’m trying to get the o-u ligature as can be seen in the image — that I get from MS Word.

enter image description here

However, when I put in the code below, I get the following image as output.

enter image description here

Why does this not work? Any ideas?

\documentclass[]{article}

\usepackage{fontspec} 
\newfontfamily{\sobergreek}{Alfios}

\begin{document}

\sobergreek\addfontfeatures{Ligatures={Rare,Historic}}
\noindent
Οὔ σε φιλῶ, Σαβίδι’, οὐχ οἷός τ’ ὤν τοῦ χάριν εἰπεῖν.\\
Οὐδὲ λέγειν δύναμαι πλείονά γ’· οὔ σε φιλῶ

\end{document}

The solution in Historic font and missing ligatures appears related, but that’s a hack where you redefine the ligatures. I’m just trying to use the relevant font feature.

1 Answer 1

5

You should activate the greek script:

\documentclass[]{article}

\usepackage{fontspec}
\newfontfamily{\sobergreek}{Alfios}

\begin{document}

\sobergreek\addfontfeatures{Script=Greek,Ligatures={Historic}}
\noindent
Οὔ σε φιλῶ, Σαβίδι’, οὐχ οἷός τ’ ὤν τοῦ χάριν εἰπεῖν.\\
Οὐδὲ λέγειν δύναμαι πλείονά γ’· οὔ σε φιλῶ

\end{document}

enter image description here

1
  • Thank you! That’s solved it. Just a clarification about the syntax: how does the script marker work? Does it activate ligatures just for Greek text, or does it say that everything following will be in Greek? Commented Apr 25, 2019 at 21:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .