Otf language tags
mauro sacchetto
Posts: 353
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:
<div>\usepackage[italian]{babel} </div><div>\babelprovide[import]{ancientgreek}</div><div> \babelprovide[import]{polytonicgreek}</div><div> \babelprovide[import]{greek}</div><div></div>
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
https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags
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.
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:
<div>otfinfo -s SimonciniGaramondPro.otf</div><div> DFLT Default</div><div> grek Greek</div><div> grek.GRC Greek / <unknown language> <=======</div><div> grek.GRK Greek / <unknown language> <=======</div><div> grek.PGR Greek / Polytonic Greek</div><div> latn Latin</div><div> latn.AZE Latin / Azeri</div><div> latn.CRT Latin / Crimean Tatar</div><div> latn.DEU Latin / German</div><div> latn.FRA Latin / French</div><div> latn.ITA Latin / Italian</div><div> latn.MOL Latin / Moldavian</div><div> latn.ROM Latin / Romanian</div><div> latn.TRK Latin / Turkish.</div><div></div>
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?
0
Comments
-
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.
0 -
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:
<div>\Documentclass </div><div>\usepackage{fontspec} </div><div>\usepackage[italian]{babel} </div><div>\babelprovide[import]{polytonicgreek} </div><div>\babelprovide[import,language=PolytonicGreek]{ancientgreek} </div><div>\babelprovide[import]{greek}</div><div><br></div><div>\babelfont{rm}[Numbersb={Proportional,bOldStyle},RawFeature=+calt]{SimonciniGaramondPro} </div><div>\babelfont[ancientgreek]{rm}{SimonciniGaramondPro} </div><div>\babelfont[polytonicgreek]{rm}{SimonciniGaramondPro} </div><div>\babelfont[greek]{rm}{SimonciniGaramondPro}</div>
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)1
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 803 Font Technology
- 1K Technique and Theory
- 618 Type Business
- 444 Type Design Critiques
- 542 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 499 Announcements
- 80 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 270 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports