diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf | 70 |
1 files changed, 38 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf index ea904ad5e3a..0770300480f 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf @@ -1,4 +1,4 @@ -% Language definition file (part of polyglossia v2.1 -- 2024/03/07) +% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-armenian.ldf}[polyglossia: module for Armenian] @@ -21,43 +21,49 @@ \newif\if@eastern@armenian \@eastern@armenianfalse -\define@choicekey*+{armenian}{variant}[\xpg@val\xpg@nr]{western,eastern}[western]{% - \ifcase\xpg@nr\relax - % western: - \@eastern@armenianfalse% - \or - % eastern: - \@eastern@armeniantrue% - \fi - \xpg@info{Option: Armenian, variant=\xpg@val}% -}{\xpg@warning{Unknown Armenian variant `#1'}} \newif\if@armenian@numerals \@armenian@numeralsfalse -\define@key{armenian}{numerals}[armenian]{% - \ifstrequal{#1}{arabic}{% - \@armenian@numeralsfalse% - \SetLanguageKeys{armenian}{bcp47-extension-u=nu-latn}% - }{% - \@armenian@numeralstrue% - \SetLanguageKeys{armenian}{bcp47-extension-u={}}% - }% -} -\define@boolkey{armenian}[armenian@]{capitalyiwn}[true]{% - \ifarmenian@capitalyiwn - % MakeUppercase capitalizes the ligature of letters ech and yiwn (U+0587) - % to capital ech and yiwn (also the output if Armenian is not selected at all) - \SetLanguageKeys{armenian}{bcp47-casing=hy-x-yiwn,bcp47-extension-x=yiwn} - \else - % Capitalize ech and yiwn ligature to capital ech and vew, - % following Armenian spelling reform - \SetLanguageKeys{armenian}{bcp47-casing=hy,bcp47-extension-x={}} - \fi -} +\DeclareKeys[polyglossia/gloss/armenian] + { + variant.choice:, + variant / western.code = + {% + \@eastern@armenianfalse + }, + variant / eastern.code = + {% + \@eastern@armeniantrue + }, + variant.default:n = western, + variant/unknown.code = \xpg@warning{Unknown Armenian variant `#1'}, + numerals.choice:, + numerals / armenian.code = + {% + \@armenian@numeralstrue + \SetLanguageKeys{armenian}{bcp47-extension-u={}}% + }, + numerals / arabic.code = + {% + \@armenian@numeralsfalse + \SetLanguageKeys{armenian}{bcp47-extension-u=nu-latn}% + }, + numerals.default:n = armenian, + capitalyiwn.choice:, + capitalyiwn / true.code = + {% + \SetLanguageKeys{armenian}{bcp47-casing=hy-x-yiwn,bcp47-extension-x=yiwn}% + }, + capitalyiwn / false.code = + {% + \SetLanguageKeys{armenian}{bcp47-casing=hy,bcp47-extension-x={}}% + }, + capitalyiwn.default:n = true + } % Register default options -\xpg@initialize@gloss@options{armenian}{numerals=armenian,variant=western} +\InitializeGlossOptions{armenian}{numerals=armenian,variant=western} % Taken from ArmTeX. Audit! \def\captionsarmenian{% |