Open main menu

Changes

avoid mediawiki character normalization
The following source displays the differences for each character with both accents (uppercase and lowercase characters):<ref>Of course, you should replace <code>Minion Pro</code> with the name of the font you want to test.</ref>
<texcodecontext source="yes">\definefontfamily[mainface][rm][Minion ProEBGaramond]\setupbodyfont[mainface, 60pt]
\definecolor [tred] [r=1,t=.5,a=1]
\definecolor [tblue] [b=1,t=.25,a=1]
\unexpanded\def\tonosoxia[#1][#2]
{\startTEXpage[pagestate=start, offset=1ex]dontleavehmode
\startoverlay
{\color[tred]{#1}}
{\color[tblue]{#2}}
\stopoverlay
\stopTEXpage}
\starttext
\startTEXpage[width=7.5em, align=center, offset=1ex]\tonosoxia[Ά][Ά\utfchar{0x1fbb}]\tonosoxia[Έ][Έ\utfchar{0x1fc9}]\tonosoxia[Ή][Ή\utfchar{0x1fcb}]\tonosoxia[Ί][Ί\utfchar{0x1fdb}]\tonosoxia[Ό][Ό\utfchar{0x1ff9}]\tonosoxia[Ύ][Ύ\utfchar{0x1feb}]\tonosoxia[Ώ][Ώ\utfchar{0x1ffb}]\tonosoxia[ά][ά\utfchar{0x1f71}]\tonosoxia[έ][έ\utfchar{0x1f73}]\tonosoxia[ή][ή\utfchar{0x1f75}]\tonosoxia[ί][ί\utfchar{0x1f77}]\tonosoxia[ΐ][ΐ\utfchar{0x1fd3}]\tonosoxia[ό][ό\utfchar{0x1f79}]\tonosoxia[ύ][ύ\utfchar{0x1f7b}]\tonosoxia[ΰ][ΰ\utfchar{0x1fe3}]\tonosoxia[ώ][ώ\utfchar{0x1f7d}]\stopTEXpage
\stoptext
</texcodecontext>
Depending on your operative system and your keyboard layout for polytonic Greek, it might be that it composes the acute with the monotonic accent (as it seems to happen in ''Linux'').
A workaround to avoid this would be the following:<!--<ref>Although the ConTeXt distribution seems to include the ''EB Garamond'' font family, it is probably not included in the wiki.</ref>-->
<context source="yes">\startluacode
type = "substitution",
data = {
Alphatonos = "Ά"utf.char(0x1fbb), Epsilontonos = "Έ"utf.char(0x1fc9), Etatonos = "Ή"utf.char(0x1fcb), Iotatonos = "Ί"utf.char(0x1fdb), Omicrontonos = "Ό"utf.char(0x1ff9), Omegatonos = "Ώ"utf.char(0x1ffb), Upsilontonos = "Ύ"utf.char(0x1feb), alphatonos = "ά"utf.char(0x1f71), epsilontonos = "έ"utf.char(0x1f73), etatonos = "ή"utf.char(0x1f75), iotatonos = "ί"utf.char(0x1f77), iotadieresistonos = "ΐ"utf.char(0x1fd3), omicrontonos = "ό"utf.char(0x1f79), omegatonos = "ώ"utf.char(0x1f7d), upsilontonos = "ύ"utf.char(0x1f7b), upsilondieresistonos = "ΰ"utf.char(0x1fe3),
},
}
[mainface]
[rm]
[EB GaramondEBGaramond]
[features={default, tonosoxia}]
\setupbodyfont[mainface, 24pt48pt]
\startTEXpage[offset=1em]
At least in ''Linux'' (using ''Firefox''), the option to match diacritics doesn’t distinguish between monotonic and acute accented vowels. In other operative systems and using other programs, results might differ.
 
The wiki itself seems to suffer from this “normalization” and this is why samples do not work here (and cannot be copied to work locally). A workaround would be to use {{cmd|utfchar}} (such as in the first case of {{code|\tonosoxia}}).<ref>Lua code would require {{code|utf.char}} (as contained in its code sample).</ref>
=Ancient Greek=
139

edits