diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl | 133 |
1 files changed, 114 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl b/Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl index 85c1f3ac775..cd5fd4ba34e 100644 --- a/Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl +++ b/Master/texmf-dist/tex/context/base/mkxl/lang-def.mkxl @@ -269,12 +269,50 @@ \c!rightquotation=\leftguillemot, \c!date={\v!day,{.},\space,\v!month,\space,\v!year}] +\installlanguage % for now we copy from slovenian + [\s!sq] + [\c!command=\v!no, + \s!lefthyphenmin=2, + \s!righthyphenmin=2, + \c!spacing=\v!packed, + \c!leftsentence=\hbox{\endash\space}, + \c!rightsentence=\hbox{\space\endash}, + \c!leftsubsentence=\endash, + \c!rightsubsentence=\endash, + \c!leftquote=\guilsingleright, + \c!rightquote=\guilsingleleft, + \c!leftquotation=\rightguillemot, + \c!rightquotation=\leftguillemot, + \c!date={\v!day,{.},\space,\v!month,\space,\v!year}] + +\installlanguage + [\s!hy] + [\c!spacing=\v!packed, + \c!leftsentence=\endash, % *sentences not confirmed + \c!rightsentence=\endash, + \c!leftsubsentence=\endash, + \c!rightsubsentence=\endash, + \c!leftquote=\guilsingleleft, + \c!rightquote=\guilsingleright, + \c!leftquotation=\leftguillemot + \c!rightquotation=\rightguillemot + \c!date={\v!day,\space,\v!month,\space,\v!year}, % word + % \c!date={\v!day,{.},\v!month,{.},\v!year}, % numbers + \s!patterns=\s!hy, + \s!lefthyphenmin=2, + \s!righthyphenmin=2] + \installlanguage [\s!polish] [\s!pl] \installlanguage [\s!czech] [\s!cs] \installlanguage [\s!slovak] [\s!sk] \installlanguage [\s!croatian] [\s!hr] \installlanguage [\s!slovenian] [\s!sl] \installlanguage [slovene] [\s!sl] % both possible (mojca: still needed?) +\installlanguage [\s!albanian] [\s!sq] +\installlanguage [\s!armenian] [\s!hy] + +\installlanguage [\s!hye] [\s!hy] % Eastern Armenian +\installlanguage [\s!hyw] [\s!hy] % Western Armenian % Cyrillic Languages @@ -350,6 +388,21 @@ \c!rightquotation=\upperrightdoublesixquote, \c!date={\v!day,\space,\v!month,\space,\v!year}] +\installlanguage + [\s!bg] + [\s!lefthyphenmin=2, + \s!righthyphenmin=2, + \c!spacing=\v!packed, + \c!leftsentence=\leftguillemot, + \c!rightsentence=\rightguillemot, + \c!leftsubsentence=\lowerleftdoubleninequote, + \c!rightsubsentence=\upperrightdoubleninequote, + \c!leftquote=\lowerleftsingleninequote, + \c!rightquote=\upperrightsinglesixquote, + \c!leftquotation=\lowerleftdoubleninequote, + \c!rightquotation=\upperrightdoublesixquote, + \c!date={\v!day,\space,\v!month,\space,\v!year}] + \installlanguage [\s!russian] [\s!ru] \installlanguage [\s!ukrainian] [\s!ua] \installlanguage [\s!belarussian][\s!be] @@ -357,6 +410,7 @@ \installlanguage [\s!sr-latn] [\s!sr] \installlanguage [\s!sr-cyrl] [\s!sr] \installlanguage [\s!macedonian] [\s!mk] +\installlanguage [\s!bulgarian] [\s!bg] % Uralic Languages: Cheremiss, Estonian, Finnish, Karelian, Laap, @@ -486,7 +540,7 @@ \installlanguage [\s!arabic] [\s!ar] \installlanguage - [\s!pe] + [\s!farsi] [\c!spacing=\v!broad, \c!leftsentence=\emdash, \c!rightsentence=\emdash, @@ -498,9 +552,9 @@ \c!rightquotation=\rightguillemot, \c!date={\v!day,\space,\v!month,\space,\v!year}] -\installlanguage [\s!persian] [\s!pe] -\installlanguage [\s!fa] [\s!pe] % these two are redundant but sometimes might -\installlanguage [\s!farsi] [\s!fa] % sound more natural .. best set labels to 'pe' +\installlanguage [\s!fa] [\s!farsi] +\installlanguage [\s!persian] [\s!farsi] +\installlanguage [\s!pe] [\s!farsi] % Just aliases to "ar" for now @@ -538,21 +592,23 @@ % Artificial Languages: Esperanto \installlanguage - [\s!esperanto] - [%\c!spacing=\v!packed, - %\c!leftsentence=\emdash, - %\c!rightsentence=\emdash, - %\c!leftsubsentence=\emdash, - %\c!rightsubsentence=\emdash, - %\c!leftquote=\lowerleftdoubleninequote, - %\c!rightquote=\upperrightdoublesixquote, - %\c!leftquotation=\lowerleftdoubleninequote, - %\c!rightquotation=\upperrightdoublesixquote, - %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.}, + [\s!eo] + [\c!spacing=\v!packed, + \c!leftsentence=\endash, + \c!rightsentence=\endash, + \c!leftsubsentence=\endash, + \c!rightsubsentence=\endash, + \c!leftquote=\upperleftsinglesixquote, %U+2018, + \c!rightquote=\upperrightsingleninequote, %U+2019, + \c!leftquotation=\upperleftdoublesixquote, %U+201C, + \c!rightquotation=\upperrightdoubleninequote, %U+201D, + \c!date={\v!day,-a\space de\space,\v!month,\space \v!year}, \s!patterns=eo, \s!lefthyphenmin=2, \s!righthyphenmin=2] +\installlanguage[\s!esperanto][\c!default=\s!eo] + % Baltic Languages: Lettish/Latvian, Lietuvių/Lithuanian \installlanguage @@ -622,7 +678,7 @@ % Greek \installlanguage - [\s!gr] + [\s!gr] % grc el-monotonic-greek.tex [\c!spacing=\v!packed, \c!leftsentence=\emdash, \c!rightsentence=\emdash, @@ -633,7 +689,7 @@ \c!leftquotation=«, \c!rightquotation=», \c!date={\v!day\space\v!month\space\v!year}, - \s!patterns=\s!agr] % ok? + \s!patterns=\s!gr] \installlanguage [\s!greek] [\s!gr] @@ -808,7 +864,31 @@ \installlanguage [\s!thai] [\s!th] -%D Malayalam (needs to be checked) +%D Indic languages (śrīrāman) +% +% +%D Sanskit (someone needs to define the parameters): +%D +%D The file \type {lang-sa.lua} contains sanskrit hyphenation patterns for devanagari, +%D bengali, telugu, kannada, malayalam and roman(iast. + +\installlanguage + [\s!sa] + [\c!spacing=\v!broad, + \c!leftsentence=\endash, + \c!rightsentence=\endash, + \c!leftsubsentence=\emdash, + \c!rightsubsentence=\emdash, + \c!leftquote=\upperleftsinglesixquote, + \c!rightquote=\upperrightsingleninequote, + \c!leftquotation=\upperleftdoublesixquote, + \c!rightquotation=\upperrightdoubleninequote, + \c!date={\v!month,\space,\v!day,{,\space},\v!year}, + \s!patterns=\s!sa, + \s!lefthyphenmin=1, + \s!righthyphenmin=1] + +%D Malayalam needs some fine-tuning \installlanguage [\s!ml] @@ -826,7 +906,22 @@ \s!lefthyphenmin=2, \s!righthyphenmin=3] -\installlanguage [\s!malayalam] [\s!ml] +\installlanguage [\s!ml][\c!default=\s!sa,\s!patterns=\s!ml] +\installlanguage [\s!ta][\c!default=\s!sa,\s!patterns=ta] +\installlanguage [\s!kn][\c!default=\s!sa,\s!patterns=kn] +\installlanguage [\s!te][\c!default=\s!sa,\s!patterns=te] +\installlanguage [\s!gu][\c!default=\s!sa,\s!patterns=gu] +\installlanguage [\s!bn][\c!default=\s!sa,\s!patterns=bn] +\installlanguage [\s!hi][\c!default=\s!sa,\s!patterns=hi] + +\installlanguage [\s!tamil] [\s!ta] +\installlanguage [\s!kannada] [\s!kn] +\installlanguage [\s!telugu] [\s!te] +\installlanguage [\s!gujarati] [\s!gu] +\installlanguage [\s!hindi] [\s!hi] +\installlanguage [\s!bengali] [\s!bn] +\installlanguage [\s!sanskrit] [\s!sa] +\installlanguage [\s!malayalam][\s!ml] %D Todo: generate this one from languages.data |