Otf language tags

mauro sacchettomauro sacchetto Posts: 261
edited May 17 in Font Technology
In reference to this discussion:
I solved almost all the problems, but one thing still remains obscure to me.
The difficulty is twofold, since it involves on the one hand creating the correct lookups for the font, on the other hand making sure that the text code applies them in turn correctly.
Now, (Lua)LaTeX with Fontspec and Babel allows you to choose among several options: 1) monotonic modern Greek, 2) polytonic modern Greek, 3) ancient greek (polytonic). In this case the code I use is the following:
But I should set up appropriate scripts in the font. Now, also by consulting for example this list:
I can't find specific tags related to ancient Greek.
I tried using the GRC and GRK specifications (in addition to PGR), which however do not seem to be correct otf tags.
In fact, a verification of the font tells me:
otfinfo -s SimonciniGaramondPro.otf
DFLT Default
grek Greek
grek.GRC Greek / <unknown language>   <=======
grek.GRK Greek / <unknown language>   <=======
grek.PGR Greek / Polytonic Greek
latn Latin
latn.AZE Latin / Azeri
latn.CRT Latin / Crimean Tatar
latn.DEU Latin / German
latn.FRA Latin / French
latn.ITA Latin / Italian
latn.MOL Latin / Moldavian
latn.ROM Latin / Romanian
latn.TRK Latin / Turkish.
Now, is there any way out? Can't 'locl' lookups have Greek as their language and 'ancient' as specification?
What are the linguistic alternatives allowed?


  • John HudsonJohn Hudson Posts: 1,869
    edited May 17
    As originally conceived, the OTL ‘language system’ tags were intended to capture typographic conventions associated with writing systems within particular locales. So, for example, one might have had a set of layout features and lookups for the Greek script associated with German or French language system tags to capture the conventions of scholarly typography of Greek in those countries (e.g. regarding use of different form of lowercase beta).

    Obviously, this use of the tags has not really come to fruition, and instead there are more or less unreliable attempts to map the OTL language system tags to document language tagging, often via the same mechanisms used to specify spelling and hyphenation dictionaries.

    The OTL language system tags for Greek are:
    Greek	'ELL '
    Polytonic Greek	'PGR '
    Whether those language system tags and associated features are accurately mapped from document language tagging in specific environments has to be tested on a case-by-case basis.
  • mauro sacchettomauro sacchetto Posts: 261
    edited May 20
    Although this forum is not dedicated to LaTeX, I think font designers can be interested in whether and how the features they implement can then be realized by the various writing tools.
    In the specific case, the solution with (Lua) Latex is the following:

    This combines respect for the glyphs (in Greek, if there are differences between monotonic and polytonic diacritics) and the loading of the correct hyphenation patterns (in the case of Greek, ancient and modern)
Sign In or Register to comment.