The question I pose in this post concerns the correspondence between the .otf features and the settings of the LaTeX code. Because, in reality, I seem to find that this parallelism is imperfect.
(Lua)LaTeX with Fontspec and Babel allows you to choose among several options: 1) monotonic modern Greek, 2) polytonic modern Greek, 3) ancient (polytonic) greek. In fact we know that polytonic Greek is not ancient Greek. In this case the code I can use is the following:
\usepackage[italian]{babel}
\babelprovide[import]{ancientgreek}
\babelprovide[import]{polytonicgreek}
\babelprovide[import]{greek}
But I should set up appropriate scripts in the font. Now, also by consulting for example this list: https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags I can't find specific tags related to ancient Greek. Infact the OTL language system tags for Greek are only:
Greek 'ELL'
Polytonic Greek 'PGR'
Now, I can match the ELL tag to modern monotonic Greek and the tag PGR to modern polytonic Greek.
Actually, I can also use PRG and polytonicgreek
to write diacritics correctly for ancient Greek, but at this point I have to give up the correct hyphenation patterns.
What I am asking is if there is a way or a trick to properly generate the parallelism between the otf characteristics and the Latex settings for ancient Greek.
Thank you
PostScriptum
The problem becomes typographically evident in those fonts (from Adobe Garamond Premiere Pro to EBGaramond) which have slightly different (obviously acute) accents for monotonic and polytonic.
The monotonic uses its accents correctly because there is a match between the .otf tags and the LaTeX code.
The polytonic, in the same way, correctly uses its accents because there is again a correspondence between the .otf tags and the LaTeX code.
Ancient Greek instead mixes the accents, because it takes the grave accents obviously from the polytonic, but the acute ones from the monotonic and this generates a typographic inhomogeneity.
An imperfect solution is to always use polytonicgreek
and never ancientgreek
: thus the accents are homogeneous even for ancient Greek, but in this way the hyphenation patterns are loaded for modern Greek and not for ancient Greek.
\documentclass{article}
\usepackage{fontspec}
\usepackage[italian]{babel}
\babelprovide[import]{ancientgreek}
\babelprovide[import]{polytonicgreek}
\babelprovide[import]{greek}
\babelfont[ancientgreek]{rm}{SimonciniGaramondPro}
\babelfont[polytonicgreek]{rm}{SimonciniGaramondPro}
\babelfont[greek]{rm}{SimonciniGaramondPro}
\begin{document}
\selectlanguage{ancientgreek}
Ancient Greek
ὰ ὲ ὴ ὶ ὸ ὺ ὼ
ά έ ή ί ό ύ ώ
\selectlanguage{polytonicgreek}
Polytonic Greek
ὰ ὲ ὴ ὶ ὸ ὺ ὼ
ά έ ή ί ό ύ ώ
\selectlanguage{greek}
(Monotonic) Greek
ά έ ή ί ό ύ ώ
\end{document}