From 1ff28b17fa5479687257ee4525e3a06c8aa0a2c7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 13 May 2013 22:15:54 +0000 Subject: polyglossia (13may13) git-svn-id: svn://tug.org/texlive/trunk@30442 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/polyglossia/arabicnumbers.sty | 66 ++ .../tex/latex/polyglossia/babel-hebrewalph.def | 79 ++ .../texmf-dist/tex/latex/polyglossia/babelsh.def | 462 ++++++++++++ .../texmf-dist/tex/latex/polyglossia/cal-util.def | 69 ++ .../tex/latex/polyglossia/devanagaridigits.sty | 13 + .../texmf-dist/tex/latex/polyglossia/farsical.sty | 202 ++++++ .../tex/latex/polyglossia/gloss-albanian.ldf | 56 ++ .../tex/latex/polyglossia/gloss-amharic.ldf | 203 ++++++ .../tex/latex/polyglossia/gloss-arabic.ldf | 209 ++++++ .../tex/latex/polyglossia/gloss-armenian.ldf | 52 ++ .../tex/latex/polyglossia/gloss-asturian.ldf | 43 ++ .../tex/latex/polyglossia/gloss-bahasai.ldf | 46 ++ .../tex/latex/polyglossia/gloss-bahasam.ldf | 54 ++ .../tex/latex/polyglossia/gloss-basque.ldf | 40 ++ .../tex/latex/polyglossia/gloss-bengali.ldf | 77 ++ .../tex/latex/polyglossia/gloss-brazil.ldf | 40 ++ .../tex/latex/polyglossia/gloss-breton.ldf | 89 +++ .../tex/latex/polyglossia/gloss-bulgarian.ldf | 101 +++ .../tex/latex/polyglossia/gloss-catalan.ldf | 153 ++++ .../tex/latex/polyglossia/gloss-coptic.ldf | 39 + .../tex/latex/polyglossia/gloss-croatian.ldf | 38 + .../tex/latex/polyglossia/gloss-czech.ldf | 40 ++ .../tex/latex/polyglossia/gloss-danish.ldf | 36 + .../tex/latex/polyglossia/gloss-divehi.ldf | 45 ++ .../tex/latex/polyglossia/gloss-dutch.ldf | 80 +++ .../tex/latex/polyglossia/gloss-english.ldf | 111 +++ .../tex/latex/polyglossia/gloss-esperanto.ldf | 65 ++ .../tex/latex/polyglossia/gloss-estonian.ldf | 39 + .../tex/latex/polyglossia/gloss-farsi.ldf | 125 ++++ .../tex/latex/polyglossia/gloss-finnish.ldf | 48 ++ .../tex/latex/polyglossia/gloss-french.ldf | 140 ++++ .../tex/latex/polyglossia/gloss-friulan.ldf | 64 ++ .../tex/latex/polyglossia/gloss-galician.ldf | 39 + .../tex/latex/polyglossia/gloss-german.ldf | 176 +++++ .../tex/latex/polyglossia/gloss-greek-new.ldf | 410 +++++++++++ .../tex/latex/polyglossia/gloss-greek.ldf | 346 +++++++++ .../tex/latex/polyglossia/gloss-hebrew.ldf | 134 ++++ .../tex/latex/polyglossia/gloss-hindi.ldf | 98 +++ .../tex/latex/polyglossia/gloss-icelandic.ldf | 84 +++ .../tex/latex/polyglossia/gloss-interlingua.ldf | 41 ++ .../tex/latex/polyglossia/gloss-irish.ldf | 42 ++ .../tex/latex/polyglossia/gloss-italian.ldf | 132 ++++ .../tex/latex/polyglossia/gloss-kannada.ldf | 103 +++ .../texmf-dist/tex/latex/polyglossia/gloss-lao.ldf | 90 +++ .../tex/latex/polyglossia/gloss-latin.ldf | 40 ++ .../tex/latex/polyglossia/gloss-latvian.ldf | 40 ++ .../tex/latex/polyglossia/gloss-lithuanian.ldf | 64 ++ .../tex/latex/polyglossia/gloss-lsorbian.ldf | 45 ++ .../tex/latex/polyglossia/gloss-magyar.ldf | 60 ++ .../tex/latex/polyglossia/gloss-malayalam.ldf | 53 ++ .../tex/latex/polyglossia/gloss-marathi.ldf | 78 ++ .../tex/latex/polyglossia/gloss-norsk.ldf | 42 ++ .../tex/latex/polyglossia/gloss-nynorsk.ldf | 42 ++ .../tex/latex/polyglossia/gloss-occitan.ldf | 58 ++ .../tex/latex/polyglossia/gloss-piedmontese.ldf | 115 +++ .../tex/latex/polyglossia/gloss-polish.ldf | 41 ++ .../tex/latex/polyglossia/gloss-portuges.ldf | 40 ++ .../tex/latex/polyglossia/gloss-romanian.ldf | 42 ++ .../tex/latex/polyglossia/gloss-romansh.ldf | 41 ++ .../tex/latex/polyglossia/gloss-russian.ldf | 253 +++++++ .../tex/latex/polyglossia/gloss-samin.ldf | 50 ++ .../tex/latex/polyglossia/gloss-sanskrit.ldf | 86 +++ .../tex/latex/polyglossia/gloss-scottish.ldf | 44 ++ .../tex/latex/polyglossia/gloss-serbian.ldf | 135 ++++ .../tex/latex/polyglossia/gloss-slovak.ldf | 42 ++ .../tex/latex/polyglossia/gloss-slovenian.ldf | 41 ++ .../tex/latex/polyglossia/gloss-spanish.ldf | 41 ++ .../tex/latex/polyglossia/gloss-swedish.ldf | 48 ++ .../tex/latex/polyglossia/gloss-syriac.ldf | 158 ++++ .../tex/latex/polyglossia/gloss-tamil.ldf | 53 ++ .../tex/latex/polyglossia/gloss-telugu.ldf | 56 ++ .../tex/latex/polyglossia/gloss-thai.ldf | 173 +++++ .../tex/latex/polyglossia/gloss-tibetan.ldf | 138 ++++ .../tex/latex/polyglossia/gloss-turkish.ldf | 82 +++ .../tex/latex/polyglossia/gloss-turkmen.ldf | 42 ++ .../tex/latex/polyglossia/gloss-ukrainian.ldf | 101 +++ .../tex/latex/polyglossia/gloss-urdu.ldf | 138 ++++ .../tex/latex/polyglossia/gloss-usorbian.ldf | 48 ++ .../tex/latex/polyglossia/gloss-vietnamese.ldf | 43 ++ .../tex/latex/polyglossia/gloss-welsh.ldf | 43 ++ .../texmf-dist/tex/latex/polyglossia/hebrewcal.sty | 345 +++++++++ .../texmf-dist/tex/latex/polyglossia/hijrical.sty | 95 +++ .../tex/latex/polyglossia/polyglossia-frpt.lua | 210 ++++++ .../tex/latex/polyglossia/polyglossia.lua | 77 ++ .../tex/latex/polyglossia/polyglossia.sty | 793 +++++++++++++++++++++ .../tex/latex/polyglossia/xgreek-fixes.def | 308 ++++++++ 86 files changed, 9063 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/polyglossia/arabicnumbers.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/babel-hebrewalph.def create mode 100644 Master/texmf-dist/tex/latex/polyglossia/babelsh.def create mode 100644 Master/texmf-dist/tex/latex/polyglossia/cal-util.def create mode 100644 Master/texmf-dist/tex/latex/polyglossia/devanagaridigits.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/farsical.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-albanian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-amharic.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-arabic.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-asturian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-bahasai.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-bahasam.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-basque.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-bengali.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-brazil.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-catalan.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-coptic.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-czech.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-danish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-divehi.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-dutch.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-english.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-esperanto.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-estonian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-farsi.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-friulan.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-galician.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-german.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-greek-new.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-greek.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-hebrew.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-hindi.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-icelandic.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-interlingua.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-irish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-italian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-kannada.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-lao.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-latvian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-lithuanian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-lsorbian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-magyar.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-malayalam.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-marathi.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-norsk.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-nynorsk.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-occitan.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-piedmontese.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-portuges.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-romanian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-romansh.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-samin.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-sanskrit.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-scottish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-slovak.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-slovenian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-swedish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-syriac.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-tamil.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-telugu.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-thai.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-turkmen.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-usorbian.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-vietnamese.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf create mode 100644 Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/hijrical.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua create mode 100644 Master/texmf-dist/tex/latex/polyglossia/polyglossia.lua create mode 100644 Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty create mode 100644 Master/texmf-dist/tex/latex/polyglossia/xgreek-fixes.def (limited to 'Master/texmf-dist/tex/latex/polyglossia') diff --git a/Master/texmf-dist/tex/latex/polyglossia/arabicnumbers.sty b/Master/texmf-dist/tex/latex/polyglossia/arabicnumbers.sty new file mode 100644 index 00000000000..c45aa22a654 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/arabicnumbers.sty @@ -0,0 +1,66 @@ +\ProvidesPackage{arabicnumbers} + [2010/03/18 v0.2 % + Formatting of Arabic and Farsi digits and of Arabic abjad numerals] + +\def\arabicdigits#1{\expandafter\@arabic@digits #1@} +\def\@arabic@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1٠\else\ifx1#1١\else\ifx2#1٢\else\ifx3#1٣\else\ifx4#1٤\else\ifx5#1٥\else\ifx6#1٦\else\ifx7#1٧\else\ifx8#1٨\else\ifx9#1٩\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@arabic@digits + \fi +} + +\def\farsidigits#1{\expandafter\@farsi@digits #1@} +\def\@farsi@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1۰\else\ifx1#1۱\else\ifx2#1۲\else\ifx3#1۳\else\ifx4#1۴\else\ifx5#1۵\else\ifx6#1۶\else\ifx7#1۷\else\ifx8#1۸\else\ifx9#1۹\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@farsi@digits + \fi +} + +\newif\ifabjad@jim@notail +\abjad@jim@notailfalse + +\def\abjad#1{% +\ifnum#1>1999\xpg@ill@value{#1}{abjad numeral}% +\else +\ifnum#1<\z@\space\xpg@ill@value{#1}{abjad numeral}% + \else + \ifnum#1<10\expandafter\abj@num@i@iso\number#1% + \else + \ifnum#1<100\expandafter\abj@num@ii\number#1% + \else + \ifnum#1<\@m\expandafter\abj@num@iii\number#1% + \else + \ifnum#1<\@M\expandafter\abj@num@iv\number#1%since #1<2000, we must have 1000 + \fi + \fi + \fi + \fi + \fi +\fi +} +\def\abjad@zero{} +\def\abjad@three{ج\ifabjad@jim@notail\char"200D\fi} +\def\abj@num@i@iso#1{% + \ifcase#1\or ا\or ب\or\abjad@three\or د% + \or ه\char"200D\or و\or ز\or ح\or ط\fi% + \ifnum#1=\z@\abjad@zero\fi} +\def\abj@num@i#1{% + \ifcase#1\or ا\or ب\or\abjad@three\or د% + \or ه\or و\or ز\or ح\or ط\fi% + \ifnum#1=\z@\abjad@zero\fi} +\def\abj@num@ii#1{% + \ifcase#1\or ي\or ك\or ل\or م\or ن% + \or س\or ع\or ف\or ص\fi% + \ifnum#1=\z@\fi\abj@num@i} +\def\abj@num@iii#1{% + \ifcase#1\or ق\or ر\or ش\or ت\or ث% + \or خ\or ذ\or ض\or ظ\fi% + \ifnum#1=\z@\fi\abj@num@ii} +\def\abj@num@iv#1{% + \ifcase#1\or غ\fi + \ifnum#1=\z@\fi\abj@num@iii} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/babel-hebrewalph.def b/Master/texmf-dist/tex/latex/polyglossia/babel-hebrewalph.def new file mode 100644 index 00000000000..3158d7c7a35 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/babel-hebrewalph.def @@ -0,0 +1,79 @@ +\ProvidesFile{babel-hebrewalph.def} + [2010/03/02 % + Babel definitions for Hebrew numerals^^J + Adapted from hebrew.ldf (2005/03/30 v2.3h)] +\newif\if@gim@apost % whether we print apostrophes (gereshayim) +\newif\if@gim@final % whether we use final or initial letters +\newrobustcmd*{\hebrewnumeral}[1] % no apostrophe, no final letters + {{\@gim@finalfalse\@gim@apostfalse\@hebrew@numeral{#1}}} +\newrobustcmd*{\Hebrewnumeral}[1] % apostrophe, no final letters + {{\@gim@finalfalse\@gim@aposttrue\@hebrew@numeral{#1}}} +\newrobustcmd*{\Hebrewnumeralfinal}[1] % apostrophe, final letters + {{\@gim@finaltrue\@gim@aposttrue\@hebrew@numeral{#1}}} +\newcommand*{\@hebrew@numeral}[1]{% + \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for Hebrew numeral}% + \else + \@tempcnta=#1\@tempcntb=#1\relax + \divide\@tempcntb by 1000 + \ifnum\@tempcntb=0\gim@nomil\@tempcnta\relax + \else{\@gim@apostfalse\@gim@finalfalse\@hebrew@numeral\@tempcntb}׳% + \multiply\@tempcntb by 1000\relax + \advance\@tempcnta by -\@tempcntb\relax + \gim@nomil\@tempcnta\relax + \fi + \fi +} +\def\hebrew@alph@zero{} +\newcommand*{\gim@nomil}[1]{\@tempcnta=#1\@gim@prevfalse + \@tempcntb=\@tempcnta\divide\@tempcntb by 100\relax % hundreds digit + \ifcase\@tempcntb % print nothing if no hundreds + \or\gim@print{100}{ק}% + \or\gim@print{200}{ר}% + \or\gim@print{300}{ש}% + \or\gim@print{400}{ת}% + \or ת\@gim@prevtrue\gim@print{500}{ק}% + \or ת\@gim@prevtrue\gim@print{600}{ר}% + \or ת\@gim@prevtrue\gim@print{700}{ש}% + \or ת\@gim@prevtrue\gim@print{800}{ת}% + \or ת\@gim@prevtrue ת\gim@print{900}{ק}% + \fi + \@tempcntb=\@tempcnta\divide\@tempcntb by 10\relax % tens digit + \ifcase\@tempcntb % print nothing if no tens + \or % number between 10 and 19 + \ifnum\@tempcnta = 16 \gim@print {9}{ט}% tet-zayin + \else\ifnum\@tempcnta = 15 \gim@print {9}{ט}% tet-vav + \else \gim@print{10}{י}% + \fi % \@tempcnta = 15 + \fi % \@tempcnta = 16 + \or\gim@print{20}{\if@gim@final ך\else כ\fi}% + \or\gim@print{30}{ל}% + \or\gim@print{40}{\if@gim@final ם\else מ\fi}% + \or\gim@print{50}{\if@gim@final ן\else נ\fi}% + \or\gim@print{60}{ס}% + \or\gim@print{70}{ע}% + \or\gim@print{80}{\if@gim@final ף\else פ\fi}% + \or\gim@print{90}{\if@gim@final ץ\else צ\fi}% + \fi + \ifcase\@tempcnta + \hebrew@alph@zero% empty but can be defined if desired + \or\gim@print{1}{א}% + \or\gim@print{2}{ב}% + \or\gim@print{3}{ג}% + \or\gim@print{4}{ד}% + \or\gim@print{5}{ה}% + \or\gim@print{6}{ו}% + \or\gim@print{7}{ז}% + \or\gim@print{8}{ח}% + \or\gim@print{9}{ט}% + \fi +} +\newif\if@gim@prev % flag if a previous letter has been typeset +\newcommand*{\gim@print}[2]{% #2 is a letter, #1 is its value. + \advance\@tempcnta by -#1\relax% deduct the value from the remainder + \ifnum\@tempcnta=0% if this is the last letter + \if@gim@prev\if@gim@apost ״\fi#2% + \else#2\if@gim@apost ׳\fi\fi% + \else{\@gim@finalfalse#2}\@gim@prevtrue\fi} +\def\Alphfinal#1{\expandafter\@Alphfinal\csname c@#1\endcsname}% +\providecommand*{\@Alphfinal}[1]{\protect\Hebrewnumeralfinal{\number#1}} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/babelsh.def b/Master/texmf-dist/tex/latex/polyglossia/babelsh.def new file mode 100644 index 00000000000..a03d7950aaa --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/babelsh.def @@ -0,0 +1,462 @@ +\ifx\initiate@active@char\@undefined +\else + \bbl@afterfi\endinput +\fi +\ProvidesFile{babelsh.def} + [2013/04/30 % + Babel common definitions for shorthands^^J + Taken verbatim from babel.def (2013/04/15 v3.9e)] +% +% ------------------------------------------------------------------------------ +% +% XXX: from babel.sty +% +% ------------------------------------------------------------------------------ +% + \def\bbl@ifshorthand#1{% + \@expandtwoargs\in@{\string#1}{\bbl@opt@shorthands}% + \ifin@ + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi} +\let\bbl@opt@shorthands\@nnil +% +% ------------------------------------------------------------------------------ +% +% XXX: from switch.def +% +% ------------------------------------------------------------------------------ +% +\ifx\PackageError\@undefined + \def\bbl@error#1#2{% + \begingroup + \newlinechar=`\^^J + \def\\{^^J(babel) }% + \errhelp{#2}\errmessage{\\#1}% + \endgroup} + \def\bbl@warning#1{% + \begingroup + \newlinechar=`\^^J + \def\\{^^J(polyglossia) }% + \message{\\#1}% + \endgroup} + \def\bbl@info#1{% + \begingroup + \newlinechar=`\^^J + \def\\{^^J}% + \wlog{#1}% + \endgroup} +\else + \def\bbl@error#1#2{% + \begingroup + \def\\{\MessageBreak}% + \PackageError{polyglossia}{#1}{#2}% + \endgroup} + \def\bbl@warning#1{% + \begingroup + \def\\{\MessageBreak}% + \PackageWarning{polyglossia}{#1}% + \endgroup} + \def\bbl@info#1{% + \begingroup + \def\\{\MessageBreak}% + \PackageInfo{polyglossia}{#1}% + \endgroup} +% +% ------------------------------------------------------------------------------ +% +% XXX: from babel.def +% +% ------------------------------------------------------------------------------ +% +\def\bbl@for#1#2#3{\@for#1:=#2\do{\ifx#1\@empty\else#3\fi}} +\def\bbl@add#1#2{% + \@ifundefined{\expandafter\@gobble\string#1}% + {\def#1{#2}}% + {\expandafter\def\expandafter#1\expandafter{#1#2}}} +\long\def\bbl@afterelse#1\else#2\fi{\fi#1} +\long\def\bbl@afterfi#1\fi{\fi#1} +\def\bbl@csarg#1#2{\expandafter#1\csname bbl@#2\endcsname}% +\def\bbl@withactive#1#2{% + \begingroup + \lccode`~=`#2\relax + \lowercase{\endgroup#1~}} +% +% ------------------------------------------------------------------------------ +% +% XXX: a bit further in babel.def +% +% ------------------------------------------------------------------------------ +% +\def\bbl@add@special#1{% + \begingroup + \def\do{\noexpand\do\noexpand}% + \def\@makeother{\noexpand\@makeother\noexpand}% + \edef\x{\endgroup + \def\noexpand\dospecials{\dospecials\do#1}% + \expandafter\ifx\csname @sanitize\endcsname\relax \else + \def\noexpand\@sanitize{\@sanitize\@makeother#1}% + \fi}% + \x} +\def\bbl@remove@special#1{% + \begingroup + \def\x##1##2{\ifnum`#1=`##2\noexpand\@empty + \else\noexpand##1\noexpand##2\fi}% + \def\do{\x\do}% + \def\@makeother{\x\@makeother}% + \edef\x{\endgroup + \def\noexpand\dospecials{\dospecials}% + \expandafter\ifx\csname @sanitize\endcsname\relax \else + \def\noexpand\@sanitize{\@sanitize}% + \fi}% + \x} +\def\bbl@active@def#1#2#3#4{% + \@namedef{#3#1}{% + \expandafter\ifx\csname#2@sh@#1@\endcsname\relax + \bbl@afterelse\bbl@sh@select#2#1{#3@arg#1}{#4#1}% + \else + \bbl@afterfi\csname#2@sh@#1@\endcsname + \fi}% + \long\@namedef{#3@arg#1}##1{% + \expandafter\ifx\csname#2@sh@#1@\string##1@\endcsname\relax + \bbl@afterelse\csname#4#1\endcsname##1% + \else + \bbl@afterfi\csname#2@sh@#1@\string##1@\endcsname + \fi}}% +\def\initiate@active@char#1{% + \expandafter\ifx\csname active@char\string#1\endcsname\relax + \bbl@withactive + {\expandafter\@initiate@active@char\expandafter}#1\string#1#1% + \fi} +\def\@initiate@active@char#1#2#3{% + \expandafter\edef\csname bbl@oricat@#2\endcsname{% + \catcode`#2=\the\catcode`#2\relax}% + \ifx#1\@undefined + \expandafter\edef\csname bbl@oridef@#2\endcsname{% + \let\noexpand#1\noexpand\@undefined}% + \else + \expandafter\let\csname bbl@oridef@@#2\endcsname#1% + \expandafter\edef\csname bbl@oridef@#2\endcsname{% + \let\noexpand#1% + \expandafter\noexpand\csname bbl@oridef@@#2\endcsname}% + \fi + \ifx#1#3\relax + \expandafter\let\csname normal@char#2\endcsname#3% + \else + \bbl@info{Making #2 an active character}% + \ifnum\mathcode`#2="8000 + \@namedef{normal@char#2}{% + \textormath{#3}{\csname bbl@oridef@@#2\endcsname}}% + \else + \@namedef{normal@char#2}{#3}% + \fi + \bbl@restoreactive{#2}% + \AtBeginDocument{% + \catcode`#2\active + \if@filesw + \immediate\write\@mainaux{\catcode`\string#2\active}% + \fi}% + \expandafter\bbl@add@special\csname#2\endcsname + \catcode`#2\active + \fi + \let\bbl@tempa\@firstoftwo + \if\string^#2% + \def\bbl@tempa{\noexpand\textormath}% + \else + \ifx\bbl@mathnormal\@undefined\else + \let\bbl@tempa\bbl@mathnormal + \fi + \fi + \expandafter\edef\csname active@char#2\endcsname{% + \bbl@tempa + {\noexpand\if@safe@actives + \noexpand\expandafter + \expandafter\noexpand\csname normal@char#2\endcsname + \noexpand\else + \noexpand\expandafter + \expandafter\noexpand\csname user@active#2\endcsname + \noexpand\fi}% + {\expandafter\noexpand\csname normal@char#2\endcsname}}% + \bbl@csarg\edef{active@#2}{% + \noexpand\active@prefix\noexpand#1% + \expandafter\noexpand\csname active@char#2\endcsname}% + \bbl@csarg\edef{normal@#2}{% + \noexpand\active@prefix\noexpand#1% + \expandafter\noexpand\csname normal@char#2\endcsname}% + \expandafter\let\expandafter#1\csname bbl@normal@#2\endcsname + \bbl@active@def#2\user@group{user@active}{language@active}% + \bbl@active@def#2\language@group{language@active}{system@active}% + \bbl@active@def#2\system@group{system@active}{normal@char}% + \expandafter\edef\csname\user@group @sh@#2@@\endcsname + {\expandafter\noexpand\csname normal@char#2\endcsname}% + \expandafter\edef\csname\user@group @sh@#2@\string\protect@\endcsname + {\expandafter\noexpand\csname user@active#2\endcsname}% + \if\string'#2% + \let\prim@s\bbl@prim@s + \let\active@math@prime#1% + \fi} +\@ifpackagewith{babel}{KeepShorthandsActive}% + {\let\bbl@restoreactive\@gobble}% + {\def\bbl@restoreactive#1{% + \edef\bbl@tempa{% +% +% ------------------------------------------------------------------------------ +% +% XXX: WARNING: this has been commented in babelsh.def +% +% ------------------------------------------------------------------------------ +% +% \noexpand\AfterBabelLanguage\noexpand\CurrentOption +% {\catcode`#1=\the\catcode`#1\relax}% + \noexpand\AtEndOfPackage{\catcode`#1=\the\catcode`#1\relax}}% + \bbl@tempa}% + \AtEndOfPackage{\let\bbl@restoreactive\@gobble}} +\def\bbl@sh@select#1#2{% + \expandafter\ifx\csname#1@sh@#2@sel\endcsname\relax + \bbl@afterelse\bbl@scndcs + \else + \bbl@afterfi\csname#1@sh@#2@sel\endcsname + \fi} +\def\active@prefix#1{% + \ifx\protect\@typeset@protect + \else + \ifx\protect\@unexpandable@protect + \noexpand#1% + \else + \protect#1% + \fi + \expandafter\@gobble + \fi} +\newif\if@safe@actives +\@safe@activesfalse +\def\bbl@restore@actives{\if@safe@actives\@safe@activesfalse\fi} +\def\bbl@activate#1{% + \bbl@withactive{\expandafter\let\expandafter}#1% + \csname bbl@active@\string#1\endcsname} +\def\bbl@deactivate#1{% + \bbl@withactive{\expandafter\let\expandafter}#1% + \csname bbl@normal@\string#1\endcsname} +\def\bbl@firstcs#1#2{\csname#1\endcsname} +\def\bbl@scndcs#1#2{\csname#2\endcsname} +\def\declare@shorthand#1#2{\@decl@short{#1}#2\@nil} +\def\@decl@short#1#2#3\@nil#4{% + \def\bbl@tempa{#3}% + \ifx\bbl@tempa\@empty + \expandafter\let\csname #1@sh@\string#2@sel\endcsname\bbl@scndcs + \@ifundefined{#1@sh@\string#2@}{}% + {\def\bbl@tempa{#4}% + \expandafter\ifx\csname#1@sh@\string#2@\endcsname\bbl@tempa + \else + \bbl@info + {Redefining #1 shorthand \string#2\\% + in language \CurrentOption}% + \fi}% + \@namedef{#1@sh@\string#2@}{#4}% + \else + \expandafter\let\csname #1@sh@\string#2@sel\endcsname\bbl@firstcs + \@ifundefined{#1@sh@\string#2@\string#3@}{}% + {\def\bbl@tempa{#4}% + \expandafter\ifx\csname#1@sh@\string#2@\string#3@\endcsname\bbl@tempa + \else + \bbl@info + {Redefining #1 shorthand \string#2\string#3\\% + in language \CurrentOption}% + \fi}% + \@namedef{#1@sh@\string#2@\string#3@}{#4}% + \fi} +\def\textormath{% + \ifmmode + \expandafter\@secondoftwo + \else + \expandafter\@firstoftwo + \fi} +\def\user@group{user} +\def\language@group{english} +\def\system@group{system} +\def\useshorthands{% + \@ifstar\bbl@usesh@s{\bbl@usesh@x{}}} +\def\bbl@usesh@s#1{% + \bbl@usesh@x + {\AddBabelHook{babel-sh-\string#1}{afterextras}{\bbl@activate{#1}}}% + {#1}} +\def\bbl@usesh@x#1#2{% + \bbl@ifshorthand{#2}% + {\def\user@group{user}% + \initiate@active@char{#2}% + #1% + \bbl@activate{#2}}% + {\bbl@error + {Cannot declare a shorthand turned off (\string#2)} + {Sorry, but you cannot use shorthands which have been\\% + turned off in the package options}}} +\def\user@language@group{user@\language@group} +\def\bbl@set@user@generic#1#2{% + \@ifundefined{user@generic@active#1}% + {\bbl@active@def#1\user@language@group{user@active}{user@generic@active}% + \bbl@active@def#1\user@group{user@generic@active}{language@active}% + \expandafter\edef\csname#2@sh@#1@@\endcsname{% + \expandafter\noexpand\csname normal@char#1\endcsname}% + \expandafter\edef\csname#2@sh@#1@\string\protect@\endcsname{% + \expandafter\noexpand\csname user@active#1\endcsname}}% + \@empty} +\newcommand\defineshorthand[3][user]{% + \edef\bbl@tempa{\zap@space#1 \@empty}% + \bbl@for\bbl@tempb\bbl@tempa{% + \if*\expandafter\@car\bbl@tempb\@nil + \edef\bbl@tempb{user@\expandafter\@gobble\bbl@tempb}% + \@expandtwoargs + \bbl@set@user@generic{\expandafter\string\@car#2\@nil}\bbl@tempb + \fi + \declare@shorthand{\bbl@tempb}{#2}{#3}}} +\def\languageshorthands#1{\def\language@group{#1}} +\def\aliasshorthand#1#2{% + \bbl@ifshorthand{#2}% + {\expandafter\ifx\csname active@char\string#2\endcsname\relax + \ifx\document\@notprerr + \@notshorthand{#2}% + \else + \initiate@active@char{#2}% + \expandafter\let\csname active@char\string#2\expandafter\endcsname + \csname active@char\string#1\endcsname + \expandafter\let\csname normal@char\string#2\expandafter\endcsname + \csname normal@char\string#1\endcsname + \bbl@activate{#2}% + \fi + \fi}% + {\bbl@error + {Cannot declare a shorthand turned off (\string#2)} + {Sorry, but you cannot use shorthands which have been\\% + turned off in the package options}}} +\def\@notshorthand#1{% + \bbl@error{% + The character `\string #1' should be made a shorthand character;\\% + add the command \string\useshorthands\string{#1\string} to + the preamble.\\% + I will ignore your instruction}{}} +\newcommand*\shorthandon[1]{\bbl@switch@sh\@ne#1\@nnil} +\DeclareRobustCommand*\shorthandoff{% + \@ifstar{\bbl@shorthandoff\tw@}{\bbl@shorthandoff\z@}} +\def\bbl@shorthandoff#1#2{\bbl@switch@sh#1#2\@nnil} +\def\bbl@switch@sh#1#2{% + \ifx#2\@nnil\else + \@ifundefined{bbl@active@\string#2}% + {\bbl@error + {I cannot switch `\string#2' on or off--not a shorthand}% + {This character is not a shorthand. Maybe you made\\% + a typing mistake? I will ignore your instruction}}% + {\ifcase#1% + \catcode`#212\relax + \or + \catcode`#2\active + \or + \csname bbl@oricat@\string#2\endcsname + \csname bbl@oridef@\string#2\endcsname + \fi}% + \bbl@afterfi\bbl@switch@sh#1% + \fi} +\def\babelshorthand{\active@prefix\babelshorthand\bbl@putsh} +\def\bbl@putsh#1{% + \@ifundefined{bbl@active@\string#1}% + {\bbl@putsh@i#1\@empty\@nnil}% + {\csname bbl@active@\string#1\endcsname}} +\def\bbl@putsh@i#1#2\@nnil{% + \csname\languagename @sh@\string#1@% + \ifx\@empty#2\else\string#2@\fi\endcsname} +\ifx\bbl@opt@shorthands\@nnil\else + \let\bbl@s@initiate@active@char\initiate@active@char + \def\initiate@active@char#1{% + \bbl@ifshorthand{#1}{\bbl@s@initiate@active@char{#1}}{}} + \let\bbl@s@switch@sh\bbl@switch@sh + \def\bbl@switch@sh#1#2{% + \ifx#2\@nnil\else + \bbl@afterfi + \bbl@ifshorthand{#2}{\bbl@s@switch@sh#1{#2}}{\bbl@switch@sh#1}% + \fi} + \let\bbl@s@activate\bbl@activate + \def\bbl@activate#1{% + \bbl@ifshorthand{#1}{\bbl@s@activate{#1}}{}} + \let\bbl@s@deactivate\bbl@deactivate + \def\bbl@deactivate#1{% + \bbl@ifshorthand{#1}{\bbl@s@deactivate{#1}}{}} +\fi +\def\bbl@prim@s{% + \prime\futurelet\@let@token\bbl@pr@m@s} +\def\bbl@if@primes#1#2{% + \ifx#1\@let@token + \expandafter\@firstoftwo + \else\ifx#2\@let@token + \bbl@afterelse\expandafter\@firstoftwo + \else + \bbl@afterfi\expandafter\@secondoftwo + \fi\fi} +\begingroup + \catcode`\^=7 \catcode`\*=\active \lccode`\*=`\^ + \catcode`\'=12 \catcode`\"=\active \lccode`\"=`\' + \lowercase{% + \gdef\bbl@pr@m@s{% + \bbl@if@primes"'% + \pr@@@s + {\bbl@if@primes*^\pr@@@t\egroup}}} +\endgroup +\initiate@active@char{~} +\declare@shorthand{system}{~}{\leavevmode\nobreak\ } +\bbl@activate{~} +\def\bbl@disc#1#2{\nobreak\discretionary{#2-}{}{#1}\bbl@allowhyphens} +\def\bbl@t@one{T1} +\def\bbl@allowhyphens{\nobreak\hskip\z@skip} +\def\bbl@t@one{T1} +% +% ------------------------------------------------------------------------------ +% +% XXX: later in babel.def +% +% ------------------------------------------------------------------------------ +% +\def\allowhyphens{\ifx\cf@encoding\bbl@t@one\else\bbl@allowhyphens\fi} +\newcommand\babelnullhyphen{\char\hyphenchar\font} +\def\babelhyphen{\active@prefix\babelhyphen\bbl@hyphen} +\def\bbl@hyphen{% + \@ifstar{\bbl@hyphen@i @}{\bbl@hyphen@i\@empty}} +\def\bbl@hyphen@i#1#2{% + \@ifundefined{bbl@hy@#1#2\@empty}% + {\csname bbl@#1usehyphen\endcsname{\discretionary{#2}{}{#2}}}% + {\csname bbl@hy@#1#2\@empty\endcsname}} +\def\bbl@usehyphen#1{% + \leavevmode + \ifdim\lastskip>\z@\mbox{#1}\nobreak\else\nobreak#1\fi + \hskip\z@skip} +\def\bbl@@usehyphen#1{% + \leavevmode\ifdim\lastskip>\z@\mbox{#1}\else#1\fi} +\def\bbl@hyphenchar{% + \ifnum\hyphenchar\font=\m@ne + \babelnullhyphen + \else + \char\hyphenchar\font + \fi} +\def\bbl@hy@soft{\bbl@usehyphen{\discretionary{\bbl@hyphenchar}{}{}}} +\def\bbl@hy@@soft{\bbl@@usehyphen{\discretionary{\bbl@hyphenchar}{}{}}} +\def\bbl@hy@hard{\bbl@usehyphen\bbl@hyphenchar} +\def\bbl@hy@@hard{\bbl@@usehyphen\bbl@hyphenchar} +\def\bbl@hy@nobreak{\bbl@usehyphen{\mbox{\bbl@hyphenchar}\nobreak}} +\def\bbl@hy@@nobreak{\mbox{\bbl@hyphenchar}} +\def\bbl@hy@repeat{% + \bbl@usehyphen{% + \discretionary{\bbl@hyphenchar}{\bbl@hyphenchar}{\bbl@hyphenchar}% + \nobreak}} +\def\bbl@hy@@repeat{% + \bbl@@usehyphen{% + \discretionary{\bbl@hyphenchar}{\bbl@hyphenchar}{\bbl@hyphenchar}}} +\def\bbl@hy@empty{\hskip\z@skip} +\def\bbl@hy@@empty{\discretionary{}{}{}} +\def\bbl@disc#1#2{\nobreak\discretionary{#2-}{}{#1}\bbl@allowhyphens} +% +% ------------------------------------------------------------------------------ +% +% XXX: end of the code copied from babel files +% +% ------------------------------------------------------------------------------ +% +\def\bbl@disc@german#1#2{% + \nobreak\discretionary{#2-}{}{#1}} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/cal-util.def b/Master/texmf-dist/tex/latex/polyglossia/cal-util.def new file mode 100644 index 00000000000..85576f39f71 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/cal-util.def @@ -0,0 +1,69 @@ +%%%%%%%%%%%%% cal-util.def %%%%%%%%%%%%%%%% +% Macros shared by hijrical and hebrewcal % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% the following is adapted from hebcal.sty in babel +\def\@Remainder#1#2#3{% + #3 = #1% % c = a + \divide #3 by #2% % c = a/b + \multiply #3 by -#2% % c = -b(a/b) + \advance #3 by #1}% % c = a - b(a/b) +\newif\if@Divisible +\def\@CheckIfDivisible#1#2{% + {% + \countdef\tmpx=0% % temporary variable + \@Remainder{#1}{#2}{\tmpx}% + \ifnum\tmpx=0% + \global\@Divisibletrue% + \else% + \global\@Divisiblefalse% + \fi}} +\newif\if@GregorianLeap +\def\@CheckIfGregorianLeap#1{% + {% + \@CheckIfDivisible{#1}{4}% + \if@Divisible% + \@CheckIfDivisible{#1}{100}% + \if@Divisible% + \@CheckIfDivisible{#1}{400}% + \if@Divisible% + \global\@GregorianLeaptrue% + \else% + \global\@GregorianLeapfalse% + \fi% + \else% + \global\@GregorianLeaptrue% + \fi% + \else% + \global\@GregorianLeapfalse% + \fi% + }} +%% + +\newcounter{tmpA}\newcounter{tmpB} +\newcounter{tmpC}\newcounter{tmpD} +\newcounter{tmpE}\newcounter{tmpF} + + +%% This is an algorithm from Reingold & Dershowitz, +%% Calendrical Calculations, The Millenium Edition +%% +\def\@FixedFromGregorian#1#2#3#4{% + \setcounter{tmpA}{(#1-1)*365}% + \setcounter{tmpB}{(#1-1)/4}% + \setcounter{tmpC}{(#1-1)/100}% + \setcounter{tmpD}{(#1-1)/400}% + \setcounter{tmpE}{(367*#2-362)/12}% + \ifnum#2<3% + \setcounter{tmpF}{0}% + \else% + \@CheckIfGregorianLeap{#1}% + \if@GregorianLeap% + \setcounter{tmpF}{-1}% + \else% + \setcounter{tmpF}{-2}% + \fi% + \fi% + \@ifundefined{c@#4}{\global\newcounter{#4}}{}% + \setcounter{#4}{\value{tmpA}+\value{tmpB}-\value{tmpC}+\value{tmpD}+\value{tmpE}+\value{tmpF}+#3}% +} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/devanagaridigits.sty b/Master/texmf-dist/tex/latex/polyglossia/devanagaridigits.sty new file mode 100644 index 00000000000..bbd83f2314c --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/devanagaridigits.sty @@ -0,0 +1,13 @@ +\ProvidesPackage{devanagaridigits} + [2010/04/01 v0.1 % + Formatting of Devanagari digits] + +\def\devanagaridigits#1{\expandafter\@devanagari@digits #1@} +\def\@devanagari@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1०\else\ifx1#1१\else\ifx2#1२\else\ifx3#1३\else\ifx4#1४\else\ifx5#1५\else\ifx6#1६\else\ifx7#1७\else\ifx8#1८\else\ifx9#1९\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@devanagari@digits + \fi +} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/farsical.sty b/Master/texmf-dist/tex/latex/polyglossia/farsical.sty new file mode 100644 index 00000000000..b78d29809c3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/farsical.sty @@ -0,0 +1,202 @@ +\ProvidesPackage{farsical} + [2008/07/02 v0.1 % + Farsi (jalali) calendar] +\RequirePackage{bidi,calc,arabicnumbers} + +%TODO - rewrite completely using calc +%% - use Reingold & Dershowitz ME +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%% Modified from Arabiftoday.sty which is part of the Arabi package: +%%% Copyright (C) 2006 Youssef Jabri +%%% itself a modification of the code in the FarsiTeX system: +%%% Copyright (C) 1996 Hassan Abolhassani +%%% Copyright (C) 1996-2001 Roozbeh Pournader +%%% Copyright (C) 2000-2001 Behdad Esfahbod +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newif\ifJALALI@leap \newif\ifJALALI@kabiseh +\newcount\JALALI@i \newcount\JALALI@y \newcount\JALALI@m \newcount\JALALI@d +\newcount\JALALI@latini \newcount\JALALI@farsii +\newcount\JALALI@latinii \newcount\JALALI@farsiii +\newcount\JALALI@latiniii \newcount\JALALI@farsiiii +\newcount\JALALI@latiniv \newcount\JALALI@farsiiv +\newcount\JALALI@latinv \newcount\JALALI@farsiv +\newcount\JALALI@latinvi \newcount\JALALI@farsivi +\newcount\JALALI@latinvii \newcount\JALALI@farsivii +\newcount\JALALI@latinviii \newcount\JALALI@farsiviii +\newcount\JALALI@latinix \newcount\JALALI@farsiix +\newcount\JALALI@latinx \newcount\JALALI@farsix +\newcount\JALALI@latinxi \newcount\JALALI@farsixi +\newcount\JALALI@latinxii \newcount\JALALI@farsixii + \newcount\JALALI@farsixiii + +\newcount\JALALI@temp +\newcount\JALALI@temptwo +\newcount\JALALI@tempthree +\newcount\JALALI@yModHundred +\newcount\JALALI@thirtytwo +\newcount\JALALI@dn +\newcount\JALALI@sn +\newcount\JALALI@mminusone + +% \ftoday renamed to \Jalalitoday - FC +\def\Jalalitoday{% +\JALALI@y=\year \JALALI@m=\month \JALALI@d=\day +% +\JALALI@temp=\JALALI@y +\divide\JALALI@temp by 100\relax +\multiply\JALALI@temp by 100\relax +\JALALI@yModHundred=\JALALI@y +\advance\JALALI@yModHundred by -\JALALI@temp\relax +% +\ifodd\JALALI@yModHundred + \JALALI@leapfalse +\else + \JALALI@temp=\JALALI@yModHundred + \divide\JALALI@temp by 2\relax + \ifodd\JALALI@temp\JALALI@leapfalse + \else + \ifnum\JALALI@yModHundred=0% + \JALALI@temp=\JALALI@y + \divide\JALALI@temp by 400\relax + \multiply\JALALI@temp by 400\relax + \ifnum\JALALI@y=\JALALI@temp\JALALI@leaptrue\else\JALALI@leapfalse\fi + \else\JALALI@leaptrue + \fi + \fi +\fi +% +\JALALI@latini=31\relax +\ifJALALI@leap + \JALALI@latinii = 29\relax +\else + \JALALI@latinii = 28\relax +\fi +\JALALI@latiniii = 31\relax +\JALALI@latiniv = 30\relax +\JALALI@latinv = 31\relax +\JALALI@latinvi = 30\relax +\JALALI@latinvii = 31\relax +\JALALI@latinviii = 31\relax +\JALALI@latinix = 30\relax +\JALALI@latinx = 31\relax +\JALALI@latinxi = 30\relax +\JALALI@latinxii = 31\relax +% +\JALALI@thirtytwo=32\relax +% +\JALALI@temp=\JALALI@y +\advance\JALALI@temp by -17\relax +\JALALI@temptwo=\JALALI@temp +\divide\JALALI@temptwo by 33\relax +\multiply\JALALI@temptwo by 33\relax +\advance\JALALI@temp by -\JALALI@temptwo +\ifnum\JALALI@temp=\JALALI@thirtytwo\JALALI@kabisehfalse +\else + \JALALI@temptwo=\JALALI@temp + \divide\JALALI@temptwo by 4\relax + \multiply\JALALI@temptwo by 4\relax + \advance\JALALI@temp by -\JALALI@temptwo + \ifnum\JALALI@temp=\z@\JALALI@kabisehtrue\else\JALALI@kabisehfalse\fi +\fi +% +% --BE +% In fact farsii is equal to the Leap years from a fixed year to the last +% year minus the Kabise years from a fixed year to the last year plus a const. +% +\JALALI@tempthree=\JALALI@y % Number of Leap years +\advance\JALALI@tempthree by -1 +\JALALI@temp=\JALALI@tempthree % T := (MY-1) div 4 +\divide\JALALI@temp by 4\relax +\JALALI@temptwo=\JALALI@tempthree % T := T - ((MY-1) div 100) +\divide\JALALI@temptwo by 100\relax +\advance\JALALI@temp by -\JALALI@temptwo +\JALALI@temptwo=\JALALI@tempthree % T := T + ((MY-1) div 400) +\divide\JALALI@temptwo by 400\relax +\advance\JALALI@temp by \JALALI@temptwo +\advance\JALALI@tempthree by -611 % Number of Kabise years +\JALALI@temptwo=\JALALI@tempthree % T := T - ((SY+10) div 33) * 8 +\divide\JALALI@temptwo by 33\relax +\multiply\JALALI@temptwo by 8\relax +\advance\JALALI@temp by -\JALALI@temptwo +\JALALI@temptwo=\JALALI@tempthree % +\divide\JALALI@temptwo by 33\relax +\multiply\JALALI@temptwo by 33\relax +\advance\JALALI@tempthree by -\JALALI@temptwo +\ifnum\JALALI@tempthree=32\advance\JALALI@temp by 1\fi % if (SY+10) mod 33=32 then Inc(T); +\divide\JALALI@tempthree by 4\relax % T := T - ((SY+10) mod 33) div 4 +\advance\JALALI@temp by -\JALALI@tempthree +\advance\JALALI@temp by -137 % T := T - 137 Adjust the value +\JALALI@farsii=31 +\advance\JALALI@farsii by -\JALALI@temp % now 31 - T is the farsii +% +\JALALI@farsiii = 30\relax +\ifJALALI@kabiseh + \JALALI@farsiiii = 30\relax +\else + \JALALI@farsiiii = 29\relax +\fi +\JALALI@farsiiv = 31\relax +\JALALI@farsiv = 31\relax +\JALALI@farsivi = 31\relax +\JALALI@farsivii = 31\relax +\JALALI@farsiviii= 31\relax +\JALALI@farsiix = 31\relax +\JALALI@farsix = 30\relax +\JALALI@farsixi = 30\relax +\JALALI@farsixii = 30\relax +\JALALI@farsixiii= 30\relax +% +\JALALI@dn= 0\relax +\JALALI@sn= 0\relax +\JALALI@mminusone=\JALALI@m +\advance\JALALI@mminusone by -1\relax +% +\JALALI@i=0\relax +\ifnum\JALALI@i < \JALALI@mminusone +\loop +\advance \JALALI@i by 1\relax +\advance\JALALI@dn by \csname JALALI@latin\romannumeral\the\JALALI@i\endcsname +\ifnum\JALALI@i<\JALALI@mminusone \repeat +\fi +\advance \JALALI@dn by \JALALI@d +% +\JALALI@i=1\relax +\JALALI@sn = \JALALI@farsii +\ifnum \JALALI@sn<\JALALI@dn +\loop +\advance \JALALI@i by 1\relax +\advance\JALALI@sn by \csname JALALI@farsi\romannumeral\the\JALALI@i\endcsname +\ifnum \JALALI@sn<\JALALI@dn \repeat +\fi +\ifnum \JALALI@i < 4 + \JALALI@m = 9 \advance\JALALI@m by \JALALI@i + \advance \JALALI@y by -622\relax +\else + \JALALI@m = \JALALI@i \advance \JALALI@m by -3\relax + \advance \JALALI@y by -621\relax +\fi +\advance\JALALI@sn by -\csname JALALI@farsi\romannumeral\the\JALALI@i% +\endcsname +\ifnum\JALALI@i = 1 + \JALALI@d = \JALALI@dn \advance \JALALI@d by 30 \advance\JALALI@d by -\JALALI@farsii +\else + \JALALI@d = \JALALI@dn \advance \JALALI@d by -\JALALI@sn +\fi +%% DATE FORMATTING +\if@RTL{\farsidigits{\number\JALALI@d}\space% +\Jalalimonth{\JALALI@m}\space\farsidigits{\number\JALALI@y}}% +\else +\number\JALALI@d\space\JalalimonthEnglish{\JALALI@m}% +\space\number\JALALI@y% +\fi} +%%% +\def\Jalalimonth#1{\ifcase#1\or فروردین\or +اردیبهشت\or خرداد\or تیر\or مرداد\or شهریور% +\or مهر\or آبان\or آذر\or دی\or بهمن\or اسفند% +\fi} +\def\JalalimonthEnglish#1{\ifcase#1% +\or Farvardīn\or Ordībehesht\or Khordād\or Tīr +\or Mordād\or Shahrīvar\or Mihr\or Ābān\or Āzar +\or Dai\or Bahman\or Esfand\fi} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-albanian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-albanian.ldf new file mode 100644 index 00000000000..dcafbad943b --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-albanian.ldf @@ -0,0 +1,56 @@ +\ProvidesFile{gloss-albanian.ldf}[polyglossia: module for albanian] + +\PolyglossiaSetup{albanian}{ + hyphennames={albanian}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=true, +} + +\def\captionsalbanian{% + \def\refname{Referencat}% + \def\abstractname{Përmbledhja}% + \def\bibname{Bibliografia}% + \def\prefacename{Parathenia}% + \def\chaptername{Kapitulli}% + \def\appendixname{Shtesa}% + \def\contentsname{Përmbajta}% + \def\listfigurename{Figurat}% + \def\listtablename{Tabelat}% + \def\indexname{Indeksi}% + \def\figurename{Figura}% + \def\tablename{Tabela}% + %\def\thepart{}% + \def\partname{Pjesa}% + \def\pagename{Faqe}% + \def\seename{shiko}% + \def\alsoname{shiko dhe}% + %\def\enclname{}% + %\def\ccname{}% + %\def\headtoname{}% + \def\proofname{Vërtetim}% + \def\glossaryname{Përhasja e Fjalëve}% + } +\def\datealbanian{% + \def\today{{\number\day~\ifcase\month\or + Janar\or Shkurt\or Mars\or Prill\or Maj\or + Qershor\or Korrik\or Gusht\or Shtator\or Tetor\or Nëntor\or + Dhjetor\fi \space \number\year}}} + +\endinput + +%\def\sh{\mathop{\operator@font sh}\nolimits} % same as \sinh +%\def\ch{\mathop{\operator@font ch}\nolimits} % same as \cosh +%\def\th{\mathop{\operator@font th}\nolimits} % same as \tanh +%\def\cth{\mathop{\operator@font cth}\nolimits} % same as \coth +%\def\arsh{\mathop{\operator@font arsh}\nolimits} +%\def\arch{\mathop{\operator@font arch}\nolimits} +%\def\arth{\mathop{\operator@font arth}\nolimits} +%\def\arcth{\mathop{\operator@font arcth}\nolimits} +%\def\tg{\mathop{\operator@font tg}\nolimits} % same as \tan +%\def\ctg{\mathop{\operator@font ctg}\nolimits} % same as \cot +%\def\arctg{\mathop{\operator@font arctg}\nolimits} % same as \arctan +%\def\arcctg{\mathop{\operator@font arcctg}\nolimits} +%\def\Prob{\mathop{\mathsf P\hskip0pt}\nolimits} +%\def\Expect{\mathop{\mathsf E\hskip0pt}\nolimits} +%\def\Variance{\mathop{\mathsf D\hskip0pt}\nolimits} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-amharic.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-amharic.ldf new file mode 100644 index 00000000000..9a33de9fb90 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-amharic.ldf @@ -0,0 +1,203 @@ +\ProvidesFile{gloss-amharic.ldf}[polyglossia: module for amharic] +\PolyglossiaSetup{amharic}{ + script=Ethiopic, + scripttag=ethi, + langtag=AMH, + hyphennames={amharic,nohyphenation}, + %hyphenmins={2,2}, + fontsetup=true, + %TODO localalph=ethnum +} + +\def\captionsamharic{% + \def\refname{የነሥ ጹሁፍ ምንጭ}% + \def\abstractname{አኅጽተሮ ጽሁፍ}% + \def\bibname{ቢዋ መጽሃፍት}% + \def\prefacename{መቅድም}% + \def\chaptername{ክፍል}% + \def\appendixname{መድበል}% + \def\contentsname{ይዘት}% + \def\listfigurename{የሥዕችሎ ማውጫ}% + \def\listtablename{የሰንጠዥረ ማውጫ}% + \def\indexname{ምህጻር ቃል}% + \def\figurename{ሥዕል}% + \def\tablename{ሰንጠረዥ}% + %\def\thepart{}% + \def\partname{ንዑስ ክፍል}% + \def\pagename{ገጽ}% + \def\seename{ይመልከቱ}% + \def\alsoname{ይህምን ይመልከቱ}% + \def\enclname{አባሪዎች}% + \def\ccname{ግልባጭ}% + \def\headtoname{ለ}% + \def\proofname{ማረጋገጫ}% + %\def\glossaryname{<++>}% + } + +\newcommand{\eth@monthname}[1]{\ifcase#1\or + መስከረም\or + ጥቅምት\or + ህዳር\or + ታህሳስ\or + ጥር\or + የካቲት\or + መጋቢት\or + ሚያዝያ\or + ግንቦት\or + ሰኔ\or + ሐምሌ\or + ነሐሴ\or + ጰጉሜን\fi +} +\newcount\ethcnt@temp +\newcount\ethcnt@modtemp +\newcount\ethcnt@leap +\newcount\ethcnt@yminone +\newcount\ethcnt@days +\newcount\ethcnt@jdn +\newcount\ethcnt@cycle +\newcount\ethcnt@ethdays +\newcount\ethcnt@ethyear +\newcount\ethcnt@ethmonth +\newcount\ethcnt@ethday +\newcommand{\eth@modulo}[2]{% + \ethcnt@modtemp=#1% + \divide\ethcnt@modtemp by #2% + \multiply\ethcnt@modtemp by #2% + \advance#1 by -\ethcnt@modtemp +} +\def\dateamharic{% + \def\today{{% + \ethcnt@yminone=\year + \advance\ethcnt@yminone by -1 + \ethcnt@leap=\year + \divide\ethcnt@leap by 4 + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 4 + \advance\ethcnt@leap by -\ethcnt@temp + \ethcnt@temp=\year + \divide\ethcnt@temp by 100 + \advance\ethcnt@leap by -\ethcnt@temp + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 100 + \advance\ethcnt@leap by \ethcnt@temp + \ethcnt@temp=\year + \divide\ethcnt@temp by 400 + \advance\ethcnt@leap by \ethcnt@temp + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 400 + \advance\ethcnt@leap by -\ethcnt@temp + \ifnum\month<3 + \ethcnt@days=\month + \advance\ethcnt@days by -1 + \multiply\ethcnt@days by 31 + \advance\ethcnt@days by \day + \advance\ethcnt@days by -1 + \else + \ethcnt@days=\month + \advance\ethcnt@days by -1 + \multiply\ethcnt@days by 30 + \advance\ethcnt@days by \day + \advance\ethcnt@days by \ethcnt@leap + \advance\ethcnt@days by -3 + \ethcnt@temp=\month + \multiply\ethcnt@temp by 3 + \advance\ethcnt@temp by -2 + \divide\ethcnt@temp by 5 + \advance\ethcnt@days by \ethcnt@temp + \fi + \ethcnt@jdn=\ethcnt@days + \advance\ethcnt@jdn by 1721426 + \ethcnt@temp=\ethcnt@yminone + \multiply\ethcnt@temp by 365 + \advance\ethcnt@jdn by \ethcnt@temp + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 4 + \advance\ethcnt@jdn by \ethcnt@temp + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 100 + \advance\ethcnt@jdn by -\ethcnt@temp + \ethcnt@temp=\ethcnt@yminone + \divide\ethcnt@temp by 400 + \advance\ethcnt@jdn by \ethcnt@temp + \ethcnt@cycle=\ethcnt@jdn + \advance\ethcnt@cycle by -1723856 + \eth@modulo{\ethcnt@cycle}{1461}% + \ethcnt@ethdays=\ethcnt@cycle + \eth@modulo{\ethcnt@ethdays}{365}% + \ethcnt@temp=\ethcnt@cycle + \divide\ethcnt@temp by 1460 + \multiply\ethcnt@temp by 365 + \advance\ethcnt@ethdays by \ethcnt@temp + \ethcnt@ethyear=\ethcnt@jdn + \advance\ethcnt@ethyear by -1723856 + \divide\ethcnt@ethyear by 1461 + \multiply\ethcnt@ethyear by 4 + \ethcnt@temp=\ethcnt@cycle + \divide\ethcnt@temp by 365 + \advance\ethcnt@ethyear by \ethcnt@temp + \divide\ethcnt@cycle by 1460 + \advance\ethcnt@ethyear by -\ethcnt@cycle + \ethcnt@ethmonth=\ethcnt@ethdays + \divide\ethcnt@ethmonth by 30 + \advance\ethcnt@ethmonth by 1 + \ethcnt@ethday=\ethcnt@ethdays + \eth@modulo{\ethcnt@ethday}{30}% + \advance\ethcnt@ethday by 1% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \eth@monthname{\ethcnt@ethmonth}\relax\space% + \number\ethcnt@ethday\relax\space% + \number\ethcnt@ethyear% + }}% +} + +\def\ethiop#1{\expandafter\@ethiop\csname c@#1\endcsname} +\def\@ethiop#1{{% + \ifnum#1<1\relax\ethnum@err{#1}% + \else\ifnum#1<10\relax\expandafter\ethnum@one\number #1% + \else\ifnum#1<100\relax\expandafter\ethnum@two\number #1% + \else\ifnum#1<1000\relax\expandafter\ethnum@three\number #1% + \else\ifnum#1<10000\relax\expandafter\ethnum@four\number #1% + \else\ifnum#1<100000\relax\expandafter\ethnum@five\number #1% + \else\ifnum#1<1000000\relax\expandafter\ethnum@six\number #1% + \else% + \ethnum@err% + \number#1% + \fi\fi\fi\fi\fi\fi\fi% +}} +\let\ethnum\@ethiop +\newcommand{\ethnum@tens}[1]{% + \ifcase#1\or ፲\or ፳\or ፴% + \or ፵\or ፶\or ፷% + \or ፸\or ፹\or ፺\fi% +}% +\newcommand{\ethnum@one}[1]{% + \ifcase#1\or ፩\or ፪\or ፫% + \or ፬\or ፭\or ፮% + \or ፯\or ፰\or ፱\fi% +}% +\newcommand{\ethnum@two}[1]{% + \ethnum@tens#1% + \ethnum@one% +} +\newcommand{\ethnum@three}[1]{% + \ifnum#1>1\relax\ethnum@one#1\fi% + \ifnum#1>0\relax ፻\fi% + \ethnum@two% +} +\newcommand{\ethnum@four}[1]{% + \ethnum@tens#1% + \ifnum#1>0\relax ፻\fi% + \ethnum@three% +} +\newcommand{\ethnum@five}[1]{% + \ifnum#1>1\relax\ethnum@one#1\fi% + \ifnum#1>0\relax ፼\fi% + \ethnum@four% +} +\newcommand{\ethnum@six}[1]{% + \ethnum@tens#1% + \ifnum#1>0\relax ፼\fi% + \ethnum@five% +} + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-arabic.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-arabic.ldf new file mode 100644 index 00000000000..9ffc71b16ef --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-arabic.ldf @@ -0,0 +1,209 @@ +\ProvidesFile{gloss-arabic.ldf}[polyglossia: module for arabic] +\RequirePackage{bidi} +\RequirePackage{arabicnumbers} +\RequirePackage{hijrical} + +\PolyglossiaSetup{arabic}{ + script=Arabic, + direction=RL, + langtag=ARA, + scripttag=arab, + hyphennames={nohyphenation}, + fontsetup=true + %TODO localalph={abjad,abjad} + %TODO localnumber=arabicnumber +} + +\newif\ifeastern@numerals +\def\tmp@mashriq{mashriq} +\def\tmp@maghrib{maghrib} +\define@key{arabic}{numerals}[mashriq]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@mashriq% + \eastern@numeralstrue% + \else + \ifx\@tmpa\tmp@maghrib\eastern@numeralsfalse\fi% + \fi} + +%this is needed for \abjad in arabicnumbers.sty +\def\tmp@true{true} +\define@key{arabic}{abjadjimnotail}[true]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@true\abjad@jim@notailtrue% + \else + \abjad@jim@notailfalse + \fi} + +\def\tmp@morocco{morocco} +\def\tmp@algeria{algeria} +\define@key{arabic}{locale}[default]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@morocco% + \eastern@numeralsfalse% + \else + \ifx\@tmpa\tmp@algeria% + \eastern@numeralsfalse% + \fi% + \fi% + \gdef\@@arabic@month{\@arabic@month{#1}}} + +\newif\if@hijrical +\def\tmp@hijri{hijri} +\def\tmp@islamic{islamic} +\define@key{arabic}{calendar}[gregorian]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@hijri\@hijricaltrue% + \else + \ifx\@tmpa\tmp@islamic\@hijricaltrue% + \else\@hijricalfalse% + \fi + \fi} + +\define@key{arabic}{hijricorrection}[0]{% + \gdef\@hijri@correction{#1}}% + +% This should set the defaults +\setkeys{arabic}{locale,calendar,numerals,hijricorrection,abjadjimnotail=false} + +\def\arabicgregmonth@default#1{\ifcase#1% + % Egypt, Sudan, Yemen and Golf states + \or يناير\or فبراير\or مارس\or أبريل\or مايو\or يونيو\or يوليو\or أغسطس\or سبتمبر\or أكتوبر\or نوفمبر\or ديسمبر\fi} +\def\arabicgregmonth@mashriq#1{\ifcase#1% + % Iraq Syria Jordan Lebanon Palestine + \or كانون الثاني\or شباط\or آذار\or نيسان\or أيار\or حزيران\or تموز\or آب\or أيلول\or تشرين الأول\or تشرين الثاني\or كانون الأول\fi} +\def\arabicgregmonth@libya#1{\ifcase#1% + %Lybia «تعرف في ليبيا بأسماء عربية وضعها معمر القذافي ترمز إلى فصول السنة وبعض الشخصيات التاريخية» (ar.wikipedia.org) + \or أي النار\or النوار\or الربيع\or الطير\or الماء\or الصيف\or ناصر\or هانيبال\or الفاتح\or التمور\or الحرث\or الكانون\fi} +\def\arabicgregmonth@morocco#1{\ifcase#1% + \or يناير\or فبراير\or مارس\or أبريل\or ماي\or يونيو\or يوليوز\or غشت\or شتنبر\or أكتوبر\or نونبر\or دجنبر\fi} +\def\arabicgregmonth@algeria#1{\ifcase#1% + % Tunisia and Algeria + \or جانفي\or فيفري\or مارس\or أفريل\or ماي\or جوان\or جويلية\or أوت\or سبتمبر\or أكتوبر\or نوفمبر\or ديسمبر\fi} +\let\arabicgregmonth@tunisia\arabicgregmonth@algeria +\def\arabicgregmonth@mauritania#1{\ifcase#1% + \or يناير\or فبراير\or مارس\or إبريل\or مايو\or يونيو\or يوليو\or أغشت\or شتمبر\or أكتوبر\or نوفمبر\or دجمبر\fi} + +\def\@arabic@month#1{\ifcsdef{arabicgregmonth@#1}{\expandafter\csname arabicgregmonth@#1\endcsname}% +{\xpg@warning{Option `locale=#1' is not defined for Arabic: using `default' instead}% +\arabicgregmonth@default}} + +%\Hijritoday is now locale-aware and will format the date with this macro: +\DefineFormatHijriDate{arabic}{\@ensure@RTL{\arabicnumber{\value{Hijriday}}% + \space\HijriMonthArabic{\value{Hijrimonth}}\space\arabicnumber{\value{Hijriyear}}}} + +\def\captionsarabic{% + \def\prefacename{\@ensure@RTL{مدخل}}% + \def\refname{\@ensure@RTL{المراجع}} + \def\abstractname{\@ensure@RTL{ملخص}}% + \def\bibname{\@ensure@RTL{المصادر}}% + \def\chaptername{\@ensure@RTL{باب}}% + \def\appendixname{\@ensure@RTL{الملاحق}}% + \def\contentsname{\@ensure@RTL{المحتويات}} + %\def\contentsname{\@ensure@RTL{الفهرس}}% + \def\listfigurename{\@ensure@RTL{قائمة الأشكال}}% + \def\listtablename{\@ensure@RTL{قائمة الجداول}}% + \def\indexname{\@ensure@RTL{الفهرس}}% + \def\figurename{\@ensure@RTL{شكل}}% + \def\tablename{\@ensure@RTL{جدول}}% + \def\partname{\@ensure@RTL{القسم}}% + \def\enclname{\@ensure@RTL{المرفقات}}%<-- Needs translation + \def\ccname{\@ensure@RTL{نسخة ل‬}}% << + \def\headtoname{\@ensure@RTL{إلى}}%<-- Needs translation + \def\pagename{\@ensure@RTL{صفحة}}% + \def\seename{\@ensure@RTL{راجع}}%\alefhamza\nun\za\ra + \def\alsoname{\@ensure@RTL{راجع أيضًا}}%<<\alefhamza\nun\za\ra + \def\proofname{\@ensure@RTL{برهان}}% + \def\glossaryname{\@ensure@RTL{قاموس}}%<< +} +\def\datearabic{% + \def\today{% + \if@hijrical% + \Hijritoday[\@hijri@correction]% + \else% + \if@RTL% + \arabicnumber\day\space\@@arabic@month{\month}% + \space\arabicnumber\year% + \else% in LR environment we format the gregorian date within \textenglish + \ifcsdef{english@loaded}{\textenglish{\today}}%else US format + {\normalfontlatin\ifcase\month\or January\or February\or March\or April\or May\or June\or% + July\or August\or September\or October\or November\or December\fi% + \space\number\day,\space\number\year}% + \fi% + \fi}} + +\def\arabicnumber#1{% + \ifeastern@numerals + \arabicdigits{\number#1}% + \else + %%\RL{\protect\reset@font\number#1}% + \number#1% + \fi} + +\def\@ornatebracearabic#1{\RL{\char"FD3F\@arabic#1\char"FD3E}} +\def\@ornatebracealph#1{\RL{\char"FD3F\@alph#1\char"FD3E}} + +\def\abjadmaghribi#1{% +\ifnum#1>1999\xpg@ill@value{#1}{abjad}% +\else + \ifnum#1<\z@\space\xpg@ill@value{#1}{abjad}% + \else + \ifnum#1<10\expandafter\abj@num@i\number#1% + \else + \ifnum#1<100\expandafter\abj@maghribi@num@ii\number#1% + \else + \ifnum#1<\@m\expandafter\abj@maghribi@num@iii\number#1% + \else + \ifnum#1<\@M\expandafter\abj@maghribi@num@iv\number#1% + \fi + \fi + \fi + \fi + \fi +\fi +} + +%maghribi س -> ص ص -> ض ش -> س ض -> ظ ظ -> غ غ -> ش +\def\abj@maghribi@num@ii#1{% + \ifcase#1\or ي\or ك\or ل\or م\or ن% + \or ص\or ع\or ف\or ض\fi + \ifnum#1=\z@\abjad@zero\fi\abj@num@i} +\def\abj@maghribi@num@iii#1{% + \ifcase#1\or ق\or ر\or س\or ت\or ث% + \or خ\or ذ\or ظ\or غ\fi + \ifnum#1=\z@\fi\abj@maghribi@num@ii} +\def\abj@maghribi@num@iv#1{% + \ifcase#1\or ش\fi + \ifnum#1=\z@\fi\abj@maghribi@num@iii} + +\def\arabic@numbers{% + \let\@origalph\@alph% + \let\@origAlph\@Alph% + \let\@alph\abjad% + \let\@Alph\abjad% +} +\def\noarabic@numbers{% + \let\@alph\@origalph% + \let\@Alph\@origAlph% + } + +\def\arabic@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\arabicnumber% + \renewcommand\thefootnote{\protect\arabicnumber{\c@footnote}}% + } + +\def\noarabic@globalnumbers{ + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% + } + +\def\blockextras@arabic{% + \let\orig@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + % TODO disable \@Roman and \@roman ? + } +\def\noextras@arabic{% + \let\MakeUppercase\orig@MakeUppercase% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf new file mode 100644 index 00000000000..2f22748e713 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-armenian.ldf @@ -0,0 +1,52 @@ +\ProvidesFile{gloss-armenian.ldf}[polyglossia: module for armenian] + +\PolyglossiaSetup{armenian}{ + script=Armenian, + scripttag=armn, + langtag=HYE, + hyphennames={armenian}, + hyphenmins={2,2}, + fontsetup=true +} + +%\def\captionsarmenian{% +% \def\refname{}% +% \def\abstractname{}% +% \def\bibname{}% +% \def\prefacename{}% +% \def\chaptername{}% +% \def\appendixname{}% +% \def\contentsname{}% +% \def\listfigurename{}% +% \def\listtablename{}% +% \def\indexname{}% +% \def\authorname{}% +% \def\figurename{}% +% \def\tablename{}% +% %\def\thepart{}% +% \def\partname{}% +% \def\pagename{}% +% \def\seename{}% +% \def\alsoname{}% +% \def\enclname{}% +% \def\ccname{}% +% \def\headtoname{}% +% \def\proofname{}% +% \def\glossaryname{}% +%} +\def\datearmenian{% + \def\today{\ifcase\month\or + Յունուար\or + Փետրուար\or + Մարտ\or + Ապրիլ\or + Մայիս\or + Յունիս\or + Յուլիս\or + Օգոստոս\or + Սեպտեմբեր\or + Հոկտեմբեր\or + Նոյեմբեր\or + Դեկտեմբեր\fi + \number\day,\space\number\year}} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-asturian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-asturian.ldf new file mode 100644 index 00000000000..b1eb5089331 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-asturian.ldf @@ -0,0 +1,43 @@ +% Translated by Xuacu +% Contributed by Kevin Godby +% +\ProvidesFile{gloss-asturian.ldf}[polyglossia: module for asturian] +\PolyglossiaSetup{asturian}{ + hyphennames={asturian,catalan}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\def\captionsasturian{% + \def\prefacename{Entamu}% + \def\refname{Referencies}% + \def\abstractname{Sumariu}% + \def\bibname{Bibliografía}% + \def\chaptername{Capítulu}% + \def\appendixname{Apéndiz}% + \def\contentsname{Conteníu}% + \def\listfigurename{Llista de figures}% + \def\listtablename{Llista de tables}% + \def\indexname{Índiz}% + \def\figurename{Figura}% + \def\tablename{Tabla}% + \def\partname{Parte}% + \def\enclname{incl.}% + \def\ccname{cc}% + \def\headtoname{Pa}% + \def\pagename{Páxina}% + \def\seename{ver}% + \def\alsoname{ver tamién}% + \def\proofname{Demostración}% + \def\glossaryname{Glosariu}% + } +\def\dateasturian{% + \def\today{\number\day~\ifcase\month\or + de~xineru\or de~febreru\or de~marzu\or d'abril\or de~mayu\or de~xunu\or + de~xunetu\or d'agostu\or de~setiembre\or d'ochobre\or de~payares\or + d'avientu\fi\space de~\number\year}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasai.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasai.ldf new file mode 100644 index 00000000000..28dc408a4ea --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasai.ldf @@ -0,0 +1,46 @@ +\ProvidesFile{gloss-bahasai.ldf}[polyglossia: module for bahasa indonesia] +\RequirePackage{hijrical} + +\PolyglossiaSetup{bahasai}{% + language=Bahasa Indonesia, + hyphennames={indonesian,indon,bahasai,bahasa,bahasam,malay,melayu}, + hyphenmins={2,2}, + fontsetup=true} + +\def\captionsbahasai{% + \def\refname{Pustaka}% + \def\abstractname{Ringkasan}% + \def\bibname{Bibliografi}% + \def\prefacename{Pendahuluan}% + \def\chaptername{Bab}% + \def\appendixname{Lampiran}% + \def\contentsname{Daftar Isi}% + \def\listfigurename{Daftar Gambar}% + \def\listtablename{Daftar Tabel}% + \def\indexname{Indeks}% + \def\figurename{Gambar}% + \def\tablename{Tabel}% + %\def\thepart{}% + \def\partname{Bagian}% + \def\pagename{Halaman}% + \def\seename{lihat}% + \def\alsoname{lihat juga}% + \def\enclname{Lampiran}% + \def\ccname{cc}% + \def\headtoname{Kepada}% + \def\proofname{Bukti}% + \def\glossaryname{Daftar Istilah}% + } +\def\datebahasai{% + \def\today{\number\day~\ifcase\month\or + Januari\or Pebruari\or Maret\or April\or Mei\or Juni\or + Juli\or Agustus\or September\or Oktober\or Nopember\or Desember\fi + \space \number\year}} + +\def\hijrimonthbahasai#1{\ifcase#1% +\or Muharram\or Safar\or Rabiul awal\or Rabiul akhir\or Jumadil awal\or Jumadil akhir\or Rajab% +\or Sya'ban\or Ramadhan\or Syawal\or Dzulkaidah\or Dzulhijjah\fi} +\DefineFormatHijriDate{bahasai}{% +\number\value{Hijriday}\space\hijrimonthbahasai{\value{Hijrimonth}}\space\number\value{Hijriyear}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasam.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasam.ldf new file mode 100644 index 00000000000..eb5c3749c85 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-bahasam.ldf @@ -0,0 +1,54 @@ +\ProvidesFile{gloss-bahasam.ldf}[polyglossia: module for bahasa melayu] +\RequirePackage{hijrical} +\PolyglossiaSetup{bahasam}{% + language=Bahasa Melayu, + hyphennames={malay,melayu,bahasam,bahasa,bahasai,indonesian,indon}, + hyphenmins={2,2}, + fontsetup=true} + +\def\captionsbahasam{% + \def\refname{Rujukan}% + \def\abstractname{Abstrak}% + \def\bibname{Bibliografi}% + \def\prefacename{Pendahuluan}% + \def\chaptername{Bab}% + \def\appendixname{Lampiran}% + \def\contentsname{Kandungan}% + \def\listfigurename{Senarai Rajah}% + \def\listtablename{Senarai Jadual}% + \def\indexname{Indeks}% + \def\figurename{Rajah}% + \def\tablename{Jadual}% + \def\thepart{}% + \def\partname{Bahagian}% + \def\pagename{Halaman}% + \def\seename{lihat}% + \def\alsoname{lihat juga}% + \def\enclname{Lampiran}% + \def\ccname{salinan kpd}% + \def\headtoname{Kepada}% + \def\proofname{Bukti}% + \def\glossaryname{Senarai Istilah}% + } +\def\datebahasam{% + \def\bahasam@day{% + \ifcase\day\or% + 1hb\or 2hb\or 3hb\or 4hb\or 5hb\or% + 6hb\or 7hb\or 8hb\or 9hb\or 10hb\or% + 11hb\or 12hb\or 13hb\or 14hb\or 15hb\or% + 16hb\or 17hb\or 18hb\or 19hb\or 20hb\or% + 21hb\or 22hb\or 23hb\or 24hb\or 25hb\or% + 26hb\or 27hb\or 28hb\or 29hb\or 30hb\or% + 31hb\fi}% + \def\today{\bahasam@day~\ifcase\month\or + Januari\or Februari\or Mac\or April\or Mei\or Jun\or + Julai\or Ogos\or September\or Oktober\or November\or Disember\fi + \space \number\year}} + +\def\hijrimonthbahasam#1{\ifcase#1% +\or Muharram\or Safar\or Rabiulawal\or Rabiulakhir\or Jamadilawal\or Jamadilakhir\or Rejab% +\or Syaaban\or Ramadan\or Syawal\or Zulkaedah\or Zulhijah\fi} +\DefineFormatHijriDate{bahasam}{% +\number\value{Hijriday}\space\hijrimonthbahasam{\value{Hijrimonth}}\space\number\value{Hijriyear}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-basque.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-basque.ldf new file mode 100644 index 00000000000..c6c1d3d1b92 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-basque.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-basque.ldf}[polyglossia: module for basque] +\PolyglossiaSetup{basque}{ + hyphennames={basque}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=true, +} + +\def\captionsbasque{% + \def\refname{Erreferentziak}% + \def\abstractname{Laburpena}% + \def\bibname{Bibliografia}% + \def\prefacename{Hitzaurrea}% + \def\chaptername{Kapitulua}% + \def\appendixname{Eranskina}% + \def\contentsname{Gaien Aurkibidea}% + \def\listfigurename{Irudien Zerrenda}% + \def\listtablename{Taulen Zerrenda}% + \def\indexname{Kontzeptuen Aurkibidea}% + \def\figurename{Irudia}% + \def\tablename{Taula}% + \def\thepart{}% + \def\partname{Atala}% + \def\pagename{Orria}% + \def\seename{Ikusi}% + \def\alsoname{Ikusi, halaber}% + \def\enclname{Erantsia}% + \def\ccname{Kopia}% + \def\headtoname{Nori}% + \def\proofname{Frogapena}% + \def\glossaryname{Glosarioa}% + } +\def\datebasque{% + \def\today{\number\year.eko\space\ifcase\month\or + urtarrilaren\or otsailaren\or martxoaren\or apirilaren\or + maiatzaren\or ekainaren\or uztailaren\or abuztuaren\or + irailaren\or urriaren\or azaroaren\or + abenduaren\fi~\number\day}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-bengali.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-bengali.ldf new file mode 100644 index 00000000000..c27a65ba8f4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-bengali.ldf @@ -0,0 +1,77 @@ +% Translations provided by সাজেদুর রহিম জোয়ারদার +% TODO implement Bengali calendar + +\ProvidesFile{gloss-bengali.ldf}[polyglossia: module for bengali] +\RequirePackage{devanagaridigits} + +\PolyglossiaSetup{bengali}{ + script=Bengali, + scripttag=beng, + langtag=BEN, + hyphennames={bengali}, + hyphenmins={2,2},%CHECK + fontsetup=true, + %TODO nouppercase=true, + %TODO localnumber=bengalinumber +} + +\def\tmp@western{Western} +\newif\ifbengali@devanagari@numerals +\bengali@devanagari@numeralstrue + +\define@key{bengali}{numerals}[Devanagari]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western + \bengali@devanagari@numeralsfalse + \fi} + +\def\captionsbengali{% + \def\refname{তথ্যসুত্রসমূহ}% + \def\abstractname{সারসংক্ষেপ}% + \def\bibname{তথ্যবিবরণ}% + \def\prefacename{পূর্বকথা}% + \def\chaptername{অধ্যায়}% + \def\appendixname{পরিশিষ্ট}% + \def\contentsname{সূচীপত্র}% + \def\listfigurename{ছবি/নকশা সমূহের তালিকা}% + \def\listtablename{তালিকাসারণী}% + \def\indexname{সূচক/নির্দেশক}% + \def\figurename{ছবি/নকশা}% + \def\tablename{সারনী}% + %\def\thepart{}% TODO + \def\partname{খন্ড}% + \def\pagename{পৃষ্ঠা}% + \def\seename{দেখুন}% + \def\alsoname{আরও দেখুন}% + \def\enclname{সংযুক্তি}% + \def\ccname{অনুলিপি}% + \def\headtoname{প্রতি}% + \def\proofname{প্রমাণ}% + \def\glossaryname{পরিভাষার শব্দসম্ভার}% +} +\def\datebengali{% + \def\bengalimonth{% + \ifcase\month\or + জানুয়ারী\or + ফেব্রুয়ারী\or + মার্চ\or + এপ্রিল\or + মে\or + জুন\or + জুলাই\or + আগষ্ট\or + সেপ্টেম্বর\or + অক্টোবর\or + নভেম্বর\or + ডিসেম্বর\fi}% + \def\today{\bengalinumber\day\space\bengalimonth\space\bengalinumber\year}% +} + +\def\bengalinumber#1{% + \ifbengali@devanagari@numerals + \devanagaridigits{\number#1}% + \else + \number#1% + \fi} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-brazil.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-brazil.ldf new file mode 100644 index 00000000000..3079e0778d3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-brazil.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-brazil.ldf}[polyglossia: module for portuguese] +\PolyglossiaSetup{brazil}{ + language=Brazilian Portuguese, + hyphennames={brazil,portuguese,portuges}, + hyphenmins={2,3}, + fontsetup=true, +} + +\def\captionsbrazil{% + \def\refname{Referências}% + \def\abstractname{Resumo}% + \def\bibname{Referências Bibliográficas}% + \def\prefacename{Prefácio}% + \def\chaptername{Capítulo}% + \def\appendixname{Apêndice}% + \def\contentsname{Sumário}% + \def\listfigurename{Lista de Figuras}% + \def\listtablename{Lista de Tabelas}% + \def\indexname{Índice Remissivo}% + \def\figurename{Figura}% + \def\tablename{Tabela}% + %\def\thepart{}% + \def\partname{Parte}% + \def\pagename{Página}% + \def\seename{veja}% + \def\alsoname{veja também}% + \def\enclname{Anexo}% + \def\ccname{Cópia para}% + \def\headtoname{Para}% + \def\proofname{Demonstração}% + \def\glossaryname{Glossário}% + } +\def\datebrazil{% + \def\today{\number\day\space de\space\ifcase\month\or + janeiro\or fevereiro\or março\or abril\or maio\or junho\or + julho\or agosto\or setembro\or outubro\or novembro\or dezembro% + \fi\space de\space\number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf new file mode 100644 index 00000000000..21ab4a12da8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf @@ -0,0 +1,89 @@ +\ProvidesFile{gloss-breton.ldf}[polyglossia: module for breton] +\PolyglossiaSetup{breton}{ + hyphennames={breton}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\newXeTeXintercharclass\breton@punctthin % ! ? ; +\newXeTeXintercharclass\breton@punctthick % : + +\def\breton@punctthinspace{{\unskip\thinspace}} +\def\breton@punctthickspace{{\unskip\nobreakspace}} + +\def\breton@punctuation{% + \XeTeXinterchartokenstate=1% + \XeTeXcharclass `\! \breton@punctthin + \XeTeXcharclass `\? \breton@punctthin + \XeTeXcharclass `\; \breton@punctthin + \XeTeXcharclass `\: \breton@punctthick + \XeTeXinterchartoks \z@ \breton@punctthin = \breton@punctthinspace + \XeTeXinterchartoks \z@ \breton@punctthick = \breton@punctthickspace +} + +\def\nobreton@punctuation{% + \XeTeXcharclass `\! \z@ + \XeTeXcharclass `\? \z@ + \XeTeXcharclass `\; \z@ + \XeTeXcharclass `\: \z@ + \XeTeXinterchartokenstate=0% +} + + +\def\captionsbreton{% + \def\refname{Daveennoù}% + \def\abstractname{Dvierrañ}% + \def\bibname{Lennadurezh}% + \def\prefacename{Rakskrid}% + \def\chaptername{Pennad}% + \def\appendixname{Stagadenn}% + \def\contentsname{Taolenn}% + \def\listfigurename{Listenn ar Figurennoù}% + \def\listtablename{Listenn an taolennoù}% + \def\indexname{Meneger}% + \def\figurename{Figurenn}% + \def\tablename{Taolenn}% + \def\thepart{}% + \def\partname{Lodenn}% + \def\pagename{Pajenn}% + \def\seename{Gwelout}% + \def\alsoname{Gwelout ivez}% + \def\enclname{Dielloù kevret}% + \def\ccname{Eilskrid da}% + \def\headtoname{evit}% + \def\proofname{Proof}% + \def\glossaryname{Glossary}% + } +\def\datebreton{% + \def\today{\ifnum\day=1\relax 1\/\textsuperscript{añ}\else + \number\day\fi \space a\space viz\space\ifcase\month\or + Genver\or C'hwevrer\or Meurzh\or Ebrel\or Mae\or Mezheven\or + Gouere\or Eost\or Gwengolo\or Here\or Du\or Kerzu\fi + \space\number\year}} + +\def\noextras@breton{% + \nobreton@punctuation% + } + +\def\blockextras@breton{% + \breton@punctuation% + } + +\def\inlineextras@breton{% + \breton@punctuation% + } + +\endinput + +% These are defined in Babel +% perhaps we should activate them only if option +% "ordinalmacros" is given +\def\kentan{1\/\textsuperscript{añ}} %${}^{\rm a\tilde{n}}$} +\def\eil{2\/\textsuperscript{l}} %${}^{\rm l}$} +\def\re{\/\textsuperscript{re}} %${}^{\rm re}$} +\def\trede{3\re} +\def\pevare{4\re} +\def\vet{\/\textsuperscript{vet}} %${}^{\rm vet}$} +\def\pempvet{5\vet} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf new file mode 100644 index 00000000000..4739d9916bf --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf @@ -0,0 +1,101 @@ +\ProvidesFile{gloss-bulgarian.ldf}[polyglossia: module for bulgarian] +\PolyglossiaSetup{bulgarian}{ + script=Cyrillic, + scripttag=cyrl, + langtag=BGR, + hyphennames={bulgarian}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup + %TODO localalph=bulgarian@alph +} + +\def\bulgarian@Alph#1{% + \ifcase#1\or + А\or Б\or В\or Г\or Д\or Е\or Ж\or + З\or И\or Й\or К\or Л\or М\or Н\or + О\or П\or Р\or С\or Т\or У\or Ф\or + Х\or Ц\or Ч\or Ш\or Щ\or Ъ\or + Ю\or Я\else + \xpg@ill@value{#1}{bulgarian@Alph}\fi}% + +\def\bulgarian@alph#1{% + \ifcase#1\or + а\or б\or в\or г\or д\or е\or ж\or + з\or и\or й\or к\or л\or м\or н\or + о\or п\or р\or с\or т\or у\or ф\or + х\or ц\or ч\or ш\or щ\or ъ\or ь\or + ю\or я\else + \xpg@ill@value{#1}{bulgarian@alph}\fi}% + +\def\bulgarian@numbers{% + \let\latin@Alph\@Alph% + \let\latin@alph\@alph% + \let\@Alph\bulgarian@Alph% + \let\@alph\bulgarian@alph% + } + +\def\nobulgarian@numbers{% + \let\@Alph\latin@Alph% + \let\@alph\latin@alph% +} + +\def\captionsbulgarian{% + \def\refname{Литература}% + \def\abstractname{Абстракт}% + \def\bibname{Библиография}% + \def\prefacename{Предговор}% + \def\chaptername{Глава}% + \def\appendixname{Приложение}% + \def\contentsname{Съдържание}% + \def\listfigurename{Списък на фигурите}% + \def\listtablename{Списък на таблиците}% + \def\indexname{Азбучен указател}% + \def\figurename{Фигура}% + \def\tablename{Таблица}% + %\def\thepart{}% + %\def\partname{}% + \def\pagename{Стр.}% + \def\seename{вж.}% + \def\alsoname{вж.\ също и}% + \def\enclname{Приложения}% + \def\ccname{копия}% + %\def\headtoname{}% + \def\proofname{Proof}% + \def\glossaryname{Glossary}% + } +\def\datebulgarian{% + \def\today{\number\day~\ifcase\month\or + януари\or + февруари\or + март\or + април\or + май\or + юни\or + юли\or + август\or + септември\or + октомври\or + ноември\or + декември\fi% + \ \number\year~г.}% + \def\month@Roman{\expandafter\@Roman\month}% + \def\todayRoman{\number\day.\,\month@Roman.\,\number\year~г.}% + } + +\endinput + +%% TODO? +%% this is from Babel: +\def\Romannumeral#1{\uppercase\expandafter{\romannumeral #1}} +\def\todayRoman{\number\day.\Romannumeral{\month}.\number\year~г.} +\def\sh{\mathop{\operator@font sh}\nolimits} +\def\ch{\mathop{\operator@font ch}\nolimits} +\def\tg{\mathop{\operator@font tg}\nolimits} +\def\arctg{\mathop{\operator@font arctg}\nolimits} +\def\arcctg{\mathop{\operator@font arcctg}\nolimits} +\def\ctg{\mathop{\operator@font ctg}\nolimits} +\def\cth{\mathop{\operator@font cth}\nolimits} +\def\cosec{\mathop{\operator@font cosec}\nolimits} +\DeclareRobustCommand{\No}{% + \ifmmode{\nfss@text{\textnumero}}\else\textnumero\fi} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-catalan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-catalan.ldf new file mode 100644 index 00000000000..feba1f98128 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-catalan.ldf @@ -0,0 +1,153 @@ +\ProvidesFile{gloss-catalan.ldf}[polyglossia: module for catalan] +\PolyglossiaSetup{catalan}{ + hyphennames={catalan}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\define@boolkey{catalan}[catalan@]{babelshorthands}[true]{} +\ifsystem@babelshorthands + \setkeys{catalan}{babelshorthands=true} +\else + \setkeys{catalan}{babelshorthands=false} +\fi +\ifcsundef{initiate@active@char}{% +\input{babelsh.def}% +\initiate@active@char{"}% +}{} + +%%% adapted from Babel's catalan.ldf +\newdimen\leftllkern \newdimen\rightllkern \newdimen\raiselldim +% we check if char · exists, and use it instead of raised dot: +\def\xpg@raiseddot{% + \ifluatex % + \expandafter\ifnum\directlua{polyglossia.check_char(183)} > 0\hbox{\char"00B7}% + \else\raise\raiselldim\hbox{.}% + \fi % + \else % + \ifnum\XeTeXcharglyph"00B7 > 0\hbox{\char"00B7}% why a hbox here? + \else\raise\raiselldim\hbox{.}% + \fi % + \fi % + } +\def\lgem{% + \ifmmode + \csname normal@char\string"\endcsname l% + \else + \leftllkern=0pt\rightllkern=0pt\raiselldim=0pt% + \setbox0\hbox{l}\setbox1\hbox{l\/}% + \ifluatex % + \expandafter\ifnum\directlua{polyglossia.check_char(183)} > 0\setbox2\hbox{\char"00B7}% + \else\setbox2\hbox{.}% + \fi % + \else % + \ifnum\XeTeXcharglyph"00B7 > 0\setbox2\hbox{\char"00B7}% + \else\setbox2\hbox{.}% + \fi % + \fi % + \advance\raiselldim by \the\fontdimen5\the\font + \advance\raiselldim by -\ht2% + \leftllkern=-.25\wd0% + \advance\leftllkern by \wd1% + \advance\leftllkern by -\wd0% + \rightllkern=-.25\wd0% + \advance\rightllkern by -\wd1% + \advance\rightllkern by \wd0% + \allowhyphens\discretionary{l-}{l}% + {\hbox{l}\kern\leftllkern\xpg@raiseddot% + \kern\rightllkern\hbox{l}}\allowhyphens + \fi +} +\def\Lgem{% + \ifmmode + \csname normal@char\string"\endcsname L% + \else + \leftllkern=0pt\rightllkern=0pt\raiselldim=0pt% + \setbox0\hbox{L}\setbox1\hbox{L\/}% + \ifluatex % + \expandafter\ifnum\directlua{polyglossia.check_char(183)} > 0\setbox2\hbox{\char"00B7}% + \else\setbox2\hbox{.}% + \fi % + \else % + \ifnum\XeTeXcharglyph"00B7 > 0\setbox2\hbox{\char"00B7}% + \else\setbox2\hbox{.}% + \fi % + \fi % + \advance\raiselldim by .5\ht0% + \advance\raiselldim by -.5\ht2% + \leftllkern=-.125\wd0% + \advance\leftllkern by \wd1% + \advance\leftllkern by -\wd0% + \rightllkern=-\wd0% + \divide\rightllkern by 6% + \advance\rightllkern by -\wd1% + \advance\rightllkern by \wd0% + \allowhyphens\discretionary{L-}{L}% + {\hbox{L}\kern\leftllkern\xpg@raiseddot% + \kern\rightllkern\hbox{L}}\allowhyphens + \fi +} +\AtBeginDocument{% + \let\lslash\l + \let\Lslash\L + \DeclareRobustCommand\l{\@ifnextchar.\bbl@l{\@ifnextchar·\bbl@l\lslash}} + \DeclareRobustCommand\L{\@ifnextchar.\bbl@L{\@ifnextchar·\bbl@L\Lslash}}} +\def\bbl@l#1#2{\lgem} +\def\bbl@L#1#2{\Lgem} + +\def\catalan@shorthands{% + \bbl@activate{"}% + \def\language@group{catalan}% + \declare@shorthand{catalan}{"l}{\lgem{}} + \declare@shorthand{catalan}{"L}{\Lgem{}} +} + +\def\nocatalan@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% +} + +\def\captionscatalan{% + \def\refname{Referències}% + \def\abstractname{Resum}% + \def\bibname{Bibliografia}% + \def\prefacename{Pròleg}% + \def\chaptername{Capítol}% + \def\appendixname{Apèndix}% + \def\contentsname{Índex}% + \def\listfigurename{Índex de figures}% + \def\listtablename{Índex de taules}% + \def\indexname{Índex alfabètic}% + \def\figurename{Figura}% + \def\tablename{Taula}% + %\def\thepart{}% + \def\partname{Part}% + \def\pagename{Pàgina}% + \def\seename{Vegeu}% + \def\alsoname{Vegeu també}% + \def\enclname{Adjunt}% + \def\ccname{Còpies a}% + \def\headtoname{A}% + \def\proofname{Demostració}% + \def\glossaryname{Glossari}% + } +\def\datecatalan{% + \def\today{\number\day~\ifcase\month\or + de gener\or de febrer\or de març\or d'abril\or de maig\or + de juny\or de juliol\or d'agost\or de setembre\or d'octubre\or + de novembre\or de desembre\fi + \space de~\number\year}} + +\def\noextras@catalan{% + \nocatalan@shorthands% +} + +\def\blockextras@catalan{% + \ifcatalan@babelshorthands\catalan@shorthands\fi% +} + +\def\inlineextras@catalan{% + \ifcatalan@babelshorthands\catalan@shorthands\fi% +} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-coptic.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-coptic.ldf new file mode 100644 index 00000000000..76a4fb151a5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-coptic.ldf @@ -0,0 +1,39 @@ +\ProvidesFile{gloss-coptic.ldf}[polyglossia: module for coptic] +\PolyglossiaSetup{coptic}{ + script=Coptic, + scripttag=copt, + langtag=COP, + hyphennames={coptic}, + hyphenmins={2,2}, + fontsetup=true +} + +%\def\captionscoptic{% +% \def\refname{<++>}% +% \def\abstractname{<++>}% +% \def\bibname{<++>}% +% \def\prefacename{<++>}% +% \def\chaptername{<++>}% +% \def\appendixname{<++>}% +% \def\contentsname{<++>}% +% \def\listfigurename{<++>}% +% \def\listtablename{<++>}% +% \def\indexname{<++>}% +% \def\figurename{<++>}% +% \def\tablename{<++>}% +% \def\thepart{}% +% \def\partname{<++>}% +% \def\pagename{<++>}% +% \def\seename{<++>}% +% \def\alsoname{<++>}% +% \def\enclname{<++>}% +% \def\ccname{<++>}% +% \def\headtoname{<++>}% +% \def\proofname{<++>}% +% \def\glossaryname{<++>}% +% } +%\def\datecoptic{% +% \def\today{<++>}% +% } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf new file mode 100644 index 00000000000..c43775077a4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-croatian.ldf @@ -0,0 +1,38 @@ +\ProvidesFile{gloss-croatian.ldf}[polyglossia: module for croatian] +\PolyglossiaSetup{croatian}{ + hyphennames={croatian}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=true, +} + +\def\captionscroatian{% + \def\refname{Literatura}% + \def\abstractname{Sažetak}% + \def\bibname{Bibliografija}% + \def\prefacename{Predgovor}% + \def\chaptername{Poglavlje}% + \def\appendixname{Dodatak}% + \def\contentsname{Sadržaj}% + \def\listfigurename{Popis slika}% + \def\listtablename{Popis tablica}% + \def\indexname{Indeks}% + \def\figurename{Slika}% + \def\tablename{Tablica}% + \def\partname{Dio}% + \def\pagename{Stranica}% + \def\seename{Vidjeti}% + \def\alsoname{Vidjeti i}% + \def\enclname{Prilozi}% + \def\ccname{Kopije}% + \def\headtoname{Prima}% + \def\proofname{Dokaz}% + \def\glossaryname{Kazalo}% + } +\def\datecroatian{% + \def\today{\number\day.~\ifcase\month\or + siječnja\or veljače\or ožujka\or travnja\or svibnja\or + lipnja\or srpnja\or kolovoza\or rujna\or listopada\or studenog\or + prosinca\fi \space \number\year.}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-czech.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-czech.ldf new file mode 100644 index 00000000000..8704aa043be --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-czech.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-czech.ldf}[polyglossia: module for czech] +\PolyglossiaSetup{czech}{ + hyphennames={czech}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsczech{% + \def\refname{Reference}% + \def\abstractname{Abstrakt}% + \def\bibname{Literatura}% + \def\prefacename{Předmluva}% + \def\chaptername{Kapitola}% + \def\appendixname{Dodatek}% + \def\contentsname{Obsah}% + \def\listfigurename{Seznam obrázků}% + \def\listtablename{Seznam tabulek}% + \def\indexname{Index}% + \def\figurename{Obrázek}% + \def\tablename{Tabulka}% + %\def\thepart{}% + \def\partname{Část}% + \def\pagename{Strana}% + \def\seename{viz}% + \def\alsoname{viz}% + \def\enclname{Příloha}% + \def\ccname{Na vědomí:}% + \def\headtoname{Komu}% + \def\proofname{Důkaz}% + \def\glossaryname{Slovník}%was Glosář + } +\def\dateczech{% + \def\today{\number\day.~\ifcase\month\or + ledna\or února\or března\or dubna\or května\or + června\or července\or srpna\or září\or + října\or listopadu\or prosince\fi + \space \number\year}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-danish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-danish.ldf new file mode 100644 index 00000000000..282ea8277f6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-danish.ldf @@ -0,0 +1,36 @@ +\ProvidesFile{gloss-danish.ldf}[polyglossia: module for danish] +\PolyglossiaSetup{danish}{ + hyphennames={danish}, + hyphenmins={2,3}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsdanish{% + \def\prefacename{Forord}% + \def\refname{Litteratur}% + \def\abstractname{Resumé}% + \def\bibname{Litteratur}% + \def\chaptername{Kapitel}% + \def\appendixname{Bilag}% + \def\contentsname{Indhold}% + \def\listfigurename{Figurer}% + \def\listtablename{Tabeller}% + \def\indexname{Indeks}% + \def\figurename{Figur}% + \def\tablename{Tabel}% + \def\partname{Del}% + \def\enclname{Vedlagt}% + \def\ccname{Kopi til}% or Kopi sendt til + \def\headtoname{Til}% in letter + \def\pagename{Side}% + \def\seename{Se}% + \def\alsoname{Se også}}% + \def\proofname{Bevis}% + \def\glossaryname{Gloseliste}% + \def\today{\number\day.~\ifcase\month\or + januar\or februar\or marts\or april\or maj\or juni\or + juli\or august\or september\or oktober\or november\or december\fi + \space\number\year} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-divehi.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-divehi.ldf new file mode 100644 index 00000000000..bbf0bb50a2a --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-divehi.ldf @@ -0,0 +1,45 @@ +\ProvidesFile{gloss-divehi.ldf}[polyglossia: module for divehi] +\RequirePackage{bidi} +\PolyglossiaSetup{divehi}{ + script=Thaana, + scripttag=thaa, + direction=RL, + hyphennames={nohyphenation}, + fontsetup=true +} + +%\def\captionsdivehi{% +% \def\refname{<++>}% +% \def\abstractname{<++>}% +% \def\bibname{<++>}% +% \def\prefacename{<++>}% +% \def\chaptername{<++>}% +% \def\appendixname{<++>}% +% \def\contentsname{<++>}% +% \def\listfigurename{<++>}% +% \def\listtablename{<++>}% +% \def\indexname{<++>}% +% \def\figurename{<++>}% +% \def\tablename{<++>}% +% \def\thepart{}% +% \def\partname{<++>}% +% \def\pagename{<++>}% +% \def\seename{<++>}% +% \def\alsoname{<++>}% +% \def\enclname{<++>}% +% \def\ccname{<++>}% +% \def\headtoname{<++>}% +% \def\proofname{<++>}% +% \def\glossaryname{<++>}% +% } +%\def\datedivehi{\def\today{<++>}} + +\def\blockextras@divehi{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } +\def\noextras@divehi{% + \let\MakeUppercase\@@MakeUppercase% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-dutch.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-dutch.ldf new file mode 100644 index 00000000000..2633956a9d8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-dutch.ldf @@ -0,0 +1,80 @@ +\ProvidesFile{gloss-dutch.ldf}[polyglossia: module for dutch] +\PolyglossiaSetup{dutch}{ + hyphennames={dutch}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\define@boolkey{dutch}[dutch@]{babelshorthands}[true]{} + +\ifsystem@babelshorthands + \setkeys{dutch}{babelshorthands=true} +\else + \setkeys{dutch}{babelshorthands=false} +\fi + +\ifcsundef{initiate@active@char}{% +\input{babelsh.def}% +\initiate@active@char{"}% +}{} + +\def\dutch@shorthands{% + \bbl@activate{"}% + \def\language@group{dutch}% + \declare@shorthand{dutch}{"-}{\nobreak-\bbl@allowhyphens} + \declare@shorthand{dutch}{"~}{\textormath{\leavevmode\hbox{-}}{-}} + \declare@shorthand{dutch}{"|}{% + \textormath{\discretionary{-}{}{\kern.03em}}{}} + \declare@shorthand{dutch}{""}{\hskip\z@skip} + \declare@shorthand{dutch}{"/}{\textormath + {\bbl@allowhyphens\discretionary{/}{}{/}\bbl@allowhyphens}{}}% + \def\-{\bbl@allowhyphens\discretionary{-}{}{}\bbl@allowhyphens}% +} + +\def\nodutch@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% + \def\-{\discretionary{-}{}{}}% << original def in latex.ltx +} + +\def\captionsdutch{% + \def\prefacename{Voorwoord}% + \def\refname{Referenties}% + \def\abstractname{Samenvatting}% + \def\bibname{Bibliografie}% + \def\chaptername{Hoofdstuk}% + \def\appendixname{Bijlage}% + \def\contentsname{Inhoudsopgave}% + \def\listfigurename{Lijst van figuren}% + \def\listtablename{Lijst van tabellen}% + \def\indexname{Index}% + \def\figurename{Figuur}% + \def\tablename{Tabel}% + \def\partname{Deel}% + \def\enclname{Bijlage(n)}% + \def\ccname{cc}% + \def\headtoname{Aan}% + \def\pagename{Pagina}% + \def\seename{zie}% + \def\alsoname{zie ook}% + \def\proofname{Bewijs}% + \def\glossaryname{Verklarende woordenlijst}% + \def\today{\number\day~\ifcase\month% + \or januari\or februari\or maart\or april\or mei\or juni\or + juli\or augustus\or september\or oktober\or november\or + december\fi + \space \number\year}} + +\def\noextras@dutch{% + \nodutch@shorthands% +} + +\def\blockextras@dutch{% + \ifdutch@babelshorthands\dutch@shorthands\fi% +} + +\def\inlineextras@dutch{% + \ifdutch@babelshorthands\dutch@shorthands\fi% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-english.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-english.ldf new file mode 100644 index 00000000000..f10c7197748 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-english.ldf @@ -0,0 +1,111 @@ +\ProvidesFile{gloss-english.ldf}[polyglossia: module for english] +\PolyglossiaSetup{english}{ + hyphennames={english,american,usenglish,USenglish}, + hyphenmins={2,3}, + fontsetup=true, +} + +\newif\if@british@locale +\@british@localefalse +\providebool{@british@hyphen} +\providebool{english@ordinalmonthday} + +\define@boolkey{english}[english@]{ordinalmonthday}[true]{} + +%% English is a special case in that \l@english is reserved for US English, so +%% we need to handle it differently +\define@key{english}{variant}{% + %needs to be reset for loop over hyphennames below: + \renewcommand*{\do}[1]{% + \ifcsdef{l@#1}% + {\csletcs{l@english}{l@#1}\listbreak}% + {}% + }% + \ifstrequal{#1}{uk}% + {\@british@localetrue + \xpg@info{Option: english variant=british}}% + {\ifstrequal{#1}{british}% + {\@british@localetrue + \xpg@info{Option: english variant=british}}% + {\ifstrequal{#1}{us}% these patterns are the default so we don't need to reset them + {\@british@hyphenfalse\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=american}}% + {\ifstrequal{#1}{american}% + {\@british@hyphenfalse\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=american}}% + {\ifstrequal{#1}{usmax}% + {\@british@hyphenfalse\english@ordinalmonthdayfalse + \setkeys[xpg@setup]{english}{hyphennames={usenglishmax}}% + \xpg@info{Option: english variant=american (with additional patterns)}% + \ifcsundef{l@usenglishmax}% + {\xpg@warning{No hyphenation patterns were loaded for "US English Max"\MessageBreak + I will use the standard patterns for US English instead}% + \adddialect\l@usenglishmax\l@english\relax}{}% + \gdef\english@language{\language=\l@usenglishmax}}% + {\ifstrequal{#1}{australian}% + {\@british@hyphentrue\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=australian}}% + {\ifstrequal{#1}{newzealand}% + {\@british@hyphentrue\english@ordinalmonthdayfalse + \xpg@info{Option: english variant=newzealand}}% + {\xpg@warning{Unknown English variant `#1'}}% + }}}}}}% + \if@british@locale\@british@hyphentrue\english@ordinalmonthdaytrue\fi + \if@british@hyphen + \setkeys[xpg@setup]{english}{hyphennames={ukenglish,british,UKenglish}}% + \ifcsundef{l@ukenglish}% + {\xpg@warning{No hyphenation patterns were loaded for British English\MessageBreak + I will use the patterns for US English instead}% + \adddialect\l@ukenglish\l@english\relax}{}% + \gdef\english@language{\language=\l@ukenglish}% + \fi + % and we reset \do to its previous definition here: + \renewcommand*{\do}[1]{\setotherlanguage{#1}}% +} + +\def\captionsenglish{% + \def\prefacename{Preface}% + \def\refname{References}% + \def\abstractname{Abstract}% + \def\bibname{Bibliography}% + \def\chaptername{Chapter}% + \def\appendixname{Appendix}% + \def\contentsname{Contents}% + \def\listfigurename{List of Figures}% + \def\listtablename{List of Tables}% + \def\indexname{Index}% + \def\figurename{Figure}% + \def\tablename{Table}% + \def\partname{Part}% + \def\enclname{encl}% + \def\ccname{cc}% + \def\headtoname{To}% + \def\pagename{Page}% + \def\seename{see}% + \def\alsoname{see also}% + \def\proofname{Proof}% +} +\def\dateenglish{% + \def\english@day{% + \ifenglish@ordinalmonthday + \ifcase\day\or + 1st\or 2nd\or 3rd\or 4th\or 5th\or + 6th\or 7th\or 8th\or 9th\or 10th\or + 11th\or 12th\or 13th\or 14th\or 15th\or + 16th\or 17th\or 18th\or 19th\or 20th\or + 21st\or 22nd\or 23rd\or 24th\or 25th\or + 26th\or 27th\or 28th\or 29th\or 30th\or + 31st\fi + \else\number\day\fi}% + \def\english@month{\ifcase\month\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or December\fi}% + \def\today{% + \if@british@locale + \english@day\space\english@month\space\number\year + \else + \english@month\space\english@day, \number\year + \fi}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-esperanto.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-esperanto.ldf new file mode 100644 index 00000000000..e3bc8d31ac4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-esperanto.ldf @@ -0,0 +1,65 @@ +\ProvidesFile{gloss-esperanto.ldf}[polyglossia: module for esperanto] +\PolyglossiaSetup{esperanto}{ + hyphennames={esperanto}, + hyphenmins={2,2}, + fontsetup=true, + %TODO localalph={esperanto@alph,esperanto@Alph} +} + +\def\captionsesperanto{% + \def\refname{Citaĵoj}% + \def\abstractname{Resumo}% + \def\bibname{Bibliografio}% + \def\prefacename{Antaŭparolo}% + \def\chaptername{Ĉapitro}% + \def\appendixname{Apendico}% + \def\contentsname{Enhavo}% + \def\listfigurename{Listo de figuroj}% + \def\listtablename{Listo de tabeloj}% + \def\indexname{Indekso}% + \def\figurename{Figuro}% + \def\tablename{Tabelo}% + %\def\thepart{}% + %\def\partname{}% + \def\pagename{Paĝo}% + \def\seename{vidu}% + \def\alsoname{Parto}% + \def\enclname{Aldono(j)}% + \def\ccname{Kopie al}% + \def\headtoname{Al}% + \def\proofname{Pruvo}% + \def\glossaryname{Glosaro}% + } +\def\dateesperanto{% + \def\today{\number\day{–a}~de~\ifcase\month\or + januaro\or februaro\or marto\or aprilo\or majo\or junio\or + julio\or aŭgusto\or septembro\or oktobro\or novembro\or + decembro\fi,\space \number\year}% + \def\hodiau{la \today}% + \def\hodiaun{la \number\day{–an}~de~\ifcase\month\or + januaro\or februaro\or marto\or aprilo\or majo\or junio\or + julio\or aŭgusto\or septembro\or oktobro\or novembro\or + decembro\fi, \space \number\year}% + } +\def\esperanto@alph#1{% + \ifcase#1\or a\or b\or c\or ĉ\or d\or e\or f\or g\or ĝ\or + h\or ĥ\or i\or j\or ĵ\or k\or l\or m\or n\or o\or + p\or r\or s\or ŝ\or t\or u\or ŭ\or v\or z\else\xpg@ill@value{#1}{esperanto@alph}\fi}% +\def\esperanto@Alph#1{% + \ifcase#1\or A\or B\or C\or Ĉ\or D\or E\or F\or G\or Ĝ\or + H\or Ĥ\or I\or J\or Ĵ\or K\or L\or M\or N\or O\or + P\or R\or S\or Ŝ\or T\or U\or Ŭ\or V\or Z\else\xpg@ill@value{#1}{esperanto@Alph}\fi}% + +\def\esperanto@numbers{% + \let\latin@Alph\@Alph% + \let\latin@alph\@alph% + \let\@Alph\esperanto@Alph% + \let\@alph\esperanto@alph% + } + +\def\noesperanto@numbers{% + \let\@Alph\latin@Alph% + \let\@alph\latin@alph% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-estonian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-estonian.ldf new file mode 100644 index 00000000000..e84aa304712 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-estonian.ldf @@ -0,0 +1,39 @@ +\ProvidesFile{gloss-estonian.ldf}[polyglossia: module for estonian] +\PolyglossiaSetup{estonian}{ + hyphennames={estonian}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsestonian{% + \def\refname{Viited}% + \def\abstractname{Kokkuvõte}% + \def\bibname{Kirjandus}% + \def\prefacename{Sissejuhatus}% + \def\chaptername{Peatükk}% + \def\appendixname{Lisa}% + \def\contentsname{Sisukord}% + \def\listfigurename{Joonised}% + \def\listtablename{Tabelid}% + \def\indexname{Indeks}% + \def\figurename{Joonis}% + \def\tablename{Tabel}% + %\def\thepart{}% + \def\partname{Osa}% + \def\pagename{Lk.}% + \def\seename{vt.}% + \def\alsoname{vt. ka}% + \def\enclname{Lisa(d)}% + \def\ccname{Koopia(d)}% + %\def\headtoname{}% + \def\proofname{Korrektuur}% + \def\glossaryname{Glossary}% <-- need translation + } +\def\dateestonian{% + \def\today{\number\day.\space\ifcase\month\or + jaanuar\or veebruar\or märts\or aprill\or mai\or juuni\or + juuli\or august\or september\or oktoober\or november\or + detsember\fi\space\number\year.\space a.}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-farsi.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-farsi.ldf new file mode 100644 index 00000000000..d3aeeb2922d --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-farsi.ldf @@ -0,0 +1,125 @@ +\ProvidesFile{gloss-farsi.ldf}[polyglossia: module for farsi] +\RequirePackage{bidi} +\RequirePackage{arabicnumbers} +\RequirePackage{farsical} +\RequirePackage{hijrical} +\PolyglossiaSetup{farsi}{ + script=Arabic, + direction=RL, + scripttag=arab, + langtag=FAR, + hyphennames={nohyphenation}, + fontsetup=true +} + +\newif\if@western@numerals +\def\tmp@western{western} +\define@key{farsi}{numerals}[eastern]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western\@western@numeralstrue\else% + \@western@numeralsfalse% + \fi} + +%this is needed for \abjad in arabicnumbers.sty +\def\tmp@true{true} +\define@key{farsi}{abjadjimnotail}[true]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@true\abjad@jim@notailtrue% + \else + \abjad@jim@notailfalse + \fi} + +% NOT YET USED +\define@key{farsi}{locale}[default]{% + \def\@farsi@locale{#1}} + +%TODO add option for CALENDAR + +\setkeys{farsi}{locale,numerals} + +\def\farsigregmonth#1{\ifcase#1% + \or ژانویه\or فوریه\or مارس\or آوریل\or مه\or ژوئن\or ژوئیه\or اوت\or سپتامبر\or اکتبر\or نوامبر\or دسامبر\fi} +\def\farsimonth#1{\ifcase#1% + \or کانون ثانی\or شباط\or اذار%%or ادار + \or نیسان\or ایار\or حزیران\or تموز\or آب\or ایلول\or تشرین اول\or تشرین ثانی\or کانون اول\fi} + +%\Hijritoday is now locale-aware and will format the date with this macro: +\DefineFormatHijriDate{farsi}{\@ensure@RTL{% +\farsinumber{\value{Hijriday}}\space\HijriMonthArabic{\value{Hijrimonth}}\space\farsinumber{\value{Hijriyear}}}} + +\def\captionsfarsi{% +\def\prefacename{\@ensure@RTL{پیشگفتار}}% +\def\refname{\@ensure@RTL{مراجع}}% +\def\abstractname{\@ensure@RTL{چکیده}}% +\def\bibname{\@ensure@RTL{کتاب‌نامه}}% +\def\chaptername{\@ensure@RTL{فصل}}% +\def\appendixname{\@ensure@RTL{پیوست}}% +\def\contentsname{\@ensure@RTL{فهرست مطالب}}% +\def\listfigurename{\@ensure@RTL{لیست تصاویر}}% +\def\listtablename{\@ensure@RTL{لیست جداول}}% +\def\indexname{\@ensure@RTL{نمایه}}% +\def\figurename{\@ensure@RTL{شكل}}% +\def\tablename{\@ensure@RTL{جدول}}% +\def\partname{\@ensure@RTL{بخش}}% +\def\enclname{\@ensure@RTL{پیوست}}% +\def\ccname{\@ensure@RTL{رونوشت}}% +\def\headtoname{\@ensure@RTL{به}}% +\def\pagename{\@ensure@RTL{صفحة}}% +\def\seename{\@ensure@RTL{ببینید}}% +\def\alsoname{\@ensure@RTL{نیز ببینید}}% +\def\proofname{\@ensure@RTL{برهان}}% +\def\glossaryname{\@ensure@RTL{دانش‌نامه}}% +} +\def\datefarsi{% + \def\today{\@ensure@RTL{\farsinumber\day\space\farsigregmonth{\month}\space\farsinumber\year}}% +} + +\def\farsinumber#1{% + \if@western@numerals + \number#1% + \else + \ifnum\XeTeXcharglyph"06F0 > 0% + \farsidigits{\number#1}% + %%{\protect\addfontfeature{Mapping=farsidigits}\number#1}% + \else% + \arabicdigits{\number#1}% + %%{\protect\addfontfeature{Mapping=arabicdigits}\number#1}% + \fi + \fi} + +%\def\farsinum#1{\expandafter\farsinumber\csname c@#1\endcsname} +%\def\farsibracenum#1{(\expandafter\farsinumber\csname c@#1\endcsname)} +%\def\farsiornatebracenum#1{\char"FD3E\expandafter\farsinumber\csname c@#1\endcsname\char"FD3F} +%\def\farsialph#1{\expandafter\@farsialph\csname c@#1\endcsname} + +\def\farsi@numbers{% + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% + \let\@alph\abjad% + \let\@Alph\abjad% +} +\def\nofarsi@numbers{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% + } + +\def\farsi@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\farsinumber% + % For some reason \thefootnote needs to be set separately: + \renewcommand\thefootnote{\protect\farsinumber{\c@footnote}}% + } + +\def\nofarsi@globalnumbers{ + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% + } + +\def\blockextras@farsi{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } +\def\noextras@farsi{% + \let\MakeUppercase\@@MakeUppercase% + } +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf new file mode 100644 index 00000000000..6b271e531d9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-finnish.ldf @@ -0,0 +1,48 @@ +\ProvidesFile{gloss-finnish.ldf}[polyglossia: module for finnish] +\PolyglossiaSetup{finnish}{ + hyphennames={finnish}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsfinnish{% + \def\refname{Viitteet}% + \def\abstractname{Tiivistelmä}% + \def\bibname{Kirjallisuutta}% + \def\prefacename{Esipuhe}% + \def\chaptername{Luku}% + \def\appendixname{Liite}% + \def\contentsname{Sisältö}% + \def\listfigurename{Kuvat}% + \def\listtablename{Taulukot}% + \def\indexname{Hakemisto}% + \def\figurename{Kuva}% + \def\tablename{Taulukko}% + %\def\thepart{}% + \def\partname{Osa}% + \def\pagename{Sivu}% + \def\seename{katso}% + \def\alsoname{katso myös}% + \def\enclname{Liitteet}% + \def\ccname{Jakelu}% + \def\headtoname{Vastaanottaja}% + \def\proofname{Todistus}% + \def\glossaryname{Sanasto}% + } +\def\datefinnish{% + \def\today{\number\day.~\ifcase\month\or + tammikuuta\or helmikuuta\or maaliskuuta\or huhtikuuta\or + toukokuuta\or kesäkuuta\or heinäkuuta\or elokuuta\or + syyskuuta\or lokakuuta\or marraskuuta\or joulukuuta\fi + \space\number\year}} + +\endinput + +% TODO ? this is set in babel: +\gappto\blockextrasfinnish{% + \babel@savevariable\hyphenpenalty\hyphenpenalty=30% + \babel@savevariable\exhyphenpenalty\exhyphenpenalty=30% + \babel@savevariable\doublehyphendemerits\doublehyphendemerits=5000% + \babel@savevariable\finalhyphendemerits\finalhyphendemerits=5000% + } diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf new file mode 100644 index 00000000000..47476760ae0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf @@ -0,0 +1,140 @@ +\ProvidesFile{gloss-french.ldf}[polyglossia: module for french] + +\PolyglossiaSetup{french}{% + language=French, + script=Latin, + hyphennames={french,francais}, + frenchspacing=true, + indentfirst=true, + hyphenmins={2,2}, + fontsetup=true} + +\ifluatex + \newluatexattribute\xpg@frpt % + \directlua{polyglossia.load_frpt()}% + \global\newcount\xpg@interchartokenstate % +\else + \newXeTeXintercharclass\french@punctthin % ! ? ; et autres + \newXeTeXintercharclass\french@punctthick % : + \newXeTeXintercharclass\french@punctguillstart % « ‹ + \newXeTeXintercharclass\french@punctguillend % » › +\fi + +\def\xpg@unskip{\ifhmode\ifdim\lastskip>\z@\unskip\fi\fi} +\def\xpg@nospace#1{#1} + +\def\french@punctuation{% + \lccode"2019="2019 + \ifluatex + \global\xpg@frpt=1\relax % + \directlua{polyglossia.activate_frpt()}% + \else + \XeTeXinterchartokenstate=1 + \XeTeXcharclass `\! \french@punctthin + \XeTeXcharclass `\? \french@punctthin + \XeTeXcharclass `\‼ \french@punctthin + \XeTeXcharclass `\⁇ \french@punctthin + \XeTeXcharclass `\⁈ \french@punctthin + \XeTeXcharclass `\⁉ \french@punctthin + \XeTeXcharclass `\; \french@punctthin + \XeTeXcharclass `\: \french@punctthick + \XeTeXcharclass `\« \french@punctguillstart + \XeTeXcharclass `\» \french@punctguillend + \XeTeXcharclass `\‹ \french@punctguillstart + \XeTeXcharclass `\› \french@punctguillend + \XeTeXinterchartoks \z@ \french@punctthin = {\nobreak\thinspace}% + \XeTeXinterchartoks \z@ \french@punctthick = {\nobreakspace}% + \XeTeXinterchartoks 255 \french@punctthin = {\xpg@unskip\nobreak\thinspace}% + \XeTeXinterchartoks 255 \french@punctthick = {\xpg@unskip\nobreakspace}% + \XeTeXinterchartoks \french@punctguillstart \z@ = {\nobreakspace}% "«a" -> "« a" + % \XeTeXinterchartoks \z@ \french@punctguillstart = {\nobreakspace}% "a«" unchanged? + % \XeTeXinterchartoks \french@punctguillend \z@ = {\nobreakspace}% "»a" unchanged? + \XeTeXinterchartoks \z@ \french@punctguillend = {\nobreakspace}% "a»" -> "a »" + \XeTeXinterchartoks \french@punctguillstart 255 = {\nobreakspace\xpg@nospace}% "« " -> "«~" + \XeTeXinterchartoks 255 \french@punctguillend = {\xpg@unskip\nobreakspace}% " »" -> "~»" + \XeTeXinterchartoks \french@punctguillend \french@punctthin = {\nobreak\thinspace}% "»;" -> "» ;" + \XeTeXinterchartoks \french@punctguillend \french@punctthick = {\nobreakspace}% "»:" -> "» :" + \XeTeXinterchartoks \french@punctthin \french@punctguillend = {\nobreakspace}% "?»" -> "? »" + \fi + } + +\def\nofrench@punctuation{% + \lccode"2019=\z@ + \ifluatex + \global\xpg@frpt=0\relax % + % Though it would make compilation slightly faster, it is not possible to + % safely uncomment the following line. Imagine the following case: you start + % a paragraph by some french text, then, in the same paragraph, you change + % the language to something else, and thus call the following line. This means + % that, at then end of the paragraph, the function won't be in the callback, + % so the beginning of the paragraph won't be processed by it. + %\directlua{polyglossia.desactivate_frpt()} + \else + \XeTeXcharclass `\! \z@ + \XeTeXcharclass `\? \z@ + \XeTeXcharclass `\‼ \z@ + \XeTeXcharclass `\⁇ \z@ + \XeTeXcharclass `\⁈ \z@ + \XeTeXcharclass `\⁉ \z@ + \XeTeXcharclass `\; \z@ + \XeTeXcharclass `\: \z@ + \XeTeXcharclass `\« \z@ + \XeTeXcharclass `\» \z@ + \XeTeXcharclass `\‹ \z@ + \XeTeXcharclass `\› \z@ + \XeTeXinterchartokenstate=0 + \fi + } + +\def\captionsfrench{% + \def\refname{Références}% + \def\abstractname{Résumé}% + \def\bibname{Bibliographie}% + \def\prefacename{Préface}% + \def\chaptername{Chapitre}% + \def\appendixname{Annexe}% + \def\contentsname{Table des matières}% + \def\listfigurename{Table des figures}% + \def\listtablename{Liste des tableaux}% + \def\indexname{Index}% + \def\figurename{\textsc{Fig.}}% + \def\tablename{\textsc{Tab.}}% + \def\@Fpt{\ifcase\value{part}\or Première\or Deuxième\or + Troisième\or Quatrième\or Cinquième\or Sixième\or + Septième\or Huitième\or Neuvième\or Dixième\or Onzième\or + Douzième\or Treizième\or Quatorzième\or Quinzième\or + Seizième\or Dix-septième\or Dix-huitième\or Dix-neuvième\or + Vingtième\fi\space}% + \def\thepart{}% + \def\partname{\protect\@Fpt partie}% + \def\pagename{page}% + \def\seename{\emph{voir}}% + \def\alsoname{\emph{voir aussi}}% + \def\enclname{P.~J. }% + \def\ccname{Copie à }% + \def\headtoname{}% + \def\proofname{Démonstration}% + } +\def\datefrench{% + \def\today{\ifx\ier\undefined\def\ier{er}\fi + \ifnum\day=1\relax 1\ier% + \else \number\day\fi + \space \ifcase\month% + \or janvier\or février\or mars\or avril\or mai\or juin\or + juillet\or août\or septembre\or octobre\or novembre\or + décembre\fi + \space \number\year}} + +\def\noextras@french{% + \nofrench@punctuation% + } + +\def\blockextras@french{% + \french@punctuation% + } + +\def\inlineextras@french{% + \french@punctuation% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-friulan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-friulan.ldf new file mode 100644 index 00000000000..a753c04e41f --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-friulan.ldf @@ -0,0 +1,64 @@ +\ProvidesFile{gloss-friulan.ldf}[polyglossia: module for friulan] +\makeatletter +\PolyglossiaSetup{friulan}{% + hyphennames={friulan,furlan}, + hyphenmins={2,2}, + indentfirst=false, + fontsetup=true, + frenchspacing=true, +} + + +\def\captionsfriulan{% + \def\prefacename{Prefazion}% + \def\refname{Riferiments}% + \def\abstractname{Somari}% + \def\bibname{Bibliografie}% + \def\chaptername{Cjapitul}% + \def\appendixname{Zonte}% + \def\contentsname{Tabele gjenerâl}% + \def\listfigurename{Liste des figuris}% + \def\listtablename{Liste des tabelis}% + \def\indexname{Tabele analitiche}% + \def\figurename{Figure}% + \def\tablename{Tabele}% + \def\partname{Part}% + \def\enclname{Zonte(is)}% + \def\ccname{Cun copie a}% + \def\headtoname{Par}% + \def\pagename{Pagjine}% + \def\seename{cjale}% + \def\alsoname{cjale ancje}% + \def\proofname{Dimostrazion}% + \def\glossaryname{Glossari}% + } + +\def\datefriulan{% + \def\today{\number\day\space di\space\ifcase\month\or + Genâr\or Fevrâr\or Març\or Avril\or Mai\or Jugn\or + Lui\or Avost\or Setembar\or Otobar\or Novembar\or Dicembar% + \fi\space dal\space\number\year}} + +\AtEndPreamble{% the user or the class might define different values + \edef\xpgfu@savedvalues{% + \clubpenalty=\the\clubpenalty\space + \@clubpenalty=\the\@clubpenalty\space + \widowpenalty=\the\widowpenalty\space + \finalhyphendemerits=\the\finalhyphendemerits} +} + + +\def\noextras@friulan{% + \lccode\string"2019=\z@ +} + +\def\blockextras@friulan{% + \lccode\string"2019=\string"2019 + \clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000 + \finalhyphendemerits=50000000 +} + +\def\inlineextras@friulan{% + \lccode\string"2019=\string"2019 +} + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-galician.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-galician.ldf new file mode 100644 index 00000000000..76459f275cd --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-galician.ldf @@ -0,0 +1,39 @@ +\ProvidesFile{gloss-galician.ldf}[polyglossia: module for galician] +\PolyglossiaSetup{galician}{ + hyphennames={galician}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=true, +} + +\def\captionsgalician{% + \def\refname{Referencias}% + \def\abstractname{Resumo}% + \def\bibname{Bibliografía}% + \def\prefacename{Prefacio}% + \def\chaptername{Capítulo}% + \def\appendixname{Apéndice}% + \def\contentsname{Índice Xeral}% + \def\listfigurename{Índice de Figuras}% + \def\listtablename{Índice de Táboas}% + \def\indexname{Índice de Materias}% + \def\figurename{Figura}% + \def\tablename{Táboa}% + %\def\thepart{}% + \def\partname{Parte}% + \def\pagename{Páxina}% + \def\seename{véxase}% + \def\alsoname{véxase tamén}% + \def\enclname{Adxunto}% + \def\ccname{Copia a}% + \def\headtoname{A}% + \def\proofname{Demostración}% + \def\glossaryname{Glosario}% + } +\def\dategalician{% + \def\today{\number\day~de\space\ifcase\month\or + xaneiro\or febreiro\or marzo\or abril\or maio\or xuño\or + xullo\or agosto\or setembro\or outubro\or novembro\or decembro\fi + \space de~\number\year}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-german.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-german.ldf new file mode 100644 index 00000000000..b9a79ee33b2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-german.ldf @@ -0,0 +1,176 @@ +\ProvidesFile{gloss-german.ldf}[polyglossia: module for german] +\PolyglossiaSetup{german}{ + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\tmp@old{old} +\def\tmp@oldyr{1901} +\newif\if@german@oldspelling +\@german@oldspellingfalse +\define@key{german}{spelling}[new]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@oldyr\def\@tmpa{old}\fi + \ifx\@tmpa\tmp@old + \ifx\l@german\@undefined + \xpg@nopatterns{german}% + \adddialect\l@german\l@nohyphenation + \fi + \@german@oldspellingtrue + \else %try ngerman + \ifx\l@ngerman\@undefined + \ifx\l@german\@undefined + \xpg@nopatterns{ngerman}% + \adddialect\l@ngerman\l@nohyphenation + \else + \xpg@warning{You asked for `ngerman' but only `german' hyphenation is available!}% + \@german@oldspellingtrue + \fi + \else %we use ngerman + \@german@oldspellingfalse + \fi + \fi +} + +\newif\if@german@fraktur +\def\tmp@fraktur{fraktur} +\define@key{german}{script}[latin]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@fraktur\@german@frakturtrue\else + \@german@frakturfalse% + \fi} + +\define@boolkey{german}[german@]{latesthyphen}[false]{} + +\define@boolkey{german}[german@]{babelshorthands}[true]{} + +\setkeys{german}{spelling,latesthyphen,script} + +\ifsystem@babelshorthands + \setkeys{german}{babelshorthands=true} +\else + \setkeys{german}{babelshorthands=false} +\fi + +\ifcsundef{initiate@active@char}{% +\input{babelsh.def}% +\initiate@active@char{"}% +}{} + +\def\german@shorthands{% + \bbl@activate{"}% + \def\language@group{german}% + \declare@shorthand{german}{"`}{„}% + \declare@shorthand{german}{"'}{“}% + \declare@shorthand{german}{"<}{«}% + \declare@shorthand{german}{">}{»}% + \declare@shorthand{german}{"c}{\textormath{\bbl@disc@german ck}{c}}% + \declare@shorthand{german}{"C}{\textormath{\bbl@disc@german CK}{C}}% + \declare@shorthand{german}{"F}{\textormath{\bbl@disc@german F{FF}}{F}}% + \declare@shorthand{german}{"l}{\textormath{\bbl@disc@german l{ll}}{l}}% + \declare@shorthand{german}{"L}{\textormath{\bbl@disc@german L{LL}}{L}}% + \declare@shorthand{german}{"m}{\textormath{\bbl@disc@german m{mm}}{m}}% + \declare@shorthand{german}{"M}{\textormath{\bbl@disc@german M{MM}}{M}}% + \declare@shorthand{german}{"n}{\textormath{\bbl@disc@german n{nn}}{n}}% + \declare@shorthand{german}{"N}{\textormath{\bbl@disc@german N{NN}}{N}}% + \declare@shorthand{german}{"p}{\textormath{\bbl@disc@german p{pp}}{p}}% + \declare@shorthand{german}{"P}{\textormath{\bbl@disc@german P{PP}}{P}}% + \declare@shorthand{german}{"r}{\textormath{\bbl@disc@german r{rr}}{r}}% + \declare@shorthand{german}{"R}{\textormath{\bbl@disc@german R{RR}}{R}}% + \declare@shorthand{german}{"t}{\textormath{\bbl@disc@german t{tt}}{t}}% + \declare@shorthand{german}{"T}{\textormath{\bbl@disc@german T{TT}}{T}}% + \declare@shorthand{german}{"f}{\textormath{\bbl@discff}{f}}% + \def\bbl@discff{\penalty\@M + \afterassignment\bbl@insertff \let\bbl@nextff= }% + \def\bbl@insertff{% + \if f\bbl@nextff + \expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi + {\relax\discretionary{ff-}{f}{ff}\allowhyphens}{f\bbl@nextff}}% + \let\bbl@nextff=f% + \declare@shorthand{german}{"-}{\nobreak\-\nobreak\hskip\z@skip}% + \declare@shorthand{german}{"|}{\textormath{\penalty\@M\discretionary{-}{}{\kern.03em}}{}}% + \declare@shorthand{german}{""}{\hskip\z@skip}% + \declare@shorthand{german}{"~}{\textormath{\leavevmode\hbox{-}}{-}}% + \declare@shorthand{german}{"=}{\penalty\@M-\hskip\z@skip}% + \def\ck{\allowhyphens\discretionary{k-}{k}{ck}\allowhyphens}% +} + +\def\nogerman@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% +} + +\def\captions@german{% + \def\prefacename{Vorwort}% + \def\refname{Literatur}% + \def\abstractname{Zusammenfassung}% + \def\bibname{Literaturverzeichnis}% + \def\chaptername{Kapitel}% + \def\appendixname{Anhang}% + \def\contentsname{Inhaltsverzeichnis}% + \def\listfigurename{Abbildungsverzeichnis}% + \def\listtablename{Tabellenverzeichnis}% + \def\indexname{Index}% + \def\figurename{Abbildung}% + \def\tablename{Tabelle}% + \def\partname{Teil}% + \def\enclname{Anlage(n)}% + \def\ccname{Verteiler}% + \def\headtoname{An}% + \def\pagename{Seite}% + \def\seename{siehe}% + \def\alsoname{siehe auch}% + \def\proofname{Beweis}% + \def\glossaryname{Glossar}% +} +\def\date@german{% + \def\today{\number\day.% + \space \ifcase\month%TODO add option for Austrian forms (Jänner etc) + \or Januar\or Februar\or März\or April\or Mai\or Juni\or% + Juli\or August\or September\or Oktober\or November\or% + Dezember\fi + \space \number\year}% +} + +%%Strings for Fraktur contributed by Gerrit +\def\captions@german@fraktur{% + \captions@german% + \def\abstractname{Zuſammenfaſſung}% + \def\seename{ſiehe}% + \def\alsoname{ſiehe auch}% + \def\glossaryname{Gloſſar}% +} + +\def\date@german@fraktur{% + \def\today{\number\day.% + \space \ifcase\month%TODO add option for Austrian forms (Jänner etc) + \or Januar\or Februar\or März\or April\or Mai\or Juni\or% + Juli\or Auguſt\or September\or Oktober\or November\or% + Dezember\fi + \space \number\year}% +} + +\def\captionsgerman{% + \if@german@fraktur\captions@german@fraktur\else\captions@german\fi +} + +\def\dategerman{% + \if@german@fraktur\date@german@fraktur\else\date@german\fi +} + +\def\german@language{\language=% + \csname l@\if@german@oldspelling\else n\fi german\ifgerman@latesthyphen -x-latest\fi\endcsname} + +\def\noextras@german{% + \nogerman@shorthands% +} + +\def\blockextras@german{% + \ifgerman@babelshorthands\german@shorthands\fi +} + +\def\inlineextras@german{% + \ifgerman@babelshorthands\german@shorthands\fi +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-greek-new.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-greek-new.ldf new file mode 100644 index 00000000000..1b8864cd214 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-greek-new.ldf @@ -0,0 +1,410 @@ +\ProvidesFile{gloss-greek.ldf}[polyglossia: module for greek] +\PolyglossiaSetup{greek}{ + script=Greek, + scripttag=grek, + frenchspacing=true, + indentfirst=true, + fontsetup=true, + %TODO localalph={greek@alph,greek@Alph} +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% The code in this file was initially adapted from the antomega +%% module for greek. Currently large parts of it derive from the +%% package xgreek.sty (c) Apostolos Syropoulos +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% this file imported from xgreek fixes the \lccode and \uccode of Greek letters: +\input{xgreek-fixes.def} + +%TODO: set these in \define@key instead: +\ifx\l@greek\@undefined + \ifx\l@polygreek\@undefined + \xpg@nopatterns{Greek}% + \adddialect\l@greek\l@nohyphenation + \else + \let\l@greek\l@polygreek + \fi +\fi +\ifx\l@monogreek\@undefined + \xpg@warning{No hyphenation patterns were loaded for Monotonic Greek\MessageBreak + I will use the patterns loaded for \string\l@greek instead} + \adddialect\l@monogreek\l@greek +\fi +\ifx\l@ancientgreek\@undefined + \xpg@warning{No hyphenation patterns were loaded for Ancient Greek\MessageBreak + I will use the patterns loaded for \string\l@greek instead} + \adddialect\l@ancientgreek\l@greek +\fi + +%set monotonic as default +\def\greek@variant{\l@monogreek}% monotonic +\def\captionsgreek{\monogreekcaptions}% +\def\dategreek{\datemonogreek}% + +\def\tmp@mono{mono} +\def\tmp@monotonic{monotonic} +\def\tmp@poly{poly} +\def\tmp@polytonic{polytonic} +\def\tmp@ancient{ancient} +\def\tmp@ancientgreek{ancientgreek} + +\define@key{greek}{variant}[monotonic]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@poly\def\@tmpa{polytonic}\fi + \ifx\@tmpa\tmp@ancientgreek\def\@tmpa{ancient}\fi + \ifx\@tmpa\tmp@polytonic% + \def\greek@variant{\l@polygreek}% + \def\captionsgreek{\polygreekcaptions}% + \def\dategreek{\datepolygreek}% + \xpg@info{Option: Polytonic Greek}% + \else + \ifx\@tmpa\tmp@ancient + \def\greek@variant{\l@ancientgreek}% + \def\captionsgreek{\ancientgreekcaptions}% + \def\dategreek{\dateancientgreek}% + \xpg@info{Option: Ancient Greek}% + \else %monotonic + \def\greek@variant{\l@monogreek}% monotonic + \def\captionsgreek{\monogreekcaptions}% + \def\dategreek{\datemonogreek}% + \xpg@info{Option: Monotonic Greek}% + \fi + \fi} + +\def\greek@language{\language=\greek@variant} + +\newif\if@greek@numerals +\define@key{greek}{numerals}[greek]{% +\ifstrequal{#1}{arabic}{\@greek@numeralsfalse}{\@greek@numeralstrue}} + +\define@boolkey{greek}{attic}[true]{\xpg@warning{Greek option `attic' is no longer required.}} + +% This sets the defaults +\setkeys{greek}{numerals} + +\def\monogreekcaptions{% + \def\refname{Αναφορές}% + \def\abstractname{Περίληψη}% + \def\bibname{Βιβλιογραφία}% + \def\prefacename{Πρόλογος}% + \def\chaptername{Κεφάλαιο}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Ευρετήριο}% + \def\figurename{Σχήμα}% + \def\tablename{Πίνακας}% + \def\partname{Μέρος}% + \def\pagename{Σελίδα}% + \def\seename{βλέπε}% + \def\alsoname{βλέπε επίσης}% + \def\enclname{Συνημμένα}% + \def\ccname{Κοινοποίηση}% + \def\headtoname{Προς}% + \def\proofname{Απόδειξη}% + \def\glossaryname{Γλωσσάρι}}% + +\def\datemonogreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ιανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Απριλίου\or + Μαΐου\or + Ιουνίου\or + Ιουλίου\or + Αυγούστου\or + Σεπτεμβρίου\or + Οκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}}% + +\def\polygreekcaptions{% + \def\refname{Ἀναφορές}% + \def\abstractname{Περίληψη}% + \def\bibname{Βιβλιογραφία}% + \def\prefacename{Πρόλογος}% + \def\chaptername{Κεφάλαιο}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Εὑρετήριο}% + \def\figurename{Σχῆμα}% + \def\tablename{Πίνακας}% + \def\partname{Μέρος}% + \def\pagename{Σελίδα}% + \def\seename{βλέπε}% + \def\alsoname{βλέπε ἐπίσης}% + \def\enclname{Συνημμένα}% + \def\ccname{Κοινοποίηση}% + \def\headtoname{Πρὸς}% + \def\proofname{Ἀπόδειξη}}% + +\def\datepolygreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ἰανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Ἀπριλίου\or + Μαΐου\or + Ἰουνίου\or + Ἰουλίου\or + Αὐγούστου\or + Σεπτεμβρίου\or + Ὀκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}}% + +% this is copied verbatim from xgreek.sty: +\def\ancientgreekcaptions{% + \def\prefacename{Προοίμιον}% + \def\refname{Αναφοραί}% + \def\abstractname{Περίληψις}% + \def\bibname{Βιβλιογραφία}% + \def\chaptername{Κεφάλαιον}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Εὑρετήριον}% + \def\figurename{Σχήμα}% + \def\tablename{Πίναξ}% + \def\partname{Μέρος}% + \def\enclname{Συνημμένως}% + \def\ccname{Κοινοποίησις}% + \def\headtoname{Πρὸς}% + \def\pagename{Σελὶς}% + \def\seename{ὃρα}% + \def\alsoname{ὃρα ὡσαύτως}% + \def\proofname{Ἀπόδειξις}% + \def\glossaryname{Γλωσσάριον}% + \def\refname{Ἀναφοραὶ}% + \def\indexname{Εὑρετήριο}% + \def\figurename{Σχῆμα}% + \def\headtoname{Πρὸς}}% + +\def\dateancientgreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ἰανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Ἀπριλίου\or + Μαΐου\or + Ἰουνίου\or + Ἰουλίου\or + Αὐγούστου\or + Σεπτεμβρίου\or + Ὀκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}} + +% the code for alphabetic numbers and attic numerals +% is not copied verbatim from xgreek.sty any more +% it has been proposed by eg9 on issue 36 of the repository +% see https://github.com/reutenauer/polyglossia/issues/36 +\newrobustcmd\anw@print{} +\newrobustcmd\anw@false{% +\renewrobustcmd\anw@print{}} +\newrobustcmd\anw@true{% +\renewrobustcmd\anw@print{ʹ}} +\anw@true + +\protected\def\greeknumber#1{\expandafter\@greeknumber\expandafter{\number#1}} + +\def\@greeknumber#1{% +\ifnum#1<\@ne\space\gr@ill@value{#1}% +\else % +\ifnum#1<10 \gr@num@i#1% +\else % +\ifnum#1<100 \gr@num@ii#1% +\else % +\ifnum#1<\@m \gr@num@iii#1% +\else % +\ifnum#1<\@M \gr@num@iv#1% +\else % +\ifnum#1<100000 \gr@num@v#1% +\else % +\ifnum#1<1000000 \gr@num@vi#1% +\else % +\space\gr@ill@value{#1}% +\fi % +\fi % +\fi % +\fi % +\fi % +\fi % +\fi % +} + +\protected\def\Greeknumber#1{\expandafter\@Greeknumber\expandafter{\number#1}} +\def\@Greeknumber#1{% +\ifnum#1<\@ne\space\gr@ill@value{#1}% +\else % +\ifnum#1<10 \gr@Num@i#1% +\else % +\ifnum#1<100 \gr@Num@ii#1% +\else % +\ifnum#1<\@m\gr@Num@iii#1% +\else % +\ifnum#1<\@M\gr@Num@iv#1% +\else % +\ifnum#1<100000 \gr@Num@v#1% +\else % +\ifnum#1<1000000 \gr@Num@vi#1% +\else % +\space\gr@ill@value{#1}% +\fi % +\fi % +\fi % +\fi % +\fi % +\fi % +\fi % +} + +\let\greeknumeral=\greeknumber +\let\Greeknumeral=\Greeknumber + +\def\gr@num@i#1{% +\ifcase#1 \or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi % +\ifnum#1=\z@\else\anw@true\fi\anw@print} + +\def\gr@num@ii#1{% +\ifcase#1 \or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi % +\ifnum#1=\z@\else\anw@true\fi\gr@num@i} + +\def\gr@num@iii#1{% +\ifcase#1 \or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi % +\ifnum#1=\z@\anw@false\else\anw@true\fi\gr@num@ii} + +\def\gr@num@iv#1{% +\ifnum#1=\z@\else ͵\fi % +\ifcase#1 \or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi % +\gr@num@iii} + +\def\gr@num@v#1{% +\ifnum#1=\z@\else ͵\fi % +\ifcase#1 \or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi % +\gr@num@iv} + +\def\gr@num@vi#1{% +͵\ifcase#1 \or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi % +\gr@num@v}% + +\def\gr@Num@i#1{% +\ifcase#1 \or Α\or Β\or Γ\or Δ\or Ε\or \MakeUppercase{Ϛ}\or Ζ\or Η\or θ\fi % +\ifnum#1=\z@\else\anw@true\fi\anw@print} + +\def\gr@Num@ii#1{% +\ifcase#1 \or Ι\or Κ\or Λ\or Μ\or Ν\or Ξ\or Ο\or Π\or \MakeUppercase{ϟ}\fi % +\ifnum#1=\z@\else\anw@true\fi\gr@Num@i} + +\def\gr@Num@iii#1{% +\ifcase#1 \or Ρ\or Σ\or Τ\or Υ\or Φ\or Χ\or Ψ\or Ω\or \MakeUppercase{ϡ}\fi % +\ifnum#1=\z@\anw@false\else\anw@true\fi\gr@Num@ii} + +\def\gr@Num@iv#1{% +\ifnum#1=\z@\else ͵\fi % +\ifcase#1 \or Α\or Β\or Γ\or Δ\or Ε\or \MakeUppercase{Ϛ}\or Ζ\or Η\or θ\fi % +\gr@Num@iii} + +\def\gr@Num@v#1{% +\ifnum#1=\z@\else ͵\fi % +\ifcase#1 \or Ι\or Κ\or Λ\or Μ\or Ν\or Ξ\or Ο\or Π\or \MakeUppercase{ϟ}\fi % +\gr@Num@iv} + +\def\gr@Num@vi#1{% +͵ \ifcase#1 \or Ρ\or Σ\or Τ\or Υ\or Φ\or Χ\or Ψ\or Ω\or \MakeUppercase{ϡ}\fi % +\gr@Num@v} + +\def\gr@ill@value#1{\xpg@warning{Illegal value (#1) for Greek numeral}[$#1$]} + +%%%% Attic numerals (no longer optional) +\newcount\@attic@num +\DeclareRobustCommand*{\@@atticnum}[1]{% + \@attic@num#1\relax + \ifnum\@attic@num<\@ne% + \space% + \xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% + \else\ifnum\@attic@num>249999% + \space% + \xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% + \else + \@whilenum\@attic@num>49999\do{% + \char"10147\advance\@attic@num-50000}% + \@whilenum\@attic@num>9999\do{% + M\advance\@attic@num-\@M}% + \ifnum\@attic@num>4999% + \char"10146\advance\@attic@num-5000% + \fi\relax + \@whilenum\@attic@num>999\do{% + Χ\advance\@attic@num-\@m}% + \ifnum\@attic@num>499% + \char"10145\advance\@attic@num-500% + \fi\relax + \@whilenum\@attic@num>99\do{% + Η\advance\@attic@num-100}% + \ifnum\@attic@num>49% + \char"10144\advance\@attic@num-50% + \fi\relax + \@whilenum\@attic@num>9\do{% + Δ\advance\@attic@num by-10}% + \@whilenum\@attic@num>4\do{% + Π\advance\@attic@num-5}% + \ifcase\@attic@num\or Ι\or ΙΙ\or ΙΙΙ\or ΙΙΙΙ\fi% + \fi\fi} +\def\@atticnum#1{% + \expandafter\@@atticnum\expandafter{\the#1}} +\def\atticnumeral#1{% + \@attic@num#1\relax + \@atticnum{\@attic@num}} +\let\atticnum=\atticnumeral + +\def\greek@numbers{% + \let\latin@alph\@alph% + \let\latin@Alph\@Alph% + \if@greek@numerals + \def\greek@alph##1{\protect\greeknumber{##1}}% + \def\greek@Alph##1{\protect\Greeknumber{##1}}% + \let\@alph\greek@alph% + \let\@Alph\greek@Alph% + \fi} + +\def\nogreek@numbers{% + \let\@alph\latin@alph% + \let\@Alph\latin@Alph% + \let\greek@alph\@undefined% + \let\greek@Alph\@undefined% + } + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-greek.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-greek.ldf new file mode 100644 index 00000000000..229688ef5bc --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-greek.ldf @@ -0,0 +1,346 @@ +\ProvidesFile{gloss-greek.ldf}[polyglossia: module for greek] +\PolyglossiaSetup{greek}{ + script=Greek, + scripttag=grek, + frenchspacing=true, + indentfirst=true, + fontsetup=true, + %TODO localalph={greek@alph,greek@Alph} +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% The code in this file was initially adapted from the antomega +%% module for greek. Currently large parts of it derive from the +%% package xgreek.sty (c) Apostolos Syropoulos +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% this file imported from xgreek fixes the \lccode and \uccode of Greek letters: +\input{xgreek-fixes.def} + +%TODO: set these in \define@key instead: +\ifx\l@greek\@undefined + \ifx\l@polygreek\@undefined + \xpg@nopatterns{Greek}% + \adddialect\l@greek\l@nohyphenation + \else + \let\l@greek\l@polygreek + \fi +\fi +\ifx\l@monogreek\@undefined + \xpg@warning{No hyphenation patterns were loaded for Monotonic Greek\MessageBreak + I will use the patterns loaded for \string\l@greek instead} + \adddialect\l@monogreek\l@greek +\fi +\ifx\l@ancientgreek\@undefined + \xpg@warning{No hyphenation patterns were loaded for Ancient Greek\MessageBreak + I will use the patterns loaded for \string\l@greek instead} + \adddialect\l@ancientgreek\l@greek +\fi + +%set monotonic as default +\def\greek@variant{\l@monogreek}% monotonic +\def\captionsgreek{\monogreekcaptions}% +\def\dategreek{\datemonogreek}% + +\def\tmp@mono{mono} +\def\tmp@monotonic{monotonic} +\def\tmp@poly{poly} +\def\tmp@polytonic{polytonic} +\def\tmp@ancient{ancient} +\def\tmp@ancientgreek{ancientgreek} + +\define@key{greek}{variant}[monotonic]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@poly\def\@tmpa{polytonic}\fi + \ifx\@tmpa\tmp@ancientgreek\def\@tmpa{ancient}\fi + \ifx\@tmpa\tmp@polytonic% + \def\greek@variant{\l@polygreek}% + \def\captionsgreek{\polygreekcaptions}% + \def\dategreek{\datepolygreek}% + \xpg@info{Option: Polytonic Greek}% + \else + \ifx\@tmpa\tmp@ancient + \def\greek@variant{\l@ancientgreek}% + \def\captionsgreek{\ancientgreekcaptions}% + \def\dategreek{\dateancientgreek}% + \xpg@info{Option: Ancient Greek}% + \else %monotonic + \def\greek@variant{\l@monogreek}% monotonic + \def\captionsgreek{\monogreekcaptions}% + \def\dategreek{\datemonogreek}% + \xpg@info{Option: Monotonic Greek}% + \fi + \fi} + +\def\greek@language{\language=\greek@variant} + +\newif\if@greek@numerals +\define@key{greek}{numerals}[greek]{% +\ifstrequal{#1}{arabic}{\@greek@numeralsfalse}{\@greek@numeralstrue}} + +\define@boolkey{greek}{attic}[true]{\xpg@warning{Greek option `attic' is no longer required.}} + +% This sets the defaults +\setkeys{greek}{numerals} + +\def\monogreekcaptions{% + \def\refname{Αναφορές}% + \def\abstractname{Περίληψη}% + \def\bibname{Βιβλιογραφία}% + \def\prefacename{Πρόλογος}% + \def\chaptername{Κεφάλαιο}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Ευρετήριο}% + \def\figurename{Σχήμα}% + \def\tablename{Πίνακας}% + \def\partname{Μέρος}% + \def\pagename{Σελίδα}% + \def\seename{βλέπε}% + \def\alsoname{βλέπε επίσης}% + \def\enclname{Συνημμένα}% + \def\ccname{Κοινοποίηση}% + \def\headtoname{Προς}% + \def\proofname{Απόδειξη}% + \def\glossaryname{Γλωσσάρι}}% + +\def\datemonogreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ιανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Απριλίου\or + Μαΐου\or + Ιουνίου\or + Ιουλίου\or + Αυγούστου\or + Σεπτεμβρίου\or + Οκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}}% + +\def\polygreekcaptions{% + \def\refname{Ἀναφορές}% + \def\abstractname{Περίληψη}% + \def\bibname{Βιβλιογραφία}% + \def\prefacename{Πρόλογος}% + \def\chaptername{Κεφάλαιο}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Εὑρετήριο}% + \def\figurename{Σχῆμα}% + \def\tablename{Πίνακας}% + \def\partname{Μέρος}% + \def\pagename{Σελίδα}% + \def\seename{βλέπε}% + \def\alsoname{βλέπε ἐπίσης}% + \def\enclname{Συνημμένα}% + \def\ccname{Κοινοποίηση}% + \def\headtoname{Πρὸς}% + \def\proofname{Ἀπόδειξη}}% + +\def\datepolygreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ἰανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Ἀπριλίου\or + Μαΐου\or + Ἰουνίου\or + Ἰουλίου\or + Αὐγούστου\or + Σεπτεμβρίου\or + Ὀκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}}% + +% this is copied verbatim from xgreek.sty: +\def\ancientgreekcaptions{% + \def\prefacename{Προοίμιον}% + \def\refname{Αναφοραί}% + \def\abstractname{Περίληψις}% + \def\bibname{Βιβλιογραφία}% + \def\chaptername{Κεφάλαιον}% + \def\appendixname{Παράρτημα}% + \def\contentsname{Περιεχόμενα}% + \def\listfigurename{Κατάλογος σχημάτων}% + \def\listtablename{Κατάλογος πινάκων}% + \def\indexname{Εὑρετήριον}% + \def\figurename{Σχήμα}% + \def\tablename{Πίναξ}% + \def\partname{Μέρος}% + \def\enclname{Συνημμένως}% + \def\ccname{Κοινοποίησις}% + \def\headtoname{Πρὸς}% + \def\pagename{Σελὶς}% + \def\seename{ὃρα}% + \def\alsoname{ὃρα ὡσαύτως}% + \def\proofname{Ἀπόδειξις}% + \def\glossaryname{Γλωσσάριον}% + \def\refname{Ἀναφοραὶ}% + \def\indexname{Εὑρετήριο}% + \def\figurename{Σχῆμα}% + \def\headtoname{Πρὸς}}% + +\def\dateancientgreek{% + \def\today{\number\day\space% + \greek@month% + \space\number\year}% + \def\greektoday{\greeknumber\day\space% + \greek@month% + \space\greeknumber\year}% + \def\Greektoday{\Greeknumber\day\space% + \greek@month% + \space\Greeknumber\year}% + \def\greek@month{\ifcase\month\or% + Ἰανουαρίου\or + Φεβρουαρίου\or + Μαρτίου\or + Ἀπριλίου\or + Μαΐου\or + Ἰουνίου\or + Ἰουλίου\or + Αὐγούστου\or + Σεπτεμβρίου\or + Ὀκτωβρίου\or + Νοεμβρίου\or + Δεκεμβρίου\fi}} + +% the code for alphabetic numbers and attic numerals +% is copied verbatim from xgreek.sty +\DeclareRobustCommand\anw@false{% + \DeclareRobustCommand\anw@print{}} +\DeclareRobustCommand\anw@true{% + \DeclareRobustCommand\anw@print{ʹ}} +\anw@true + +\def\greeknumber#1{% + \ifnum#1<\@ne\space\gr@ill@value{#1}% + \else + \ifnum#1<10\expandafter\gr@num@i\number#1% + \else + \ifnum#1<100\expandafter\gr@num@ii\number#1% + \else + \ifnum#1<\@m\expandafter\gr@num@iii\number#1% + \else + \ifnum#1<\@M\expandafter\gr@num@iv\number#1% + \else + \ifnum#1<100000\expandafter\gr@num@v\number#1% + \else + \ifnum#1<1000000\expandafter\gr@num@vi\number#1% + \else + \space\gr@ill@value{#1}% + \fi + \fi + \fi + \fi + \fi + \fi + \fi +} +\def\Greeknumber#1{% + \expandafter\MakeUppercase\expandafter{\greeknumber{#1}}} +\let\greeknumeral=\greeknumber +\let\Greeknumeral=\Greeknumber +\def\gr@num@i#1{% + \ifcase#1\or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi + \ifnum#1=\z@\else\anw@true\fi\anw@print} +\def\gr@num@ii#1{% + \ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi + \ifnum#1=\z@\else\anw@true\fi\gr@num@i} +\def\gr@num@iii#1{% + \ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi + \ifnum#1=\z@\anw@false\else\anw@true\fi\gr@num@ii} +\def\gr@num@iv#1{% + \ifnum#1=\z@\else ͵\fi + \ifcase#1\or α\or β\or γ\or δ\or ε\or Ϛ\or ζ\or η\or θ\fi + \gr@num@iii} +\def\gr@num@v#1{% + \ifnum#1=\z@\else ͵\fi + \ifcase#1\or ι\or κ\or λ\or μ\or ν\or ξ\or ο\or π\or ϟ\fi + \gr@num@iv} +\def\gr@num@vi#1{% + ͵\ifcase#1\or ρ\or σ\or τ\or υ\or φ\or χ\or ψ\or ω\or ϡ\fi + \gr@num@v} + +%%%% Attic numerals (no longer optional) +\newcount\@attic@num +\DeclareRobustCommand*{\@@atticnum}[1]{% + \@attic@num#1\relax + \ifnum\@attic@num<\@ne% + \space% + \xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% + \else\ifnum\@attic@num>249999% + \space% + \xpg@warning{Illegal value (\the\@attic@num) for acrophonic Attic numeral}% + \else + \@whilenum\@attic@num>49999\do{% + \char"10147\advance\@attic@num-50000}% + \@whilenum\@attic@num>9999\do{% + M\advance\@attic@num-\@M}% + \ifnum\@attic@num>4999% + \char"10146\advance\@attic@num-5000% + \fi\relax + \@whilenum\@attic@num>999\do{% + Χ\advance\@attic@num-\@m}% + \ifnum\@attic@num>499% + \char"10145\advance\@attic@num-500% + \fi\relax + \@whilenum\@attic@num>99\do{% + Η\advance\@attic@num-100}% + \ifnum\@attic@num>49% + \char"10144\advance\@attic@num-50% + \fi\relax + \@whilenum\@attic@num>9\do{% + Δ\advance\@attic@num by-10}% + \@whilenum\@attic@num>4\do{% + Π\advance\@attic@num-5}% + \ifcase\@attic@num\or Ι\or ΙΙ\or ΙΙΙ\or ΙΙΙΙ\fi% + \fi\fi} +\def\@atticnum#1{% + \expandafter\@@atticnum\expandafter{\the#1}} +\def\atticnumeral#1{% + \@attic@num#1\relax + \@atticnum{\@attic@num}} +\let\atticnum=\atticnumeral + +\def\greek@numbers{% + \let\latin@alph\@alph% + \let\latin@Alph\@Alph% + \if@greek@numerals + \def\greek@alph##1{\protect\greeknumber{##1}}% + \def\greek@Alph##1{\protect\Greeknumber{##1}}% + \let\@alph\greek@alph% + \let\@Alph\greek@Alph% + \fi} + +\def\nogreek@numbers{% + \let\@alph\latin@alph% + \let\@Alph\latin@Alph% + \let\greek@alph\@undefined% + \let\greek@Alph\@undefined% + } + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-hebrew.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-hebrew.ldf new file mode 100644 index 00000000000..5167833d833 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-hebrew.ldf @@ -0,0 +1,134 @@ +\ProvidesFile{gloss-hebrew.ldf}[polyglossia: module for hebrew] +\RequirePackage{bidi} +\RequirePackage{hebrewcal} + +\providebool{@hebrew@marcheshvan} + +\PolyglossiaSetup{hebrew}{ + script=Hebrew, + direction=RL, + scripttag=hebr, + hyphennames={nohyphenation}, + fontsetup=true, + %TODO localalph={hebrewnumeral,Hebrewnumeral} + %digits = hebrewnumber +} + +\newif\if@calendar@hebrew +\def\tmp@hebrew{hebrew} +\define@key{hebrew}{calendar}[gregorian]{% + \message{Setting \string\if@calendar@hebrew} + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@hebrew% + \@calendar@hebrewtrue% + \else% + \@calendar@hebrewfalse% + \fi} + +\define@boolkey{hebrew}[@xpg@hebrew@]{marcheshvan}[false]{% + \def\@tmpa{#1}% + \def\@tmptrue{true}% + \ifx\@tmpa\@tmptrue + \@xpg@hebrew@marcheshvantrue + \else + \@xpg@hebrew@marcheshvanfalse + \fi} + +\setkeys{hebrew}{marcheshvan} + +% hebrewcal.sty also defines the boolean key fullyear (default=false) + +\newif\if@hebrew@numerals +\def\tmp@hebrew{hebrew} +\define@key{hebrew}{numerals}[arabic]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@hebrew% + \@hebrew@numeralstrue% + \else% + \@hebrew@numeralsfalse% + \fi} + +\setkeys{hebrew}{numerals} + +\def\captionshebrew{% + \def\prefacename{מבוא}% + \def\refname{מקורות}% + \def\abstractname{תקציר}% + \def\bibname{ביבליוגרפיה}% + \def\chaptername{פרק}% + \def\appendixname{נספח}% + \def\contentsname{תוכן העניינים}% + \def\listfigurename{רשימת האיורים}% + \def\listtablename{רשימת הטבלאות}% + \def\indexname{מפתח}% + \def\figurename{איור}% + \def\tablename{טבלה}% + \def\partname{חלק}% + \def\enclname{רצ"ב}% + \def\ccname{העתקים}% + \def\headtoname{אל}% + \def\pagename{עמוד}% + \def\psname{נ.ב.}% + \def\seename{ראה}% + \def\alsoname{ראה גם}% check + \def\proofname{הוכחה} + \def\glossaryname{מילון מונחים}% check +} +\def\datehebrew{% + \def\today{% + \if@calendar@hebrew% + \hebrewtoday% + \else% + \hebrewnumber\day% + \space ב\hebrewgregmonth{\month}\space% + \hebrewnumber\year% + \fi}% +} + +\def\hebrewgregmonth#1{\ifcase#1% + \or ינואר% יאנואר + \or פברואר\or מרץ% מרס / מארס + \or אפריל\or מאי% מי + \or יוני\or יולי\or אוגוסט %אבגוסט + \or ספטמבר\or אוקטובר\or נובמבר\or דצמבר\fi} + +\input{babel-hebrewalph.def} + +\def\hebrewnumber#1{% + \if@hebrew@numerals + \protect\hebrewnumeral{#1}% + \else + \number#1% + \fi +} + +\def\hebrew@numbers{% + \let\@origalph\@alph% + \let\@origAlph\@Alph% + \let\@alph\hebrewnumeral% + \let\@Alph\Hebrewnumeral% +} +\def\nohebrew@numbers{% + \let\@alph\@origalph% + \let\@Alph\@origAlph% +} + +\def\hebrew@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\hebrewnumber% + \renewcommand\thefootnote{\protect\hebrewnumber{\c@footnote}}% +} +\def\nohebrew@globalnumbers{% + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% +} + +\def\blockextras@hebrew{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } +\def\noextras@hebrew{% + \let\MakeUppercase\@@MakeUppercase% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-hindi.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-hindi.ldf new file mode 100644 index 00000000000..6223a494987 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-hindi.ldf @@ -0,0 +1,98 @@ +% UTF-8 strings kindly provided by Zdenek Wagner, 10-03-2008 +% TODO: add option for velthuis transliteration with link to +% Velthuis Devanagari project: http://devnag.sarovar.org. + +\ProvidesFile{gloss-hindi.ldf}[polyglossia: module for hindi] +\RequirePackage{devanagaridigits} +\PolyglossiaSetup{hindi}{ + script=Devanagari, + scripttag=deva, + langtag=HIN, +%% hyphennames={hindi,!sanskrit}, TODO: implement fallback patterns (with ! prefix) + fontsetup=true + %TODO nouppercase=true, + %TODO localnumber=hindinumber +} + +\ifx\l@hindi\@undefined% + \ifx\l@sanskrit\@undefined% + \xpg@nopatterns{Hindi}% + \adddialect\l@hindi\l@nohyphenation% + \else + \xpg@warning{No hyphenation patterns were loaded for Hindi\MessageBreak + I will use the patterns for Sanskrit instead} + \adddialect\l@hindi\l@sanskrit% + \fi +\fi + +\def\hindi@language{\language=\l@hindi} + +\def\tmp@western{Western} +\newif\ifhindi@devanagari@numerals +\hindi@devanagari@numeralstrue + +\define@key{hindi}{numerals}[Devanagari]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western + \hindi@devanagari@numeralsfalse + \fi} + +\def\hindinumber#1{% + \ifhindi@devanagari@numerals + \devanagaridigits{\number#1}% + \else + \number#1% + \fi} + +\def\captionshindi{% + \def\abstractname{सारांश}% + \def\appendixname{परिशिष्ट}% + \def\bibname{संदर ग्रन्थ}% (?) + \def\ccname{}% + \def\chaptername{अध्याय}% + \def\contentsname{विषय सूची}% + \def\enclname{}% + \def\figurename{चित्र}% रेखाचित्र + \def\headpagename{पृषठ}% + \def\headtoname{}% + \def\indexname{सूची}% + % सूचक + % अनुक्रमणिका + % अनुक्रमणि + \def\listfigurename{चित्रों की सूची}% + \def\listtablename{तालिकाओं की सूची}% + \def\pagename{पृषठ}% + \def\partname{खणड}% + \def\prefacename{प्रस्तावना}% प्राक्कथन + \def\refname{हवाले}% + \def\tablename{तालिका}% + \def\seename{देखिए}% + \def\alsoname{और देखिए}% + \def\alsoseename{और देखिए}% +} +\def\datehindi{% + \def\today{\hindinumber\day\space\ifcase\month\or + जनवरी\or + फ़रवरी\or + मार्च\or + अपरैल\or + मई\or + जून\or + जलाई\or + अगस्त\or + सितम्बर\or + अक्तूबर\or + नवम्बर\or + दिसम्बर\fi + \space\hindinumber\year}% +} + +\def\blockextras@hindi{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% +} +\def\noextras@hindi{% + \let\MakeUppercase\@@MakeUppercase% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-icelandic.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-icelandic.ldf new file mode 100644 index 00000000000..2678b4f6129 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-icelandic.ldf @@ -0,0 +1,84 @@ +\ProvidesFile{gloss-icelandic.ldf}[polyglossia: module for icelandic] +\PolyglossiaSetup{icelandic}{ + hyphennames={icelandic}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsicelandic{% + \def\refname{Heimildir}% + \def\abstractname{Útdráttur}% + \def\bibname{Heimildir}% + \def\prefacename{Formáli}% + \def\chaptername{Kafli}% + \def\appendixname{Viðauki}% + \def\contentsname{Efnisyfirlit}% + \def\listfigurename{Myndaskrá}% + \def\listtablename{Töfluskrá}% + \def\indexname{Atriðisorðaskrá}% + \def\figurename{Mynd}% + \def\tablename{Tafla}% + %\def\thepart{}% + \def\partname{Hluti}% + \def\pagename{Blaðsíða}% + \def\seename{Sjá}% + \def\alsoname{Sjá einnig}% + \def\enclname{Hjálagt}% + \def\ccname{Samrit}% + \def\headtoname{Til:}% + \def\proofname{Sönnun}% + \def\glossaryname{Orðalisti}% + } + +\def\dateicelandic{% + \def\today{\number\day.~\ifcase\month\or + janúar\or febrúar\or mars\or apríl\or maí\or + júní\or júlí\or ágúst\or september\or + október\or nóvember\or desember\fi + \space\number\year}% + } + +\endinput + + +%%TODO: implement this as a separate module ? +%\mathchardef\m@comma="013B +%\def\@comma@{\ifmmode\m@comma\else,\fi} +%\def\f@thousandsep{\ifmmode\mskip5.5mu\else\penalty\@M\kern.3em\fi} +%\newcommand{\decimalsep}{.} \newcommand{\thousandsep}{\@comma@} +% +%\newcommand{\tala}[2][\decimalsep]{% +% \def\@decimalsep{#1}\@tala#2\@empty,\@empty,\@nil} +%\def\@tala#1,#2,#3\@nil{% +% \ifx\@empty#2% +% \@integerpart{#1}% +% \else +% \@integerpart{#1}\@decimalsep\@decimalpart{#2}% +% \fi} +%\def\@decimalpart#1{\@@decimalpart#1\@empty\@empty\@empty} +%\def\@@decimalpart#1#2#3#4{#1#2#3% +% \ifx\@empty#4% +% \else +% \thousandsep\expandafter\@@decimalpart\expandafter#4% +% \fi} +%\def\@integerpart#1{\@@integerpart{}#1\@empty\@empty\@empty} +%\def\@@integerpart#1#2#3#4{% +% \ifx\@empty#2% +% \@addthousandsep#1\relax +% \else +% \ifx\@empty#3% +% \@addthousandsep\@empty\@empty#1#2\relax +% \else +% \ifx\@empty#4% +% \@addthousandsep\@empty#1#2#3\relax +% \else +% \@@integerpartafterfi{#1#2#3#4}% +% \fi +% \fi +% \fi} +%\def\@@integerpartafterfi#1\fi\fi\fi{\fi\fi\fi\@@integerpart{#1}} +%\def\@addthousandsep#1#2#3#4{#1#2#3% +% \if#4\relax +% \else +% \thousandsep\expandafter\@addthousandsep\expandafter#4% +% \fi} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-interlingua.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-interlingua.ldf new file mode 100644 index 00000000000..9e4ca395d6a --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-interlingua.ldf @@ -0,0 +1,41 @@ +\ProvidesFile{gloss-interlingua.ldf}[polyglossia: module for interlingua] +\PolyglossiaSetup{interlingua}{ + hyphennames={interlingua}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\def\captionsinterlingua{% + \def\refname{Referentias}% + \def\abstractname{Summario}% + \def\bibname{Bibliographia}% + \def\prefacename{Prefacio}% + \def\chaptername{Capitulo}% + \def\appendixname{Appendice}% + \def\contentsname{Contento}% + \def\listfigurename{Lista de figuras}% + \def\listtablename{Lista de tabellas}% + \def\indexname{Indice}% + \def\figurename{Figura}% + \def\tablename{Tabella}% + \def\partname{Parte}% + %\def\thepart{}% + \def\pagename{Pagina}% + \def\seename{vide}% + \def\alsoname{vide etiam}% + \def\enclname{Incluso}% + \def\ccname{Copia}% + \def\headtoname{A}% + \def\proofname{Prova}% + \def\glossaryname{Glossario}% + } +\def\dateinterlingua{% + \def\today{le~\number\day\space de \ifcase\month\or + januario\or februario\or martio\or april\or maio\or junio\or + julio\or augusto\or septembre\or octobre\or novembre\or + decembre\fi + \space \number\year}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-irish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-irish.ldf new file mode 100644 index 00000000000..23b0b567c30 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-irish.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-irish.ldf}[polyglossia: module for irish] +\PolyglossiaSetup{irish}{ + hyphennames={irish}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsirish{% + \def\refname{Tagairtí}% + \def\abstractname{Achoimre}% + \def\bibname{Leabharliosta}% + \def\prefacename{Réamhrá}% <-- also "Brollach" + \def\refname{Tagairtí}% + \def\chaptername{Tagairtí}% + \def\appendixname{Aguisín}% + \def\contentsname{Clár Ábhair}% + \def\listfigurename{Léaráidí}% + \def\listtablename{Táblaí}% + \def\indexname{Innéacs}% + \def\figurename{Léaráid}% + \def\tablename{Tábla}% + %\def\thepart{}% + \def\partname{Cuid}% + \def\pagename{Leathanach}% + \def\seename{féach}% + \def\alsoname{féach freisin}% + \def\enclname{faoi iamh}% + \def\ccname{cc}% + \def\headtoname{Go}% + \def\proofname{Cruthúnas}% + \def\glossaryname{Glossary}% + } +\def\dateirish{% + \def\today{% + \number\day\space \ifcase\month\or + Eanáir\or Feabhra\or Márta\or Aibreán\or + Bealtaine\or Meitheamh\or Iúil\or Lúnasa\or + Meán Fómhair\or Deireadh Fómhair\or + Mí na Samhna\or Mí na Nollag\fi + \space \number\year}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-italian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-italian.ldf new file mode 100644 index 00000000000..78e2d590488 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-italian.ldf @@ -0,0 +1,132 @@ +% !TEX encoding = UTF-8 Unicode +\ProvidesFile{gloss-italian.ldf}[polyglossia: module for italian] +\PolyglossiaSetup{italian}{ + hyphennames={italian}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + + +%%% CHANGES START %%% by Enrico Gregorio +\define@boolkey{italian}[italian@]{babelshorthands}[true]{} + +\ifsystem@babelshorthands + \setkeys{italian}{babelshorthands=true} +\else + \setkeys{italian}{babelshorthands=false} +\fi + +\ifcsundef{initiate@active@char}{% +\input{babelsh.def}% +\initiate@active@char{"}% +}{} + +\def\italian@shorthands{% + \bbl@activate{"}% + \def\language@group{italian}% + \declare@shorthand{italian}{"}{% + \relax\ifmmode + \def\xpgit@next{''}% + \else + \def\xpgit@next{\futurelet\xpgit@temp\xpgit@cwm}% + \fi + \xpgit@next}% +} + +%%% By Enrico Gregorio and Claudio Beccari %%% +\def\xpgit@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip} +\def\xpgit@cwm{\let\xpgit@@next\relax + \ifcat\noexpand\xpgit@temp a% + \def\xpgit@@next{\xpgit@@cwm}% + \else + \if\noexpand\xpgit@temp \string|% + \def\xpgit@@next##1{\xpgit@@cwm}% + \else + \if\noexpand\xpgit@temp \string<% + \def\xpgit@@next##1{«\ignorespaces}% + \else + \if\noexpand\xpgit@temp \string>% + \def\xpgit@@next##1{\unskip »}% + \else + \if\noexpand\xpgit@temp\string/% + \def\xpgit@@next##1{\slash}% + \else + \ifx\xpgit@temp"% + \def\xpgit@@next##1{?}% + \fi + \fi + \fi + \fi + \fi + \fi + \xpgit@@next} + +\def\noitalian@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% +} +%%% CHANGES END %%% + +%%% ORIGINAL %%% by Claudio Beccari +\def\captionsitalian{% + \def\prefacename{Prefazione}% + \def\refname{Riferimenti bibliografici}% + \def\abstractname{Sommario}% + \def\bibname{Bibliografia}% + \def\chaptername{Capitolo}% + \def\appendixname{Appendice}% + \def\contentsname{Indice}% + \def\listfigurename{Elenco delle figure}% + \def\listtablename{Elenco delle tabelle}% + \def\indexname{Indice analitico}% + \def\figurename{Figura}% + \def\tablename{Tabella}% + \def\partname{Parte}% + \def\enclname{Allegati}% + \def\ccname{e~p.~c.}% + \def\headtoname{Per}% + \def\pagename{Pag.}% % in Italian the abbreviation is preferred + \def\seename{vedi}% + \def\alsoname{vedi anche}% + \def\proofname{Dimostrazione}% + \def\glossaryname{Glossario}% + } +\def\dateitalian{% + \def\today{\number\day~\ifcase\month\or + gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or + luglio\or agosto\or settembre\or ottobre\or novembre\or + dicembre\fi\space \number\year}} +%%% ORIGINAL END %%% + +%%% CHANGES START %%% by Enrico Gregorio +\let\xpgit@savedvalues\empty +\AtEndPreamble{% the user or the class might define different values + \edef\xpgit@savedvalues{% + \clubpenalty=\the\clubpenalty\space + \@clubpenalty=\the\@clubpenalty\space + \widowpenalty=\the\widowpenalty\space + \finalhyphendemerits=\the\finalhyphendemerits} +} + + +\def\noextras@italian{% + \lccode\string"2019=\z@ + \noitalian@shorthands + \xpgit@savedvalues +} + +\def\blockextras@italian{% + \lccode\string"2019=\string"2019 + \clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000 + \finalhyphendemerits=50000000 + \ifitalian@babelshorthands\italian@shorthands\fi +} + +\def\inlineextras@italian{% + \lccode\string"2019=\string"2019 + \ifitalian@babelshorthands\italian@shorthands\fi +} +%%% CHANGES END %%% +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-kannada.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-kannada.ldf new file mode 100644 index 00000000000..cca3488e646 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-kannada.ldf @@ -0,0 +1,103 @@ +%% gloss-kannada.ldf +%% Copyright 2011 Aravinda VK , +%% Shankar Prasad , +%% Team Sanchaya +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Aravinda VK . +% +% This work consists of the file gloss-kannada.ldf +\ProvidesFile{gloss-kannada.ldf}[polyglossia: module for kannada] +\PolyglossiaSetup{kannada}{ + script=Kannada, + scripttag=knda, + langtag=KNDA, + hyphennames={kannada}, + hyphenmins={2,2}, + fontsetup=true +} + +%% Defining Kannada digits equivalents to english +\def\kannadadigits#1{\expandafter\@kannada@digits #1@} +\def\@kannada@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1೦\else\ifx1#1೧\else\ifx2#1೨\else\ifx3#1೩\else\ifx4#1೪\else\ifx5#1೫\else\ifx6#1೬\else\ifx7#1೭\else\ifx8#1೮\else\ifx9#1೯\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@kannada@digits + \fi +} + +%% \kannada@numerals variable will be set to true or false depending on the option provided in \setmainlanguage +%% \kannada@numerals true by default or when we set \setmainlanguage[numerals=Kannada]{kannada} +%% \kannada@numerals false when we set \setmainlanguage[numerals=Western]{kannada} +\def\tmp@western{Western} +\newif\ifkannada@numerals +\kannada@numeralstrue + +\define@key{kannada}{numerals}[Kannada]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western + \kannada@numeralsfalse + \fi} + + +\def\captionskannada{% + \def\prefacename{ಮುನ್ನುಡಿ}% + \def\refname{ಉಲ್ಲೇಖಗಳು}% + \def\abstractname{ಸಾರಾಂಶ}% + \def\bibname{ಗ್ರಂಥಸೂಚಿ}% + \def\chaptername{ಅಧ್ಯಾಯ}% + \def\appendixname{ಅನುಬಂಧ}% + \def\contentsname{ವಿಷಯಗಳು}% + \def\listfigurename{ಚಿತ್ರಗಳ ಪಟ್ಟಿ}% + \def\listtablename{ಕೋಷ್ಟಕಗಳ ಪಟ್ಟಿ}% + \def\indexname{ಸೂಚಿ}% + \def\figurename{ಚಿತ್ರ}% + \def\tablename{ಕೋಷ್ಟಕ}% + \def\partname{ಭಾಗ}% + \def\enclname{encl}% + \def\ccname{cc}% + \def\headtoname{ಗೆ}% + \def\pagename{ಪುಟ}% + \def\seename{ನೋಡು}% + \def\alsoname{ಇದನ್ನೂ ಸಹ ನೋಡು}% + \def\proofname{ಕರಡುಪ್ರತಿ}% +} + +\def\datekannada{% + \def\kannadamonth{% + \ifcase\month\or + ಜನವರಿ\or + ಫೆಬ್ರವರಿ\or + ಮಾರ್ಚ್\or + ಏಪ್ರಿಲ್\or + ಮೇ\or + ಜೂನ್\or + ಜುಲೈ\or + ಆಗಷ್ಟ್\or + ಸೆಪ್ಟೆಂಬರ್\or + ಅಕ್ಟೋಬರ್\or + ನವಂಬರ್\or + ಡಿಸಂಬರ್\fi}% + \def\today{\kannadanumber\day\space\kannadamonth\space\kannadanumber\year}% +} + +%% Based on the settings displays rrespective numbers +\def\kannadanumber#1{% + \ifkannada@numerals + \kannadadigits{\number#1}% + \else + \number#1% + \fi +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-lao.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-lao.ldf new file mode 100644 index 00000000000..16e58fc5fa2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-lao.ldf @@ -0,0 +1,90 @@ +\ProvidesFile{gloss-lao.ldf}[polyglossia: module for Lao] +\PolyglossiaSetup{lao}{ + script=Lao, + scripttag=lao, + hyphennames={lao}, + hyphenmins={1,1}, + fontsetup=true, + %TODO localalph={xxx@alph,xxx@Alph} + %TODO localdigits=laonumber +} + +\newif\if@lao@numerals +\def\tmp@lao{lao} +\define@key{lao}{numerals}[arabic]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@lao\@lao@numeralstrue\else + \@lao@numeralsfalse\fi +} + +\setkeys{lao}{numerals} + +% Translations provided by Brian Wilson +\def\captionslao{% + \def\prefacename{ຄໍານໍາ}% + \def\refname{ໜັງສືອ້າງອີງ}% + \def\abstractname{ບົດຫຍໍ້ຄວາມ}% + \def\bibname{ເອກະສານອ້າງອີງ}% + \def\chaptername{ບົດທີ}% + \def\appendixname{ພາກຄັດຕິດ}% + \def\contentsname{ສາລະບານ}% + \def\listfigurename{ສາລະບານຮູບ}% + \def\listtablename{ສາລະບານຕາຕະລາງ}% + \def\indexname{ດັດຊະນີ}% + \def\figurename{ຮູບທີ}% + \def\tablename{ຕາຕະລາງທີ}% + \def\partname{ພາກ}% + \def\pagename{ໜ້າ}% + \def\seename{ອ່ານ}% + \def\alsoname{ອ່ານເພີ່ມ}% + \def\enclname{ເອກະສານປະກອບ}% + \def\ccname{ສໍາເນົາເຖິງ}% + \def\headtoname{ຮຽນ}% + \def\proofname{ຂໍ້ພິສູດ}% + \def\glossaryname{ປະມວນສັບ}% +} +\def\datelao{% + \def\lao@month{% + \ifcase\month\or + ມັງກອນ\or + ກຸມພາ\or + ມີນາ\or + ເມສາ\or + ພຶດສະພາ\or + ມິຖຸນາ\or + ກໍລະກົດ\or + ສິງຫາ\or + ກັນຍາ\or + ຕຸລາ\or + ພະຈິກ\or + ທັນວາ\fi}% + \def\today{\laonumber\day \space \lao@month \space \laonumber\year}% +} + +\def\laodigits#1{\expandafter\@lao@digits #1@} +\def\@lao@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1໐\else\ifx1#1໑\else\ifx2#1໒\else\ifx3#1໓\else\ifx4#1໔\else\ifx5#1໕\else\ifx6#1໖\else\ifx7#1໗\else\ifx8#1໘\else\ifx9#1໙\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@lao@digits + \fi +} + +\def\laonumber#1{% + \if@lao@numerals + \laodigits{\number#1}% + \else + \number#1% + \fi} + +\def\lao@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\laonumber% + \renewcommand{\thefootnote}{\protect\laonumber{\c@footnote}}% +} +\def\nolao@globalnumbers{% + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf new file mode 100644 index 00000000000..66be7360066 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-latin.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-latin.ldf}[polyglossia: module for latin] +\PolyglossiaSetup{latin}{ + hyphennames={latin}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionslatin{% + \def\prefacename{Praefatio}% + \def\refname{Conspectus librorum}% + \def\abstractname{Summarium}% + \def\bibname{Conspectus librorum}% + \def\chaptername{Caput}% + \def\appendixname{Additamentum}% + \def\contentsname{Index}% + \def\listfigurename{Conspectus descriptionum}% + \def\listtablename{Conspectus tabularum}% + \def\indexname{Index rerum notabilium}% + \def\figurename{Descriptio}% + \def\tablename{Tabula}% + \def\partname{Pars}% + \def\enclname{Additur}% + \def\ccname{Exemplar}% + \def\headtoname{\ignorespaces}% + \def\pagename{pagina}% + \def\seename{cfr.}% + \def\alsoname{cfr.}% + \def\proofname{Demonstratio}% + \def\glossaryname{Glossarium}% + } +\def\datelatin{% + \def\today{\uppercase\expandafter{\romannumeral\day}% + \space \ifcase\month% + \or Januarii\or Februarii\or Martii\or Aprilis\or Maji\or Junii\or% + Julii\or Augusti\or Septembris\or Octobris\or Novembris\or% + Decembris\fi% + \space \uppercase\expandafter{\romannumeral\year}}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-latvian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-latvian.ldf new file mode 100644 index 00000000000..9993cadf4a0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-latvian.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-latvian.ldf}[polyglossia: module for latvian] +\PolyglossiaSetup{latvian}{ + hyphennames={latvian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionslatvian{% + \def\prefacename{Priekšvārds}% + \def\refname{Literatūras saraksts}% + \def\abstractname{Anotācija}% + \def\bibname{Literatūra}% + \def\chaptername{Nodaļa}% + \def\appendixname{Pielikums}% + \def\contentsname{Saturs}% + \def\listfigurename{Attēlu saraksts}% + \def\listtablename{Tabulu saraksts}% + \def\indexname{Index}% + \def\figurename{Att.}% + \def\tablename{Tabula}% + \def\partname{Daļa}% + \def\enclname{encl}% + \def\ccname{cc}% + \def\headtoname{To}% + \def\pagename{lpp.}% + \def\seename{sk.}% + \def\alsoname{sk. arī}% + \def\proofname{Pierādījums}% + } +\def\datelatvian{% + \def\today{% + \number\year.\thinspace gada% + \space\number\day.\thinspace% + \ifcase\month\or% + janvārī\or februārī\or martā\or% + aprīlī\or maijā\or jūnijā\or% + jūlijā\or augustā\or septembrī\or% + oktobrī\or novembrī\or decembrī\fi}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-lithuanian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-lithuanian.ldf new file mode 100644 index 00000000000..f1bc9344610 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-lithuanian.ldf @@ -0,0 +1,64 @@ +% Translated by Paulius Sladkevičius +% See also http://github.com/fc7/polyglossia/issues#issue/6 + +\ProvidesFile{gloss-lithuanian.ldf}[polyglossia: module for lithuanian] +\PolyglossiaSetup{lithuanian}{ + hyphennames={lithuanian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionslithuanian{% + \def\refname{Literatūra}% + \def\abstractname{Santrauka}% + \def\bibname{Literatūra}% + \def\prefacename{Pratarmė}% + \def\chaptername{skyrius}% + \def\appendixname{Priedas}% + \def\contentsname{Turinys}% + \def\listfigurename{Iliustracijų sąrašas}% + \def\listtablename{Lentelių sąrašas}% + \def\indexname{Rodyklė}% + \def\figurename{pav.}% + \def\tablename{lentelė}% + %\def\thepart{}% Roman numerals are fine + \def\partname{Dalis}% + \def\pagename{puslapis}% + \def\seename{žiūrėk}% + \def\alsoname{taip pat}% + \def\enclname{Įdėta}% + \def\ccname{Kopijos}% + \def\headtoname{Kam}% + \def\proofname{Įrodymas}% + \def\glossaryname{Terminų žodynas}% +} +\def\datelithuanian{% + \def\lithuanianmonth{\ifcase\month\or + sausio\or + vasario\or + kovo\or + balandžio\or + gegužės\or + birželio\or + liepos\or + rugpjūčio\or + rugsėjo\or + spalio\or + lapkričio\or + gruodžio\fi} + \def\today{\number\year~m.~\lithuanianmonth~\number\day~d.}% +} + +\def\blockextras@lithuanian{% + \let\fnum@figure@orig\fnum@figure + \let\fnum@table@orig\fnum@table + \def\fnum@figure{\thefigure\nobreakspace\figurename}% + \def\fnum@table{\thetable\nobreakspace\tablename}% +} + +\def\noblockextras@lithuanian{% + \let\fnum@figure\fnum@figure@orig + \let\fnum@table\fnum@table@orig +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-lsorbian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-lsorbian.ldf new file mode 100644 index 00000000000..55b58e3b9f0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-lsorbian.ldf @@ -0,0 +1,45 @@ +\ProvidesFile{gloss-lsorbian.ldf}[polyglossia: module for lower sorbian] +\PolyglossiaSetup{lsorbian}{ + hyphennames={lsorbian,lowersorbian,Lsorbian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionslsorbian{% + \def\refname{Referency}% + \def\abstractname{Abstrakt}% + \def\bibname{Literatura}% + \def\prefacename{Zawod}% + \def\chaptername{Kapitl}% + \def\appendixname{Dodawki}% + \def\contentsname{Wopśimjeśe}% + \def\listfigurename{Zapis wobrazow}% + \def\listtablename{Zapis tabulkow}% + \def\indexname{Indeks}% + \def\figurename{Wobraz}% + \def\tablename{Tabulka}% + %\def\thepart{}% + \def\partname{Źěl}% + \def\pagename{Strona}% + \def\seename{gl.}% + \def\alsoname{gl.~teke}% + \def\enclname{Pśiłoga}% + \def\ccname{CC}% + \def\headtoname{Komu}% + \def\proofname{Proof}% + \def\glossaryname{Glossary}% + } +\def\datelsorbian{% + \def\today{\number\day.~\ifcase\month\or + januara\or februara\or měrca\or apryla\or maja\or + junija\or julija\or awgusta\or septembra\or oktobra\or + nowembra\or decembra\fi + \space \number\year}% + \def\oldtoday{\textlsorbian{\number\day.~\ifcase\month\or + wjelikego rožka\or małego rožka\or nalětnika\or + jatšownika\or rožownika\or smažnika\or pražnika\or + žnjeńca\or požnjeńca\or winowca\or nazymnika\or + godownika\fi\space \number\year}}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-magyar.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-magyar.ldf new file mode 100644 index 00000000000..3f6839a932f --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-magyar.ldf @@ -0,0 +1,60 @@ +\ProvidesFile{gloss-magyar.ldf}[polyglossia: module for magyar] +\PolyglossiaSetup{magyar}{ + hyphennames={magyar,hungarian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsmagyar{% + \def\refname{Hivatkozások}% + \def\abstractname{Kivonat}% + \def\bibname{Irodalomjegyzék}% + \def\prefacename{Előszó}% + \def\chaptername{fejezet}% + \def\appendixname{Függelék}% + \def\contentsname{Tartalomjegyzék}% + \def\listfigurename{Ábrák jegyzéke}% + \def\listtablename{Táblázatok jegyzéke}% + \def\indexname{Tárgymutató}% + \def\figurename{ábra}% + \def\tablename{táblázat}% + %\def\thepart{}% + \def\partname{rész}% + \def\pagename{oldal}% + \def\seename{lásd}% + \def\alsoname{lásd még}% + \def\enclname{Melléklet}% + \def\ccname{Körlevél–címzettek}% + \def\headtoname{Címzett}% + \def\proofname{Bizonyítás}% + \def\glossaryname{Szójegyzék}% + } +\def\datemagyar{% + \def\today{% + \number\year.\nobreakspace\ifcase\month\or + január\or február\or március\or + április\or május\or június\or + július\or augusztus\or szeptember\or + október\or november\or december\fi + \space\number\day.}% + \def\ondatemagyar{% + \number\year.\nobreakspace\ifcase\month\or + január\or február\or március\or + április\or május\or június\or + július\or augusztus\or szeptember\or + október\or november\or december\fi + \space\ifcase\day\or + 1-jén\or 2-án\or 3-án\or 4-én\or 5-én\or + 6-án\or 7-én\or 8-án\or 9-én\or 10-én\or + 11-én\or 12-én\or 13-án\or 14-én\or 15-én\or + 16-án\or 17-én\or 18-án\or 19-én\or 20-án\or + 21-én\or 22-én\or 23-án\or 24-én\or 25-én\or + 26-án\or 27-én\or 28-án\or 29-én\or 30-án\or + 31-én\fi}% + \let\ontoday\ondatemagyar} + +\def\noextras@magyar{% + \let\ontoday\@undefined +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-malayalam.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-malayalam.ldf new file mode 100644 index 00000000000..1630b3c78bf --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-malayalam.ldf @@ -0,0 +1,53 @@ +\ProvidesFile{gloss-malayalam.ldf}[polyglossia: module for malayalam] +% Translations provided by Kevin & Siji, 01-11-2009 + +\PolyglossiaSetup{malayalam}{ + script=Malayalam, + scripttag=mlym, + langtag=MAL, %FIXME there is also MLR for "Malayalam Reformed" + hyphennames={malayalam}, + hyphenmins={2,2}, %FIXME + fontsetup=true, +} + +\def\captionsmalayalam{% + \def\abstractname{സാരാംശം}% + \def\appendixname{ശിഷ്ടം}% + \def\bibname{}% (?) + \def\ccname{}% + \def\chaptername{അദ്ധ്യായം}% + \def\contentsname{ഉള്ളടക്കം}% + \def\enclname{}% + \def\figurename{ചിത്രം}% रेखाचित्र + \def\headpagename{}% + \def\headtoname{}% + \def\indexname{സൂചിക}% + \def\listfigurename{ചിത്രസൂചിക}% + \def\listtablename{പട്ടികകളുടെ സൂചിക}% + \def\pagename{}% + \def\partname{ഭാഗം}% + \def\prefacename{}% + \def\refname{}% + \def\tablename{പട്ടിക}% + \def\seename{കാണുക}% + \def\alsoname{ഇതും കാണുക}% + \def\alsoseename{ഇതും കാണുക}% +} +\def\datemalayalam{% + \def\today{\number\year\space\ifcase\month\or + ജനുവരി\or + ഫിബ്രുവരി\or + മാർച്ച്\or + ഏപ്രിൽ\or + മെയ്\or + ജൂൺ\or + ജൂലായ്\or + ആഗസ്ത്\or + സെപ്തംബർ\or + ഒക്ടോബർ\or + നവംബർ\or + ഡിസംബർ\fi + \space\number\day}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-marathi.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-marathi.ldf new file mode 100644 index 00000000000..a7fd12c7df3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-marathi.ldf @@ -0,0 +1,78 @@ +% Translations provided by Abhijit Navale +% TODO implement Hindu calendar (not used in day-to-day practice) + +\ProvidesFile{gloss-marathi.ldf}[polyglossia: module for marathi] +\RequirePackage{devanagaridigits} + +\PolyglossiaSetup{marathi}{ + script=Devaganari, + scripttag=deva, + langtag=MAR, + hyphennames={marathi}, + hyphenmins={2,2},%CHECK + fontsetup=true, + %TODO nouppercase=true, + %TODO localnumber=marathinumber +} + +\def\tmp@western{Western} +\newif\ifmarathi@devanagari@numerals +\marathi@devanagari@numeralstrue + +\define@key{marathi}{numerals}[Devanagari]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western + \marathi@devanagari@numeralsfalse + \fi} + +\def\marathinumber#1{% + \ifmarathi@devanagari@numerals + \devanagaridigits{\number#1}% + \else + \number#1% + \fi} + +\def\captionsmarathi{% + \def\refname{संदर्भ}% + \def\abstractname{सारांश}% + \def\bibname{संदर्भ ग्रंथांची यादी}% + \def\prefacename{प्रस्तावना}% + \def\chaptername{प्रकरण}% + \def\appendixname{परिशिष्ट}% + \def\contentsname{अनुक्रमणिका}% + \def\listfigurename{आक्रुत्यांची यादी}% + \def\listtablename{कॊष्टकांची यादी}% + \def\indexname{सुची}% + \def\figurename{आक्रुती}% + \def\tablename{कोष्टक}% + %\def\thepart{}% TODO + \def\partname{भाग}% + \def\pagename{पान}% + \def\seename{पहा}% + \def\alsoname{हे सुध्दा पहा}% + \def\enclname{समाविष्ट}% + \def\ccname{सि.सि.}% + \def\headtoname{प्रति}% + \def\proofname{कसोटी}% + \def\glossaryname{स्पष्टीकरणकोश}% +} +\def\datemarathi{% + \def\marathimonth{% + \ifcase\month\or + जानेवारी\or + फेब्रुवारी\or + मार्च\or + एप्रिल\or + मे\or + जुन\or + जुलॆ\or + ओगस्ट\or + सप्टेंबर\or + ओक्टोबर\or + नोव्हेंबर\or + डिसेंबर\fi + }% + \def\today{\marathinumber\day\space\marathimonth\space\marathinumber\year}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-norsk.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-norsk.ldf new file mode 100644 index 00000000000..975cd109c7c --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-norsk.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-norsk.ldf}[polyglossia: module for norwegian] +\PolyglossiaSetup{norsk}{ + hyphennames={norsk}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsnorsk{% + \def\refname{Referanser}% + \def\abstractname{Sammendrag}% + \def\bibname{Bibliografi}% + \def\prefacename{Forord}% + \def\chaptername{Kapittel}% + \def\appendixname{Tillegg}% + \def\contentsname{Innhold}% + \def\listfigurename{Figurer}% + \def\listtablename{Tabeller}% + \def\indexname{Register}% + \def\figurename{Figur}% + \def\tablename{Tabell}% + %\def\thepart{}% <<< + \def\partname{Del}% + \def\pagename{Side}% + \def\seename{Se}% + \def\alsoname{Se også}% + \def\enclname{Vedlegg}% + \def\ccname{Kopi sendt}% + \def\headtoname{Til}% + \def\proofname{Bevis}% + \def\glossaryname{Ordliste}% + } + +\def\datenorsk{% + \def\today{\number\day.~\ifcase\month\or + januar\or februar\or mars\or april\or mai\or juni\or + juli\or august\or september\or oktober\or november\or desember + \fi\space\number\year}% + } + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-nynorsk.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-nynorsk.ldf new file mode 100644 index 00000000000..8051d902e16 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-nynorsk.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-nynorsk.ldf}[polyglossia: module for norwegian (Nynorsk)] +\PolyglossiaSetup{nynorsk}{ + hyphennames={nynorsk}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsnynorsk{% + \def\refname{Referansar}% + \def\abstractname{Sammendrag}% + \def\bibname{Litteratur}% + \def\prefacename{Forord}% + \def\chaptername{Kapittel}% + \def\appendixname{Tillegg}% + \def\contentsname{Innhald}% + \def\listfigurename{Figurar}% + \def\listtablename{Tabellar}% + \def\indexname{Register}% + \def\figurename{Figur}% + \def\tablename{Tabell}% + %\def\thepart{}% <<< + \def\partname{Del}% + \def\pagename{Side}% + \def\seename{Sjå}% + \def\alsoname{Sjå òg}% + \def\enclname{Vedlegg}% + \def\ccname{Kopi til}% + \def\headtoname{Til}% + \def\proofname{Bevis}% + \def\glossaryname{Ordliste}% + } + +\def\datenynorsk{% + \def\today{\number\day.~\ifcase\month\or + januar\or februar\or mars\or april\or mai\or juni\or + juli\or august\or september\or oktober\or november\or desember + \fi\space\number\year}% + } + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-occitan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-occitan.ldf new file mode 100644 index 00000000000..c647aa9000f --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-occitan.ldf @@ -0,0 +1,58 @@ +% Translated by Cédric Valmary of Tot en òc +\ProvidesFile{gloss-occitan.ldf}[polyglossia: module for occitan] + +\PolyglossiaSetup{occitan}{ + hyphennames={occitan}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\def\captionsoccitan{% + \def\refname{Referéncias}% + \def\abstractname{Resumit}% + \def\bibname{Bibliografia}% + \def\prefacename{Prefàcia}% + \def\chaptername{Capítol}% + \def\appendixname{Annèx}% + \def\contentsname{Ensenhador}% + \def\listfigurename{Taula de las figuras}% + \def\listtablename{Taula dels tablèus}% + \def\indexname{Indèx}% + \def\figurename{Figura}% + \def\tablename{Tablèu}% + %\def\thepart{}% + \def\partname{Partida}% + \def\pagename{Pagina}% + \def\seename{vejatz}% + \def\alsoname{vejatz tanben}% + \def\enclname{Pèça junta}% + \def\ccname{còpia a}% + \def\headtoname{A}% + \def\proofname{Demostracion}% + \def\glossaryname{Glossari}% +} +\def\dateoccitan{% + \def\occitanmonth{\ifcase\month\or + de~genièr\or + de~febrièr\or + de~març\or + d'abril\or + de~mai\or + de~junh\or + de~julhet\or + d'agost\or + de~setembre\or + d'octobre\or + de~novembre\or + de~decembre\fi + }% + \def\occitanday{\ifcase\day\or + 1èr\else% primièr + \number\day\fi% all other numbers + }% + \def\today{\occitanday \occitanmonth\space de~\number\year}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-piedmontese.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-piedmontese.ldf new file mode 100644 index 00000000000..797e72a5209 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-piedmontese.ldf @@ -0,0 +1,115 @@ +% !TEX encoding = UTF-8 Unicode +\ProvidesFile{gloss-piedmontese.ldf}[2013/02/12 v1.0 polyglossia: module for piedmontese] +\makeatletter +\PolyglossiaSetup{piedmontese}{ + hyphennames={piedmontese}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + + +\define@boolkey{piedmontese}[piedmontese@]{babelshorthands}[true]{} + +\ifsystem@babelshorthands + \setkeys{piedmontese}{babelshorthands=true} +\else + \setkeys{piedmontese}{babelshorthands=false} +\fi + +\ifcsundef{initiate@active@char}{% +\input{babelsh.def}% +\initiate@active@char{"}% +}{} + +\def\piedmontese@shorthands{% + \bbl@activate{"}% + \def\language@group{piedmontese}% + \declare@shorthand{piedmontese}{"}{% + \relax\ifmmode + \def\xpgpms@next{''}% + \else + \def\xpgpms@next{\futurelet\xpgpms@temp\xpgpms@cwm}% + \fi + \xpgpms@next}% +} + +\def\xpgpms@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip} +\def\xpgpms@cwm{\let\xpgpms@@next\relax +\ifcat\noexpand\xpgpms@temp a% + \def\xpgpms@@next{\pms@@cwm}% +\else + \ifx\xpgpms@temp/% + \def\xpgpms@@next{\bbl@allowhyphens/\bbl@allowhyphens\@gobble}% + \else + \ifx\xpgpms@temp-% + \def\xpgpms@@next{\bbl@allowhyphens-\bbl@allowhyphens\@gobble}% + \else + \ifx\xpgpms@temp"% + \def\xpgpms@@next{``\expandafter\@gobble\string}% + \fi + \fi + \fi +\xpgpms@@next} + +\def\nopiedmontese@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% +} +\@namedef{captions\CurrentOption}{% + \def\prefacename{Prefassion}% + \def\refname{Riferiment}% + \def\abstractname{Somari}% + \def\bibname{Bibliografìa}% + \def\chaptername{Capìtol}% + \def\appendixname{Gionta}% + \def\contentsname{Tàula}% + \def\listfigurename{Lista dle figure}% + \def\listtablename{Lista dle tabele}% + \def\indexname{Tàula analìtica}% + \def\figurename{Figura}% + \def\tablename{Tabela}% + \def\partname{Part}% + \def\enclname{Gionta/e}% + \def\ccname{Con còpia a}% + \def\headtoname{Për}% + \def\pagename{Pàgina}% + \def\seename{vëd}% + \def\alsoname{vëd anche}% + \def\proofname{Dimostrassion}% + \def\glossaryname{Glossari}% +} +\@namedef{date\CurrentOption}{% + \def\today{\number\day\space\ifcase\month\or + ëd gené\or ëd fevré\or ëd mars\or d'avril\or ëd maj\or ëd giugn\or + ëd luj\or d'agost\or dë stèmber\or d'otóber\or ëd novèmber\or dë dzèmber% + \fi\space dal\space\number\year}} + +\AtEndPreamble{% + \edef\xpgpms@savedvalues{% + \clubpenalty=\the\clubpenalty\space + \@clubpenalty=\the\@clubpenalty\space + \widowpenalty=\the\widowpenalty\space + \finalhyphendemerits=\the\finalhyphendemerits} +} + + +\def\noextras@piedmontese{% + \lccode\string"2019=\z@ + \nopiedmontese@shorthands + \xpgpms@savedvalues +} + +\def\blockextras@piedmontese{% + \lccode\string"2019=\string"2019 + \clubpenalty=3000 \@clubpenalty=3000 \widowpenalty=3000 + \finalhyphendemerits=50000000 + \ifpiedmontese@babelshorthands\piedmontese@shorthands\fi +} + +\def\inlineextras@piedmontese{% + \lccode\string"2019=\string"2019 + \ifpiedmontese@babelshorthands\piedmontese@shorthands\fi +} +%%% CHANGES END %%% +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf new file mode 100644 index 00000000000..40359e022aa --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-polish.ldf @@ -0,0 +1,41 @@ +\ProvidesFile{gloss-polish.ldf}[polyglossia: module for polish] +\PolyglossiaSetup{polish}{ + hyphennames={polish}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionspolish{% + \def\prefacename{Przedmowa}% + \def\refname{Literatura}% + \def\abstractname{Streszczenie}% + \def\bibname{Bibliografia}% + \def\chaptername{Rozdział}% + \def\appendixname{Dodatek}% + \def\contentsname{Spis treści}% + \def\listfigurename{Spis rysunków}% + \def\listtablename{Spis tablic}% + \def\indexname{Indeks}% + \def\figurename{Rysunek}% + \def\tablename{Tablica}% + \def\partname{Część}% + \def\enclname{Załącznik}% + \def\ccname{Kopie:}% + \def\headtoname{Do}% + \def\pagename{Strona}% + \def\seename{Porównaj}% + \def\alsoname{Porównaj także}% + \def\proofname{Dowód}% + \def\glossaryname{Glossary}% <-- Needs translation + } + +\def\datepolish{% + \def\today{\number\day\space\ifcase\month\or + stycznia\or lutego\or marca\or kwietnia\or maja\or czerwca\or + lipca\or sierpnia\or września\or października\or + listopada\or grudnia\fi\space + \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-portuges.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-portuges.ldf new file mode 100644 index 00000000000..310f958f160 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-portuges.ldf @@ -0,0 +1,40 @@ +\ProvidesFile{gloss-portuges.ldf}[polyglossia: module for portuguese] +\PolyglossiaSetup{portuges}{ + hyphennames={portuges,portuguese}, + hyphenmins={2,3}, + fontsetup=true, +} + +\def\captionsportuges{% + \def\refname{Referências}% + \def\abstractname{Resumo}% + \def\bibname{Bibliografia}% + \def\prefacename{Prefácio}% + \def\chaptername{Capítulo}% + \def\appendixname{Apêndice}% + \def\contentsname{Conteúdo}% + \def\listfigurename{Lista de Figuras}% + \def\listtablename{Lista de Tabelas}% + \def\indexname{Índice}% + \def\figurename{Figura}% + \def\tablename{Tabela}% + %\def\thepart{}% + \def\partname{Parte}% + \def\pagename{Página}% + \def\seename{ver}% + \def\alsoname{ver também}% + \def\enclname{Anexo}% + \def\ccname{Com cópia a}% + \def\headtoname{Para}% + \def\proofname{Demonstração}% + \def\glossaryname{Glossário}% + } + +\def\dateportuges{% + \def\today{\number\day\space de\space\ifcase\month\or + Janeiro\or Fevereiro\or Março\or Abril\or Maio\or Junho\or + Julho\or Agosto\or Setembro\or Outubro\or Novembro\or Dezembro\fi + \space de\space\number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-romanian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-romanian.ldf new file mode 100644 index 00000000000..43a3d173f35 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-romanian.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-romanian.ldf}[polyglossia: module for romanian] + +\PolyglossiaSetup{romanian}{ + hyphennames={romanian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsromanian{% + \def\refname{Bibliografie}% + \def\abstractname{Rezumat}% + \def\bibname{Bibliografie}% + \def\prefacename{Prefață}% + \def\chaptername{Capitolul}% + \def\appendixname{Anexa}% + \def\contentsname{Cuprins}% + \def\listfigurename{Listă de figuri}% + \def\listtablename{Listă de tabele}% + \def\indexname{Glosar}% + \def\figurename{Figura}% + \def\tablename{Tabela}% + %\def\thepart{}% + \def\partname{Partea}% + \def\pagename{Pagina}% + \def\seename{Vezi}% + \def\alsoname{Vezi de asemenea}% + \def\enclname{Anexă}% + \def\ccname{Copie}% + \def\headtoname{Pentru}% + \def\proofname{Demonstrație}% + \def\glossaryname{Glosar}% + } + +\def\dateromanian{% + \def\today{\number\day~\ifcase\month\or + ianuarie\or februarie\or martie\or aprilie\or mai\or + iunie\or iulie\or august\or septembrie\or octombrie\or + noiembrie\or decembrie\fi + \space \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-romansh.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-romansh.ldf new file mode 100644 index 00000000000..40d75f47e7b --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-romansh.ldf @@ -0,0 +1,41 @@ +\ProvidesFile{gloss-romansh.ldf}[polyglossia: module for romansh] +\makeatletter +\PolyglossiaSetup{romansh}{% + hyphennames={romansh}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=true, +} + + +\def\captionsromansh{% + \def\prefacename{Prefaziun}% + \def\refname{Bibliografia}% + \def\abstractname{Recapitulaziun}% + \def\bibname{Index bibliografic}% + \def\chaptername{Chapitel}% + \def\appendixname{Appendix}% + \def\contentsname{Tavla dal cuntegn}% + \def\listfigurename{Tavla da las figuras}% + \def\listtablename{Tavla da las tabellas}% + \def\indexname{Register da materias}% Index? + \def\figurename{Figura}% + \def\tablename{Tabella}% + \def\partname{Part}% + \def\enclname{Agiunta(s)}% + \def\ccname{Copia a}% + \def\headtoname{A}% + \def\pagename{pagina}% + \def\seename{vesair }% + \def\alsoname{vesair era}% + \def\proofname{Demonstraziun}% + \def\glossaryname{Glossari}% + } + +\def\dateromansh{% + \def\today{\ifcase\day\or1.\else ils~\number\day\fi~da~% + \ifcase\month\or + schaner\or favrer\or mars\or avrigl\or matg\or zercladur\or + fanadur\or avust\or settember\or october\or november\or + december\fi\space \number\year}} +\makeatother diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf new file mode 100644 index 00000000000..78c984afc89 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf @@ -0,0 +1,253 @@ +\ProvidesFile{gloss-russian.ldf}[polyglossia: module for russian] +\PolyglossiaSetup{russian}{ + script=Cyrillic, + scripttag=cyrl, + langtag=RUS, + hyphennames={russian}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup + %TODO localalph={russian@alph,russian@Alph} +} + +\define@key{russian}{spelling}[modern]{% + \ifstrequal{#1}{old}% + {\def\captionsrussian{\captionsrussian@old}% + \def\daterussian{\daterussian@old}}% + {\def\captionsrussian{\captionsrussian@modern}% + \def\daterussian{\daterussian@modern}}% +} + +\newif\ifcyrillic@numerals +\define@key{russian}{numerals}[latin]{% + \ifstrequal{#1}{cyrillic}% + {\cyrillic@numeralstrue} + {\cyrillic@numeralsfalse} +} + +\define@boolkey{russian}[russian@]{babelshorthands}[false]{} + +\setkeys{russian}{spelling,numerals} + +\ifsystem@babelshorthands + \setkeys{russian}{babelshorthands=true} +\else + \setkeys{russian}{babelshorthands=false} +\fi + +\ifcsundef{initiate@active@char}{% + \input{babelsh.def}% + \initiate@active@char{"}% +}{} + +\def\russian@shorthands{% + \bbl@activate{"}% + \def\language@group{russian}% +% \declare@shorthand{russian}{"`}{„}% +% \declare@shorthand{russian}{"'}{“}% +% \declare@shorthand{russian}{"<}{«}% +% \declare@shorthand{russian}{">}{»}% + \declare@shorthand{russian}{""}{\hskip\z@skip}% + \declare@shorthand{russian}{"~}{\textormath{\leavevmode\hbox{-}}{-}}% + \declare@shorthand{russian}{"=}{\nobreak-\hskip\z@skip}% + \declare@shorthand{russian}{"|}{\textormath{\nobreak\discretionary{-}{}{\kern.03em}\allowhyphens}{}}% + \declare@shorthand{russian}{"-}{% + \def\russian@sh@tmp{% + \if\russian@sh@next-\expandafter\russian@sh@emdash + \else\expandafter\russian@sh@hyphen\fi + }% + \futurelet\russian@sh@next\russian@sh@tmp}% + \def\russian@sh@hyphen{% + \nobreak\-\bbl@allowhyphens}% + \def\russian@sh@emdash##1##2{\cdash-##1##2}% + \def\cdash##1##2##3{\def\tempx@{##3}% + \def\tempa@{-}\def\tempb@{~}\def\tempc@{*}% + \ifx\tempx@\tempa@\@Acdash\else + \ifx\tempx@\tempb@\@Bcdash\else + \ifx\tempx@\tempc@\@Ccdash\else + \errmessage{Wrong usage of cdash}\fi\fi\fi} + \def\@Acdash{\ifdim\lastskip>\z@\unskip\nobreak\hskip.2em\fi + \cyrdash\hskip.2em\ignorespaces}% + \def\@Bcdash{\leavevmode\ifdim\lastskip>\z@\unskip\fi + \nobreak\cyrdash\penalty\exhyphenpenalty\hskip\z@skip\ignorespaces}% + \def\@Ccdash{\leavevmode + \nobreak\cyrdash\nobreak\hskip.35em\ignorespaces}% + \ifx\cyrdash\undefined + \def\cyrdash{\hbox to.8em{--\hss--}} + \fi + \declare@shorthand{russian}{",}{\nobreak\hskip.2em\ignorespaces}% +} + +\def\norussian@shorthands{% + \@ifundefined{initiate@active@char}{}{\bbl@deactivate{"}}% +} + + +\def\captionsrussian@modern{% + \def\prefacename{Предисловие}% + \def\refname{Список литературы}% + \def\abstractname{Аннотация}% + \def\bibname{Литература}% + \def\chaptername{Глава}% + \def\appendixname{Приложение}% + \ifcsundef{thechapter}% + {\def\contentsname{Содержание}}% + {\def\contentsname{Оглавление}}% + \def\listfigurename{Список иллюстраций}% + \def\listtablename{Список таблиц}% + \def\indexname{Предметный указатель}% + \def\authorname{Именной указатель}% + \def\figurename{Рис.}% + \def\tablename{Таблица}% + \def\partname{Часть}% + \def\enclname{вкл.}% + \def\ccname{исх.}% + \def\headtoname{вх.}% + \def\pagename{с.}% + \def\seename{см.}% + \def\alsoname{см.~также}% + \def\proofname{Доказательство}% +} +\def\daterussian@modern{% + \def\today{\number\day% + \space\ifcase\month\or% + января\or + февраля\or + марта\or + апреля\or + мая\or + июня\or + июля\or + августа\or + сентября\or + октября\or + ноября\or + декабря\fi% + \space \number\year\space г.}} + +\def\captionsrussian@old{% + \def\prefacename{Предисловіе}% + \def\refname{Примѣчанія}% + \def\abstractname{Аннотація}% + \def\bibname{Библіографія}% + \def\chaptername{Глава}% + \def\appendixname{Приложеніе}% + \ifcsundef{thechapter}% + {\def\contentsname{Содержаніе}}% + {\def\contentsname{Оглавленіе}}% + \def\listfigurename{Списокъ иллюстрацій}% + \def\listtablename{Списокъ таблицъ}% + \def\indexname{Предмѣтный указатель}% + \def\authorname{Именной указатель}% + \def\figurename{Рис.}% + \def\tablename{Таблица}% + \def\partname{Часть}% + \def\enclname{вкл.}% + \def\ccname{исх.}% + \def\headtoname{вх.}% + \def\pagename{с.}% + \def\seename{см.}% + \def\alsoname{см.~также}% + \def\proofname{Доказательство}% +} +\def\daterussian@old{% + \def\today{\number\day% + \space\ifcase\month\or% + января\or + февраля\or + марта\or + апреля\or + мая\or + іюня\or + іюля\or + августа\or + сентября\or + октября\or + ноября\or + декабря\fi% + \space \number\year\space г.}} + +% The following is based on some ideas from ruscor.sty +\def\russian@capsformat{% + \def\@seccntformat##1{\csname pre##1\endcsname% + \csname the##1\endcsname% + \csname post##1\endcsname}% + \def\@aftersepkern{\hspace{0.5em}}% + \def\postchapter{.\@aftersepkern}% + \def\postsection{.\@aftersepkern}% + \def\postsubsection{.\@aftersepkern}% + \def\postsubsubsection{.\@aftersepkern}% + \def\postparagraph{.\@aftersepkern}% + \def\postsubparagraph{.\@aftersepkern}% + \def\prechapter{}% + \def\presection{}% + \def\presubsection{}% + \def\presubsubsection{}% + \def\preparagraph{}% + \def\presubparagraph{}} + +\def\Asbuk#1{\expandafter\russian@Alph\csname c@#1\endcsname} +\def\russian@Alph#1{\ifcase#1\or + А\or Б\or В\or Г\or Д\or Е\or Ж\or + З\or И\or К\or Л\or М\or Н\or О\or + П\or Р\or С\or Т\or У\or Ф\or Х\or + Ц\or Ч\or Ш\or Щ\or Э\or Ю\or Я\else\xpg@ill@value{#1}{russian@Alph}\fi} +\def\asbuk#1{\expandafter\russian@alph\csname c@#1\endcsname} +\def\russian@alph#1{\ifcase#1\or + а\or б\or в\or г\or д\or е\or ж\or + з\or и\or к\or л\or м\or н\or о\or + п\or р\or с\or т\or у\or ф\or х\or + ц\or ч\or ш\or щ\or э\or ю\or я\else\xpg@ill@value{#1}{russian@alph}\fi} + +\def\russian@numbers{% + \let\latin@alph\@alph% + \let\latin@Alph\@Alph% + \ifcyrillic@numerals + \let\@alph\russian@alph% + \let\@Alph\russian@Alph% + \fi +} + +\def\norussian@numbers{% + \let\@alph\latin@alph% + \let\@Alph\latin@Alph% +} + +\def\noextras@russian{% + \def\@seccntformat##1{\csname the##1\endcsname\quad}% = LaTeX kernel + \ifcyrillic@numerals\norussian@numbers\fi + \norussian@shorthands% +} + +\def\blockextras@russian{% + \russian@capsformat% + \ifcyrillic@numerals\russian@numbers\fi + \ifrussian@babelshorthands\russian@shorthands\fi +} + +\def\inlineextras@russian{% + \ifrussian@babelshorthands\russian@shorthands\fi% +} + +%%% These lines taken from russianb.ldf, part of babel package. +% make it optional? +\def\sh {\mathop{\operator@font sh}\nolimits} +\def\ch {\mathop{\operator@font ch}\nolimits} +\def\tg {\mathop{\operator@font tg}\nolimits} +\def\arctg {\mathop{\operator@font arctg}\nolimits} +\def\arcctg{\mathop{\operator@font arcctg}\nolimits} +\def\th {\mathop{\operator@font th}\nolimits} +\def\ctg {\mathop{\operator@font ctg}\nolimits} +\def\cth {\mathop{\operator@font cth}\nolimits} +\def\cosec {\mathop{\operator@font cosec}\nolimits} +\def\Prob {\mathop{\kern\z@\mathsf{P}}\nolimits} +\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits} +\def\nod {\mathop{\mathrm{н.о.д.}}\nolimits} +\def\nok {\mathop{\mathrm{н.о.к.}}\nolimits} +\def\NOD {\mathop{\mathrm{НОД}}\nolimits} +\def\NOK {\mathop{\mathrm{НОК}}\nolimits} +\def\Proj {\mathop{\mathrm{Пр}}\nolimits} +%\DeclareRobustCommand{\No}{№} + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-samin.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-samin.ldf new file mode 100644 index 00000000000..e9d834a6489 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-samin.ldf @@ -0,0 +1,50 @@ +\ProvidesFile{gloss-samin.ldf}[polyglossia: module for samin] + +\PolyglossiaSetup{samin}{ + hyphennames={samin}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionssamin{% + \def\refname{Čujuhusat}% + \def\abstractname{Čoahkkáigeassu}% + \def\bibname{Girjjálašvuohta}% + \def\prefacename{Ovdasátni}% + \def\chaptername{Kapihttal}% + \def\appendixname{Čuovus}% + \def\contentsname{Sisdoallu}% + \def\listfigurename{Govvosat}% + \def\listtablename{Tabeallat}% + \def\indexname{Registtar}% + \def\figurename{Govus}% + \def\tablename{Tabealla}% + \def\thepart{}% + \def\partname{Oassi}% + \def\pagename{Siidu}% + \def\seename{geahča}% + \def\alsoname{geahča maiddái}% + \def\enclname{Mielddus}% + \def\ccname{Kopia sáddejuvvon}% + \def\headtoname{Vuostáiváldi}% + \def\proofname{Duođaštus}% + \def\glossaryname{Sátnelistu}% + } +\def\datesamin{% + \def\today{\ifcase\month\or + ođđajagemánu\or + guovvamánu\or + njukčamánu\or + cuoŋománu\or + miessemánu\or + geassemánu\or + suoidnemánu\or + borgemánu\or + čakčamánu\or + golggotmánu\or + skábmamánu\or + juovlamánu\fi + \space\number\day.~b.\space\number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-sanskrit.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-sanskrit.ldf new file mode 100644 index 00000000000..287620615c4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-sanskrit.ldf @@ -0,0 +1,86 @@ +\ProvidesFile{gloss-sanskrit.ldf}[polyglossia: module for sanskrit] +\RequirePackage{devanagaridigits} + +\PolyglossiaSetup{sanskrit}{ + langtag=SAN, + hyphennames={sanskrit,prakrit}, + hyphenmins={1,3}, + frenchspacing=true, + fontsetup=false, % will be done below + %TODO localnumber=sanskritnumber +} + +\define@key{sanskrit}{Script}[Devanagari]{% + \setkeys[xpg@setup]{sanskrit}{script=#1}% + \ifcsdef{fontsetup@sanskrit@#1}% + {\csname fontsetup@sanskrit@#1\endcsname}% + {\xpg@error{`#1' is not a valid script for Sanskrit}% + }% +} + +\def\fontsetup@sanskrit@Devanagari{% + \def\xpg@scripttag@sanskrit{deva}% + \xpg@fontsetup@nonlatin{sanskrit}} +\def\fontsetup@sanskrit@Gujarati{% + \def\xpg@scripttag@sanskrit{gujr}% + \xpg@fontsetup@nonlatin{sanskrit}} +\def\fontsetup@sanskrit@Malayalam{% + \def\xpg@scripttag@sanskrit{mlym}% + \xpg@fontsetup@nonlatin{sanskrit}} +\def\fontsetup@sanskrit@Bengali{% + \def\xpg@scripttag@sanskrit{beng}% + \xpg@fontsetup@nonlatin{sanskrit}} +\def\fontsetup@sanskrit@Kannada{% + \def\xpg@scripttag@sanskrit{knda}% + \xpg@fontsetup@nonlatin{sanskrit}} +\def\fontsetup@sanskrit@Telugu{% + \def\xpg@scripttag@sanskrit{telu}% + \xpg@fontsetup@nonlatin{sanskrit}} + +\setkeys{sanskrit}{Script} %sets the default for Devanagari + +%% TODO option for numerals (Devanagari or Western) +%\def\tmp@western{Western} +%\newif\ifsanskrit@devanagari@numerals +%\sanskrit@devanagari@numeralstrue +% +%\define@key{sanskrit}{numerals}[Devanagari]{% +% \def\@tmpa{#1}% +% \ifx\@tmpa\tmp@western +% \sanskrit@devanagari@numeralsfalse +% \fi} + +\newXeTeXintercharclass\sanskrit@punctthin % ! ? ; : danda double_danda + +\def\sanskrit@punctthinspace{{\unskip\thinspace}} + +\def\sanskrit@punctuation{% + \XeTeXinterchartokenstate=1% + \XeTeXcharclass `\! \sanskrit@punctthin + \XeTeXcharclass `\? \sanskrit@punctthin + \XeTeXcharclass `\; \sanskrit@punctthin + \XeTeXcharclass `\: \sanskrit@punctthin + \XeTeXcharclass `\। \sanskrit@punctthin + \XeTeXcharclass `\॥ \sanskrit@punctthin + \XeTeXinterchartoks \z@ \sanskrit@punctthin = \sanskrit@punctthinspace +} + +\def\nosanskrit@punctuation{% + \XeTeXcharclass `\! \z@ + \XeTeXcharclass `\? \z@ + \XeTeXcharclass `\; \z@ + \XeTeXcharclass `\: \z@ + \XeTeXcharclass `\। \z@ + \XeTeXcharclass `\॥ \z@ + \XeTeXinterchartokenstate=0% +} + +\def\noextras@sanskrit{% + \nosanskrit@punctuation% +} + +\def\blockextras@sanskrit{% + \sanskrit@punctuation% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-scottish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-scottish.ldf new file mode 100644 index 00000000000..6c76b71076c --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-scottish.ldf @@ -0,0 +1,44 @@ +\ProvidesFile{gloss-scottish.ldf}[polyglossia: module for scottish] + +\PolyglossiaSetup{scottish}{ + hyphennames={scottish}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsscottish{% + \def\refname{Iomraidh}% + \def\abstractname{Brìgh}% + \def\bibname{Leabhraichean}% + \def\prefacename{Preface}% <-- needs translation + \def\chaptername{Caibideil}% + \def\appendixname{Ath-sgr`ıobhadh}% + \def\contentsname{Clàr-obrach}% + \def\listfigurename{Liosta Dhealbh}% + \def\listtablename{Liosta Chlàr}% + \def\indexname{Clàr-innse}% + \def\figurename{Dealbh}% + \def\tablename{Clàr}% + %\def\thepart{}% + \def\partname{Cuid}% + \def\pagename{t.d.}% + \def\seename{see}% <-- needs translation + \def\alsoname{see also}% <-- needs translation + \def\enclname{a-staigh}% + \def\ccname{lethbhreac gu}% + \def\headtoname{gu}% + \def\proofname{Proof}% <-- needs translation + \def\glossaryname{Glossary}% <-- needs translation + } + +\def\datescottish{% + \def\today{% + \number\day\space \ifcase\month\or + am Faoilteach\or an Gearran\or am Màrt\or an Giblean\or + an Cèitean\or an t-Òg mhios\or an t-Iuchar\or + Lùnasdal\or an Sultuine\or an Dàmhar\or + an t-Samhainn\or an Dubhlachd\fi + \space \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf new file mode 100644 index 00000000000..436ac751366 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf @@ -0,0 +1,135 @@ +\ProvidesFile{gloss-serbian.ldf}[polyglossia: module for serbian] +%TODO split into gloss-serbiancyr.ldf and gloss-serbianlat.ldf +%% load these automatically from polyglossia.sty according to the script option ?? +%% same thing for all languages that have a "script" key ! +%% BETTER APPROACH: see gloss-sanskrit! + +\PolyglossiaSetup{serbian}{ + langtag=SRB, + hyphennames={serbian}, + hyphenmins={2,2}, + indentfirst=true, + fontsetup=false + %TODO localalph +} + +\newif\if@serbian@cyr + +\define@key{serbian}{Script}[Cyrillic]{% TODO FIXDOC: keyname is CHANGED: script -> Script !!! + \ifstrequal{#1}{Cyrillic}% + {\@serbian@cyrtrue + \setkeys[xpg@setup]{serbian}{script=Cyrillic}% + \def\xpg@scripttag@serbian{cyrl}% + \xpg@fontsetup@nonlatin{serbian}% + }% + {\ifstrequal{#1}{Latin}% + {\@serbian@cyrfalse + \xpg@fontsetup@latin{serbian}% + %TODO \def\serbian@language{\language=\l@serbianlat}% + % or should we use Croatian patterns as a fallback for the time being??? + }% + {\xpg@error{Unknown script `#1' for Serbian language\MessageBreak + Valid values are "Cyrillic" and "Latin"}}% + }% +} +\define@key{serbian}{script}[Cyrillic]{\setkeys{serbian}{Script=#1}} + +\setkeys{serbian}{Script} + +\def\captionsserbian{% + \if@serbian@cyr\captionsserbian@cyr\else\captionsserbian@lat\fi + } + +\def\dateserbian{% + \if@serbian@cyr\dateserbian@cyr\else\dateserbian@lat\fi + } + +\def\captionsserbian@lat{% + \def\refname{Bibliografija}% + \def\abstractname{Sažetak}% + \def\bibname{Literatura}% + \def\prefacename{Predgovor}% + \def\chaptername{Glava}% + \def\appendixname{Dodatak}% + \def\contentsname{Sadržaj}% + \def\listfigurename{Spisak slika}% + \def\listtablename{Spisak tabela}% + \def\indexname{Registar}% + \def\figurename{Slika}% + \def\tablename{Tabela}% + \def\partname{Deo}% + \renewcommand\thepart{\ifcase\value{part}\or Prvi\or Drugi\or + Treći\or Čevrti\or Peti\or Šesti\or Sedmi\or Osmi\or + Deveti\or Deseti\or Jedanaesti\or Dvanaesti\or Trinaesti\or + Četrnaesti\or Petnaesti\or Šesnaesti\or Sedamnaesti\or + Osamnaesti\or Devetnaesti\or Dvadeseti\fi}% + \def\pagename{Strana}% + \def\seename{Vidi}% + \def\alsoname{Vidi takođe}% + \def\enclname{Prilozi}% + \def\ccname{Kopije}% + \def\headtoname{Prima}% + \def\proofname{Dokaz}% + \def\glossaryname{Rečnik nepoznatih reči}% + } +\def\dateserbian@lat{% + \def\today{\number\day .~\ifcase\month\or + januar\or februar\or mart\or april\or maj\or + jun\or jul\or avgust\or septembar\or oktobar\or novembar\or + decembar\fi \space \number\year.}% + } + +\def\captionsserbian@cyr{% + \def\refname{Библиографија}% + \def\abstractname{Сажетак}% + \def\bibname{Литература}% + \def\prefacename{Предговор}% + \def\chaptername{Глава}% + \def\appendixname{Додатак}% + \def\contentsname{Садржај}% + \def\listfigurename{Списак слика}% + \def\listtablename{Списак табела}% + \def\indexname{Регистар}% + \def\figurename{Слика}% + \def\tablename{Табела}% + \def\partname{Део}% + \renewcommand\thepart{\ifcase\value{part}\or Први\or Други\or Трећи\or + Четврти\or Пети\or Шести\or Седми\or Осми\or Девети\or Десети\or + Једанаести\or Дванаести\or Тринаести\or Четрнаести\or Петнаести\or + Шеснаести\or Седамнаести\or Осамнаести\or Деветнаести\or Двадесети\fi}% + \def\pagename{Страна}% + \def\seename{Види}% + \def\alsoname{Види такође}% + \def\enclname{Прилози}% + \def\ccname{Копије}% + \def\headtoname{Прима}% + \def\proofname{Доказ}% + \def\glossaryname{Речник непознатих речи}% + } +\def\dateserbian@cyr{% + \def\today{\number\day .~\ifcase\month\or + јануар\or фебруар\or март\or април\or мај\or + јун\or јул\or август\or септембар\or октобар\or новембар\or + децембар\fi \space \number\year.}% + } + +\endinput +% TODO ? stuff from babel + +\def\sh{\mathop{\operator@font sh}\nolimits} % same as \sinh +\def\ch{\mathop{\operator@font ch}\nolimits} % same as \cosh +\def\th{\mathop{\operator@font th}\nolimits} % same as \tanh +\def\cth{\mathop{\operator@font cth}\nolimits} % same as \coth +\def\arsh{\mathop{\operator@font arsh}\nolimits} +\def\arch{\mathop{\operator@font arch}\nolimits} +\def\arth{\mathop{\operator@font arth}\nolimits} +\def\arcth{\mathop{\operator@font arcth}\nolimits} +\def\tg{\mathop{\operator@font tg}\nolimits} % same as \tan +\def\ctg{\mathop{\operator@font ctg}\nolimits} % same as \cot +\def\arctg{\mathop{\operator@font arctg}\nolimits} % same as \arctan +\def\arcctg{\mathop{\operator@font arcctg}\nolimits} +\def\Prob{\mathop{\mathsf P\hskip0pt}\nolimits} +\def\Expect{\mathop{\mathsf E\hskip0pt}\nolimits} +\def\Variance{\mathop{\mathsf D\hskip0pt}\nolimits} + + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-slovak.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-slovak.ldf new file mode 100644 index 00000000000..21a62d65bdf --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-slovak.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-slovak.ldf}[polyglossia: module for slovak] + +\PolyglossiaSetup{slovak}{ + hyphennames={slovak}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsslovak{% + \def\refname{Referencie}% + \def\abstractname{Abstrakt}% + \def\bibname{Literatúra}% + \def\prefacename{Úvod}% + \def\chaptername{Kapitola}% + \def\appendixname{Dodatok}% + \def\contentsname{Obsah}% + \def\listfigurename{Zoznam obrázkov}% + \def\listtablename{Zoznam tabuliek}% + \def\indexname{Index}% + \def\figurename{Obrázok}% + \def\tablename{Tabuľka}% + %\def\thepart{}% + \def\partname{Časť}% + \def\pagename{Strana}% + \def\seename{viď}% + \def\alsoname{viď tiež}% + \def\enclname{Prílohy}% + \def\ccname{cc.}% + \def\headtoname{Pre}% was komu + \def\proofname{Dôkaz}% + \def\glossaryname{Slovník}% + } + +\def\dateslovak{% + \def\today{\number\day.~\ifcase\month\or + januára\or februára\or marca\or apríla\or mája\or + júna\or júla\or augusta\or septembra\or októbra\or + novembra\or decembra\fi + \space \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-slovenian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-slovenian.ldf new file mode 100644 index 00000000000..ef527b16cb2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-slovenian.ldf @@ -0,0 +1,41 @@ +\ProvidesFile{gloss-slovenian.ldf}[polyglossia: module for slovenian] + +\PolyglossiaSetup{slovenian}{ + hyphennames={slovenian,slovene}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsslovenian{% + \def\refname{Literatura}% + \def\abstractname{Povzetek}% + \def\bibname{Literatura}% + \def\prefacename{Predgovor}% + \def\chaptername{Poglavje}% + \def\appendixname{Dodatek}% + \def\contentsname{Kazalo}% + \def\listfigurename{Slike}% + \def\listtablename{Tabele}% + \def\indexname{Stvarno kazalo}% + \def\figurename{Slika}% + \def\tablename{Tabela}% + %\def\thepart{}% + \def\partname{Del}% + \def\pagename{Stran}% + \def\seename{glej}% + \def\alsoname{glej tudi}% + \def\enclname{Priloge}% + \def\ccname{Kopije}% + \def\headtoname{Prejme}% + \def\proofname{Dokaz}% + \def\glossaryname{Slovar}% + } + +\def\dateslovenian{% + \def\today{\number\day.~\ifcase\month\or + januar\or februar\or marec\or april\or maj\or junij\or + julij\or avgust\or september\or oktober\or november\or december\fi + \space \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf new file mode 100644 index 00000000000..30d4f7817c5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-spanish.ldf @@ -0,0 +1,41 @@ +\ProvidesFile{gloss-spanish.ldf}[polyglossia: module for spanish] +\PolyglossiaSetup{spanish}{ + hyphennames={spanish}, + hyphenmins={2,2}, + frenchspacing=true, + indentfirst=true, + fontsetup=true, +} + +\def\captionsspanish{% + \def\prefacename{Prefacio}% + \def\refname{Referencias}% + \def\abstractname{Resumen}% + \def\bibname{Bibliografía}% + \def\chaptername{Capítulo}% + \def\appendixname{Apéndice}% + \def\contentsname{Índice general}% + \def\listfigurename{Índice de figuras}% + \def\listtablename{Índice de cuadros}% + \def\indexname{Índice alfabético}% + \def\figurename{Figura}% + \def\tablename{Cuadro}% + \def\partname{Parte}% + \def\enclname{Adjunto(s)}% + \def\ccname{Copia a}% + \def\headtoname{A}% + \def\pagename{Página}% + \def\seename{véase}% + \def\alsoname{véase también}% + \def\proofname{Prueba}% + \def\glossaryname{Glosario}% + } + +\def\datespanish{% + \def\today{\number\day~de~\ifcase\month\or + enero\or febrero\or marzo\or abril\or mayo\or junio\or + julio\or agosto\or septiembre\or octubre\or noviembre\or + diciembre\fi\space de~\number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-swedish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-swedish.ldf new file mode 100644 index 00000000000..748353488bf --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-swedish.ldf @@ -0,0 +1,48 @@ +\ProvidesFile{gloss-swedish.ldf}[polyglossia: module for swedish] + +\PolyglossiaSetup{swedish}{ + hyphennames={swedish}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsswedish{% + \def\refname{Referenser}% + \def\abstractname{Sammanfattning}% + \def\bibname{Litteraturförteckning}% + \def\prefacename{Förord}% + \def\chaptername{Kapitel}% + \def\appendixname{Bilaga}% + \def\contentsname{Innehåll}% + \def\listfigurename{Figurer}% + \def\listtablename{Tabeller}% + \def\indexname{Sakregister}% + \def\figurename{Figur}% + \def\tablename{Tabell}% + %\def\thepart{}% + \def\partname{Del}% + \def\pagename{Sida}% + \def\seename{se}% + \def\alsoname{se även}% + \def\enclname{Bil.}% + \def\ccname{Kopia för kännedom}% + \def\headtoname{Till}% + \def\proofname{Bevis}% + \def\glossaryname{Ordlista}% + } + +\def\dateswedish{% + \def\today{% + \number\day~\ifcase\month\or + januari\or februari\or mars\or april\or maj\or juni\or + juli\or augusti\or september\or oktober\or november\or + december\fi + \space\number\year} + \def\datesymd{% + \def\today{\number\year-\two@digits\month-\two@digits\day}}% + \def\datesdmy{% + \def\today{\number\day/\number\month\space\number\year}}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-syriac.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-syriac.ldf new file mode 100644 index 00000000000..75e5ce0731d --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-syriac.ldf @@ -0,0 +1,158 @@ +\ProvidesFile{gloss-syriac.ldf}[polyglossia: module for syriac] +\RequirePackage{bidi} +\RequirePackage{arabicnumbers} + +\PolyglossiaSetup{syriac}{ + script=Syriac, + scripttag=syrc, + direction=RL, + hyphennames={syriac,nohyphenation}, + fontsetup=true, + %TODO localalph +} + +\def\syriacnumber#1{\@syriacnumber{#1}}% + +\newif\if@eastern@numerals +\def\tmp@eastern{eastern} +\def\tmp@abjad{abjad} +\define@key{syriac}{numerals}[western]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@abjad + \let\syriacnumber\abjadsyriac + \else + \ifx\@tmpa\tmp@eastern + \@eastern@numeralstrue + \else + \@eastern@numeralsfalse + \fi + \fi} + +\setkeys{syriac}{numerals} + +%\define@key{polyglossia}{syriaclocale}[default]{% +% \def\@syriac@locale{#1}} +% +%\def\captionssyriac{% +%\def\prefacename{\@ensure@RTL{}}% +%\def\refname{\@ensure@RTL{}} +%\def\abstractname{\@ensure@RTL{}}% +%\def\bibname{\@ensure@RTL{}}% +%\def\chaptername{\@ensure@RTL{}}% +%\def\appendixname{\@ensure@RTL{}}% +%\def\contentsname{\@ensure@RTL{}} +%\def\listfigurename{\@ensure@RTL{}}% +%\def\listtablename{\@ensure@RTL{}}% +%\def\indexname{\@ensure@RTL{}}% +%\def\figurename{\@ensure@RTL{}}% +%\def\tablename{\@ensure@RTL{}}% +%\def\partname{\@ensure@RTL{}}% +%\def\enclname{\@ensure@RTL{}}% +%\def\ccname{\@ensure@RTL{}}% +%\def\headtoname{\@ensure@RTL{}}% +%\def\pagename{\@ensure@RTL{}}% +%\def\seename{\@ensure@RTL{}}% +%\def\alsoname{\@ensure@RTL{}}% +%\def\proofname{\@ensure@RTL{}}% +%\def\glossaryname{\@ensure@RTL{}}% +%} + +\def\datesyriac{% + \def\syriac@month##1{\ifcase##1% + \or ܟܢܘܢ ܐܚܪܝ\or ܫܒܛ\or ܐܕܪ\or ܢܝܣܢ\or ܐܝܪ\or ܚܙܝܪܢ\or ܬܡܘܙ\or ܐܒ\or ܐܝܠܘܠ% ܐܠܘܠ + \or ܬܫܪܝܢ ܩܕܡ% ܬܫܪܝܢ ܩܕܝܡ + \or ܬܫܪܝܢ ܐܚܪܝ\or ܟܢܘܢ ܩܕܡ% ܟܢܘܢ ܩܕܝܡ + \fi}% + \def\today{\@ensure@RTL{\syriacnumber\day{\space}% + \syriac@month{\month}{\space}\syriacnumber\year}}% +} + +\def\syriac@zero{} + +\def\abjadsyriac#1{% +\ifnum#1>9999\xpg@ill@value{#1}{abjadsyriac}% +\else% + \ifnum#1<\z@\space\xpg@ill@value{#1}{abjadsyriac}% + \else% + \ifnum#1<10\expandafter\abj@syr@num@i\number#1% + \else% + \ifnum#1<100\expandafter\abj@syr@num@ii\number#1% + \else% + \ifnum#1<1000\expandafter\abj@syr@num@iii\number#1% + \else% + \expandafter\abj@syr@num@iv\number#1% + \fi% + \fi% + \fi% + \fi% +\fi% +} +\def\abj@syr@num@i#1{% + \ifcase#1\or\char"0710\or\char"0712\or\char"0713\or\char"0715% + \or\char"0717\or\char"0718\or\char"0719\or\char"071A\or\char"071B\fi + \ifnum#1=\z@\syriac@zero\fi} +\def\abj@syr@num@ii#1{% + \ifcase#1\or\char"071D\or\char"071F\or\char"0720\or\char"0721\or\char"0722% + \or\char"0723\or\char"0725\or\char"0726\or\char"0728\fi + \ifnum#1=\z@\fi\abj@syr@num@i} +\def\abj@syr@num@iii#1{% + \ifcase#1\or\char"0729\or\char"072A\or\char"072B\or\char"072C% + \or\char"0722\char"0307\or\char"0723\char"0307\or\char"0725\char"0307% + \or\char"0726\char"0307\or\char"0728\char"0307\fi + \ifnum#1=\z@\fi\abj@syr@num@ii} +\def\abj@syr@num@iv#1{% + \ifcase#1\or\char"0710\char"0748\or\char"0712\char"0748% + \or\char"0713\char"0748\or\char"0715\char"0748% + \or\char"0717\char"0748\or\char"0718\char"0748% + \or\char"0719\char"0748\or\char"071A\char"0748\or\char"071B\char"0748\fi + \ifnum#1=\z@\fi\abj@syr@num@iii} + +\def\@syriacnumber#1{% + \if@eastern@numerals + \ifnum\XeTeXcharglyph"0661 > 0% + %%% we test for the presence of one of ١٢٣٤٥٦٧٨٩٠ in the Syriac font, + %%% else we try \arabicfont if defined (and give a warning), + %%% else we fall back to the Western numerals. + %%\protect\addfontfeature{Mapping=arabicdigits}\number#1}% + \protect\arabicdigits{\number#1}% + \else% + \ifcsdef{arabicfont}% + {\protect\arabicdigits{\number#1}% + \xpg@warning{You have specified the option numerals=eastern for Syriac, but the Syriac font does not contain the appropriate glyphs: I am using \string\arabicfont instead}}% + {\number#1%%% <---changed from \RL{\protect\reset@font\protect\number#1}% + \xpg@warning{You have specified the option numerals=eastern for Syriac, but the Syriac font does not contain the appropriate glyphs: since \string\arabicfont is not defined, we'll use Western numerals instead}}% + \fi + \else + %%\RL{\protect\reset@font\number#1}% + \number#1% + \fi} + +\def\syriac@numbers{% + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% + \let\@alph\abjadsyriac% + \let\@Alph\abjadsyriac% +} +\def\nosyriac@numbers{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% + } +\def\syriac@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\syriacnumber% + \renewcommand\thefootnote{\protect\syriacnumber{\c@footnote}}% +} +\def\nosyriac@globalnumbers{% + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% + } + +\def\blockextras@syriac{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } +\def\noextras@syriac{% + \let\MakeUppercase\@@MakeUppercase% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-tamil.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-tamil.ldf new file mode 100644 index 00000000000..c3ef7110ba6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-tamil.ldf @@ -0,0 +1,53 @@ +\ProvidesFile{gloss-tamil.ldf}[polyglossia: module for tamil] +% Translations provided by Kevin & Siji, 01-11-2009 + +\PolyglossiaSetup{tamil}{ + script=Tamil, + scripttag=taml, + langtag=TAM, + hyphennames={tamil}, + hyphenmins={2,2}, %FIXME? + fontsetup=true, +} + +\def\captionstamil{% + \def\abstractname{சாராம்சம்}% + \def\appendixname{பிற்சேர்க்கை}%பின்னிணைப்பு + %\def\bibname{}% + %\def\ccname{}% + \def\chaptername{அத்தியாயம்}% + \def\contentsname{உள்ளே}% + %\def\enclname{}% + \def\figurename{படம்}% + %\def\headpagename{}% + %\def\headtoname{}% + \def\indexname{சுட்டி}%பொருளடக்க அட்டவணை + \def\listfigurename{படங்களின் பட்டியல்}% + \def\listtablename{அட்டவணை பட்டியல்}% + %\def\pagename{}% + \def\partname{பகுதி}% + %\def\prefacename{}% + %\def\refname{}% + \def\tablename{அட்டவணை}% + \def\seename{பார்க்க}% + %\def\alsoname{}% + %\def\alsoseename{}% +} +\def\datetamil{% + \def\today{\number\year\space\ifcase\month\or + ஜனவரி\or + பிப்ரவரி\or + மார்ச்\or + ஏப்ரல்\or + மே\or + ஜூன்\or + ஜூலை\or + ஆகஸ்ட்\or + செப்டம்பர்\or + அக்டோபர்\or + நவம்பர்\or + டிசம்பர்\fi + \space\number\day}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-telugu.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-telugu.ldf new file mode 100644 index 00000000000..f7f6a63dc5f --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-telugu.ldf @@ -0,0 +1,56 @@ +\ProvidesFile{gloss-telugu.ldf}[polyglossia: module for telugu] +% Translations provided by Anmol Sharma + +\PolyglossiaSetup{telugu}{ + script=Telugu, + scripttag=telu, + langtag=TEL, + hyphennames={telugu}, + hyphenmins={2,2}, %FIXME + fontsetup=true, +} + +\def\captionstelugu{% + \def\refname{ఆధారాలు}% + \def\abstractname{సారాంశం}% + \def\bibname{గ్రంథాల జాబితా}% + \def\prefacename{ముందుమాట}% + \def\chaptername{అధ్యాయము}% + \def\appendixname{అదనంగా}% + \def\contentsname{విషయాలు}% + \def\listfigurename{ఆకృతుల జాబితా}% + \def\listtablename{పట్టికల జాబితా}% + \def\indexname{విషయ సూచిక}% + \def\figurename{ఆకృతి}% + \def\tablename{పట్టిక}% + %\def\thepart{}% + \def\partname{భాగం}% + \def\pagename{పేజి}% + \def\seename{చూడండి}% + \def\alsoname{కూడా చూడండి}% + \def\enclname{ఎంక్లోజర్*}% + \def\ccname{సిసి}% + \def\headtoname{కి}% + \def\proofname{రుజువు}% + \def\glossaryname{నిఘంటువు}% +} + +\def\datetelugu{% + \def\telugu@month{% + \ifcase\month\or + జనవరి\or + ఫిబ్రవరి\or + మార్చ్\or + ఏప్రిల్\or + మే\or + జూన్\or + జూలై\or + ఆగస్ట్\or + సెప్టెంబర్\or + అక్తోబెర్\or + నవంబర్\or + డిసంబర్\fi}% + \def\today{\telugu@month\space\number\day,\space\number\year}% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-thai.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-thai.ldf new file mode 100644 index 00000000000..16e90ea7dc1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-thai.ldf @@ -0,0 +1,173 @@ +\ProvidesFile{gloss-thai.ldf}[polyglossia: module for thai] +%% This is partly based on thai-latex for Babel: +%%%% Copyright (C) 1999 - 2006 +%%%% by Surapant Meknavin, +%%%% Theppitak Karoonboonyanan (thep at linux.thai.net), +%%%% Chanop Silpa-Anan (chanop at debian.org), +%%%% Poonlap Veerathanabutr (poonlap at linux.thai.net) +%%%% Thai Linux Working Group +%%%% http://linux.thai.net/ +%%%% +\PolyglossiaSetup{thai}{ + script=Thai, + scripttag=thai, + hyphennames={nohyphenation}, + fontsetup=true + %TODO localalph={xxx@alph,xxx@Alph} + %TODO localdigits=thainumber +} + +\newif\if@thai@numerals +\def\tmp@thai{thai} +\define@key{thai}{numerals}[arabic]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@thai\@thai@numeralstrue\else + \@thai@numeralsfalse\fi +} + +\setkeys{thai}{numerals} + +\def\captionsthai{% + \def\refname{หนังสืออ้างอิง}% + \def\abstractname{บทคัดย่อ}% + \def\bibname{บรรณานุกรม}% + \def\prefacename{คำนำ}% + \def\chaptername{บทที่}% + \def\appendixname{ภาคผนวก}% + \def\contentsname{สารบัญ}% + \def\listfigurename{สารบัญรูป}% + \def\listtablename{สารบัญตาราง}% + \def\indexname{ดรรชนี}% + \def\figurename{รูปที่}% + \def\tablename{ตารางที่}% + %\def\thepart{}% + \def\partname{ภาค}% + \def\pagename{หน้า}% + \def\seename{ดู}% + \def\alsoname{ดูเพิ่มเติม}% + \def\enclname{สิ่งที่แนบมาด้วย}% + \def\ccname{สำเนาถึง}% + \def\headtoname{เรียน}% + \def\proofname{พิสูจน์}% + %\def\glossaryname{}% +} +\def\datethai{% + \def\thai@month{% + \ifcase\month\or + มกราคม\or กุมภาพันธ์\or มีนาคม\or เมษายน% + \or พฤษภาคม\or มิถุนายน\or กรกฎาคม\or สิงหาคม% + \or กันยายน\or ตุลาคม\or พฤศจิกายน\or ธันวาคม\fi}% + \newcount\thai@year% + \thai@year=\year% + \advance\thai@year by 543% + \def\today{\thainumber\day \space \thai@month\space พ.ศ.~\thainumber\thai@year}% +} + +%NB: thai-latex had "plus 0.6pt", but .4em appears to give better results +% FIXME to avoid name clashes, rename \wbr to \wordbreak or \thaiworkbreak ? +\def\wbr{\hskip0pt plus .4em\relax} %%OR \char"200B = ZWSP ? Does not work +%\catcode"200b=\active +%\def^^200b{\hskip 0pt plus .4em} + +\def\thaidigits#1{\expandafter\@thai@digits #1@} +\def\@thai@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1๐\else\ifx1#1๑\else\ifx2#1๒\else\ifx3#1๓\else\ifx4#1๔\else\ifx5#1๕\else\ifx6#1๖\else\ifx7#1๗\else\ifx8#1๘\else\ifx9#1๙\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@thai@digits + \fi +} + +\def\thainumber#1{% + \if@thai@numerals + \thaidigits{\number#1}% + %%{\protect\addfontfeature{Mapping=thaidigits}\protect\number#1} + \else + \number#1% + %%{\protect\reset@font\number#1} + \fi} + +\def\@thaialph#1{% + \ifcase#1\or ก\or ข\or ค\or ง\or จ\or ฉ\or ช\or ซ\or ฌ\or ญ\or ฎ\or + ฏ\or ฐ\or ฑ\or ฒ\or ณ\or ด\or ต\or ถ\or ท\or ธ\or น\or บ\or ป\or ผ\or + ฝ\or พ\or ฟ\or ภ\or ม\or ย\or ร\or ล\or ว\or ศ\or ษ\or ส\or ห\or ฬ\or อ\or + ฮ\else\xpg@ill@value{#1}{@thaialph}\fi} +\def\thaiAlph#1{\expandafter\@thaiAlph\csname c@#1\endcsname} +\def\@thaiAlph#1{% + \ifcase#1\or ก\or ข\or ฃ\or ค\or ฅ\or ฆ\or ง\or จ\or ฉ\or ช\or ซ\or + ฌ\or ญ\or ฎ\or ฏ\or ฐ\or ฑ\or ฒ\or ณ\or ด\or ต\or ถ\or ท\or ธ\or น\or + บ\or ป\or ผ\or ฝ\or พ\or ฟ\or ภ\or ม\or ย\or ร\or ฤ\or ล\or ฦ\or ว\or + ศ\or ษ\or ส\or ห\or ฬ\or อ\or ฮ\else\xpg@ill@value{#1}{@thaialph}\fi} + +\def\thai@numbers{% + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% + \if@thai@numerals + \let\@alph\@thaialph% + \let\@Alph\@thaiAlph% + \fi +} +\def\nothai@numbers{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% +} + +\def\thai@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\thainumber% + \renewcommand{\thefootnote}{\protect\thainumber{\c@footnote}}% +} +\def\nothai@globalnumbers{% + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% +} + +\def\blockextras@thai{% +%%TODO \XeTeXlinebreaklocales "th"% uses ICU to find line breaks on the basis of a dictionary lookup-- make this optional? (in case a user might prefer a preprocessor + \let\orig@baselinestrech\baselinestretch% + \renewcommand{\baselinestretch}{1.2}% +} +\def\noblockextras@thai{% +%%TODO \XeTeXlinebreaklocales "en"% + \let\baselinestrech\orig@baselinestretch% +} + +\endinput + +%TODO ? + +%\def\thainum#1{\expandafter\thainumber\csname c@#1\endcsname} +%\def\thaibracenum#1{(\expandafter\thainumber\csname c@#1\endcsname)} +%\def\thaialph#1{\expandafter\@thaialph\csname c@#1\endcsname} + +\@ifclassloaded{book}{% + % redefine page numbering for frontmatter and mainmatter + \def\ps@headnum{\let\@mkboth\@gobbletwo + \def\@oddhead{\reset@font\hfil\thepage\hfil}\let\@oddfoot\@empty + \let\@evenhead\@oddhead\let\@evenfoot\@empty} + \let\@ltxfrontmatter\frontmatter + \renewcommand\frontmatter{\@ltxfrontmatter\pagestyle{headnum}\pagenumbering{thaibracenum}} + \let\@ltxmainmatter\mainmatter + \renewcommand\mainmatter{\@ltxmainmatter\pagestyle{headings}\pagenumbering{thainum}} +}{} + +\@ifclassloaded{book}{% +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@thaialph\c@chapter}} +}{} +\@ifclassloaded{report}{% +\renewcommand\appendix{\par + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\thechapter{\@thaialph\c@chapter}} +}{} +\@ifclassloaded{article}{% +\renewcommand\appendix{\par + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \gdef\thesection{\@thaialph\c@section}} +}{} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf new file mode 100644 index 00000000000..759bc8c08e9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf @@ -0,0 +1,138 @@ +\ProvidesFile{gloss-tibetan.ldf}[polyglossia: module for tibetan] +%% Copyright 2013 Elie Roux +%% Under the CC0 license +%% +%% A good font to make tests is \newfontfamily\tibetanfont{Tibetan Machine Uni} +%% + +\PolyglossiaSetup{tibetan}{ + script=Tibetan, + scripttag=tibt, + hyphennames={nohyphenation}, + fontsetup=true + %TODO localalph={xxx@alph,xxx@Alph} + %TODO localdigits=tibetannumber +} + +\newif\if@tibetan@numerals +\def\tmp@tibetan{tibetan} +\define@key{tibetan}{numerals}[tibetan]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@tibetan\@tibetan@numeralstrue\else + \@tibetan@numeralsfalse\fi +} + +\setkeys{tibetan}{numerals} + +% some are known, but very few +% a few come from "Standardizing Tibetan Terms of Information Technology" +% from the China Tibetology Research Center +\def\captionstibetan{% + %\def\refname{}% + \def\abstractname{གནད་བསྡུས།}% + \def\bibname{དཔེ་ཆའི་ཐོ་གཞུང་།}% or dpe deb kyi re'u mig? + \def\prefacename{དཔེ་དེབ་ཀྱི་གླེང་བརྗོད།}% or gleng brjod 'god pa or ngo sprod? + \def\chaptername{ལེའུ་}% + \def\appendixname{ཞར་བྱུང་།}% + \def\contentsname{དཀར་ཆག།}% + %\def\listfigurename{}% + %\def\listtablename{}% + \def\indexname{གསུལ་བྱང་།}% + \def\figurename{པར་རིས་}% or dpe ris? + \def\tablename{རེའུ་མིག་}% + %\def\thepart{}% + \def\partname{ཆ་ཤས་}% + \def\pagename{ཤོག་}% + %\def\seename{}% + %\def\alsoname{}% + %\def\enclname{}% + \def\ccname{འདྲ་བཤུས་ལེན་མཁན་}% + %\def\headtoname{}% + \def\proofname{བདེན་དཔང་།}% not sure about this one... + \def\glossaryname{མིང་ཚིག་རེའུ་མིག།}% +} +\def\datetibetan{% + \def\tibetan@month{% + \ifcase\month\or + ཟླ་དང་པོ\or ཟླ་གཉིས་པ\or ཟླ་གསུམ་པ% + \or ཟླ་བཞི་པ\or ཟླ་ལྔ་པ\or ཟླ་དྲུག་པ\or ཟླ་བདུན་པ% + \or ཟླ་བརྒྱད་པ\or ཟླ་དགུ་པ\or ཟླ་བཆུ་པ\or ཟླ་བཆུ་གཅིག་པ\or ཟླ་བཆུ་གཉིས་པ\fi}% + \def\tibetan@daynum{% + \ifcase\day\or དང་པོ\or གཉིས་པ\or གསུམ་པ \or བཞི་པ\or ལྔ་པ\or དྲུག་པ\or བདུན་པ\or བརྒྱད་པ\or དགུ་པ\or བཆུ་པ% + \or བཆུ་གཅིག་པ\or བཆུ་གཉིས་པ\or བཆུ་གསུམ་པ\or བཆུ་བཞི་པ\or བཆུ་ལྔ་པ\or བཆུ་དྲུག་པ\or བཆུ་བདུན་པ\or བཆུ་བརྒྱད་པ\or བཆུ་དགུ་པ\or ཉི་ཤུ་པ% + + \or ཉི་ཤུ་རྩ་གཅིག་པ\or ཉི་ཤུ་རྩ་གཉིས་པ\or ཉི་ཤུ་རྩ་གསུམ་པ\or ཉི་ཤུ་རྩ་བཞི་པ\or ཉི་ཤུ་རྩ་ལྔ་པ\or ཉི་ཤུ་རྩ་དྲུག་པ\or ཉི་ཤུ་རྩ་བདུན་པ\or ཉི་ཤུ་རྩ་བརྒྱད་པ\or ཉི་ཤུ་རྩ་དགུ་པ\or སུམ་ཆུ་པ% + \or སུམ་ཆུ་སོ་གཅིག་པ\fi}% + % As we use gregorian calendar, it's better to stick with spyi lo + %\newcount\tibetan@year% + %\tibetan@year=\year% + %\advance\tibetan@year by 127% this is bod rgyal lo, the most common, but there are others... + % I'm not sure the / character is in most tibetan fonts + %\def\today{\tibetannumber\day /\tibetannumber\day /\tibetannumber\year}% + \def\today{\tibetannumber\day །\tibetannumber\month །\tibetannumber\year}% + % this is more litterate, but longer + %\def\today{སྤྱི་ལོ་\tibetannumber\year ་སྤྱི་\tibetan@month{}་ད་རེས་\tibetan@daynum{}།}% +} + +\def\tibetandigits#1{\expandafter\@tibetan@digits #1@} +\def\@tibetan@digits#1{% + \ifx @#1% then terminate + \else + \ifx0#1༠\else\ifx1#1༡\else\ifx2#1༢\else\ifx3#1༣\else\ifx4#1༤\else\ifx5#1༥\else\ifx6#1༦\else\ifx7#1༧\else\ifx8#1༨\else\ifx9#1༩\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi + \expandafter\@tibetan@digits + \fi +} + +\def\tibetannumber#1{% + \if@tibetan@numerals + \tibetandigits{\number#1}% + %%{\protect\addfontfeature{Mapping=tibetandigits}\protect\number#1} + \else + \number#1% + %%{\protect\reset@font\number#1} + \fi} + +\def\@tibetanalph#1{% + \ifcase#1\or ཀ\or ཁ\or ག\or ང\or ཅ\or ཆ\or ཇ\or ཉ\or ཏ\or ཐ\or ད\or ན\or པ\or + ཕ\or བ\or མ\or ཙ\or ཚ\or ཛ\or ཝ\or ཞ\or ཟ\or འ\or ཡ\or ར\or ལ\or ཤ\or ས\or ཧ\or ཨ + \else\xpg@ill@value{#1}{@tibetanalph}\fi} +\def\tibetanAlph#1{\expandafter\@tibetanAlph\csname c@#1\endcsname} +\def\@tibetanAlph#1{% + \ifcase#1\or ཀ\or ཁ\or ག\or ང\or ཅ\or ཆ\or ཇ\or ཉ\or ཏ\or ཐ\or ད\or ན\or པ\or + ཕ\or བ\or མ\or ཙ\or ཚ\or ཛ\or ཝ\or ཞ\or ཟ\or འ\or ཡ\or ར\or ལ\or ཤ\or ས\or ཧ\or ཨ + \else\xpg@ill@value{#1}{@tibetanalph}\fi} + +\def\tibetan@numbers{% + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% + \if@tibetan@numerals + \let\@alph\@tibetanalph% + \let\@Alph\@tibetanAlph% + \fi +} +\def\notibetan@numbers{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% +} + +\def\tibetan@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\tibetannumber% + \renewcommand{\thefootnote}{\protect\tibetannumber{\c@footnote}}% +} +\def\notibetan@globalnumbers{% + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% +} + +% copied from Thai, not tested + +\def\blockextras@tibetan{% + \let\orig@baselinestrech\baselinestretch% + \renewcommand{\baselinestretch}{1.2}% +} +\def\noblockextras@tibetan{% + \let\baselinestrech\orig@baselinestretch% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf new file mode 100644 index 00000000000..6f40cf2cd3d --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf @@ -0,0 +1,82 @@ +\ProvidesFile{gloss-turkish.ldf}[polyglossia: module for turkish] +\RequirePackage{hijrical} +\PolyglossiaSetup{turkish}{ + hyphennames={turkish}, + hyphenmins={2,2}, + langtag=TRK, + frenchspacing=true, + fontsetup=true + } + +\newXeTeXintercharclass\turkish@punctthin % ! : +\newXeTeXintercharclass\turkish@punctthick % = + +\def\turkish@punctthinspace{{\ifdim\lastskip>\z@\unskip\penalty\@M\thinspace\fi}} +\def\turkish@punctthickspace{{\unskip\nobreakspace}} + +\def\turkish@punctuation{% + \XeTeXinterchartokenstate=1% + \XeTeXcharclass `\! \turkish@punctthin + \XeTeXcharclass `\: \turkish@punctthin + \XeTeXcharclass `\= \turkish@punctthick + \XeTeXinterchartoks \z@ \turkish@punctthin = \turkish@punctthinspace + \XeTeXinterchartoks \z@ \turkish@punctthick = \turkish@punctthickspace +} + +\def\noturkish@punctuation{% + \XeTeXcharclass `\! \z@ + \XeTeXcharclass `\: \z@ + \XeTeXcharclass `\= \z@ + \XeTeXinterchartokenstate=0% +} + +\def\captionsturkish{% + \def\prefacename{Önsöz}% + \def\refname{Kaynaklar}% + \def\abstractname{Özet}% + \def\bibname{Kaynakça}% + \def\chaptername{Bölüm}% + \def\appendixname{Ek}% + \def\contentsname{İçindekiler}% + \def\listfigurename{Şekil Listesi}% + \def\listtablename{Tablo Listesi}% + \def\indexname{Dizin}% + \def\figurename{Şekil}% + \def\tablename{Tablo}% + \def\partname{Kısım}% + \def\enclname{İlişik}% + \def\ccname{Diğer Alıcılar}% + \def\headtoname{Alıcı}% + \def\pagename{Sayfa}% + \def\subjectname{İlgili}% + \def\seename{bkz.}% + \def\alsoname{ayrıca bkz.}% + \def\proofname{Kanıt}% + \def\glossaryname{Lügatçe}% + } +\def\dateturkish{% + \def\today{\number\day~\ifcase\month\or + Ocak\or Şubat\or Mart\or Nisan\or Mayıs\or Haziran\or + Temmuz\or Ağustos\or Eylül\or Ekim\or Kasım\or + Aralık\fi + \space\number\year} +} +\def\hijrimonthturkish#1{\ifcase#1% +\or Muharrem\or Safer\or Rebiülevvel\or Rebiülahir\or Cemaziyelevvel\or Cemaziyelahir\or Recep\or Şaban\or Ramazan\or Şevval\or Zilkade\or Zilhicce\fi} +%%\Hijritoday is now locale-aware and will format the date with this macro: +\DefineFormatHijriDate{turkish}{% +\number\value{Hijriday}\space\hijrimonthturkish{\value{Hijrimonth}}\space\number\value{Hijriyear}} + +\def\noextras@turkish{% + \noturkish@punctuation% +} + +\def\blockextras@turkish{% + \turkish@punctuation% +} + +\def\inlineextras@turkish{% + \turkish@punctuation% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-turkmen.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkmen.ldf new file mode 100644 index 00000000000..19b257272aa --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkmen.ldf @@ -0,0 +1,42 @@ +\ProvidesFile{gloss-turkmen.ldf}[polyglossia: module for turkmen] +%% Translations provided by Nazar Annagurban +\PolyglossiaSetup{turkmen}{ + hyphennames={turkmen}, + hyphenmins={2,2}, + langtag=TKM, + frenchspacing=false, + fontsetup=true +} + +\def\captionsturkmen{% + \def\prefacename{Sözbaşy}% + \def\refname{Çeşmeler}% + \def\abstractname{Gysgaça manysy}% + \def\bibname{Çeşmeler}% + \def\chaptername{Bap}% + \def\appendixname{Goşmaça}% + \def\contentsname{Mazmuny}% + \def\listfigurename{Suratlaryň sanawy}% + \def\listtablename{Tablisalaryň sanawy}% + \def\indexname{Indeks}% + \def\figurename{Surat}% + \def\tablename{Tablisa}% + \def\partname{Bölüm}% + \def\enclname{Goşmaça}% + \def\ccname{Iberilenler}% + \def\headtoname{Kime}% + \def\pagename{Sahypa}% + \def\subjectname{Tema}% + \def\seename{ser.}% + \def\alsoname{şuňa-da ser.}% + \def\proofname{Delil}% + \def\glossaryname{Sözlük}% +} +\def\dateturkmen{% + \def\today{\number\day~\ifcase\month\or + Ýanwar\or Fewral\or Mart\or Aprel\or Maý\or Iýun\or + Iýul\or Awgust\or Sentýabr\or Oktýabr\or Noýabr\or + Dekabr\fi + \space\number\year}% +} +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf new file mode 100644 index 00000000000..26d3906ff4e --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf @@ -0,0 +1,101 @@ +\ProvidesFile{gloss-ukrainian.ldf}[polyglossia: module for ukrainian] +% Strings taken from Babel +% and revised by Roman Kyrylych + +\PolyglossiaSetup{ukrainian}{ + script=Cyrillic, + scripttag=cyrl, + langtag=UKR, + hyphennames={ukrainian}, + hyphenmins={2,2}, + frenchspacing=true, + fontsetup=true + %TODO localalph +} + +\def\captionsukrainian{% + \def\refname{Література}% + \def\abstractname{Анотація}% + \def\bibname{Бібліоґрафія}% + \def\prefacename{Вступ}% + \def\chaptername{Розділ}% + \def\appendixname{Додаток}% + \def\contentsname{Зміст}% + \def\listfigurename{Перелік ілюстрацій}% + \def\listtablename{Перелік таблиць}% + \def\indexname{Покажчик}% + \def\authorname{Іменний покажчик}% babel has "Їменний покажчик" + \def\figurename{Рис.}% + \def\tablename{Табл.}% + %\def\thepart{}% + \def\partname{Частина}% + \def\pagename{с.}% + \def\seename{див.}% + \def\alsoname{див.\ також}% + \def\enclname{вкладка}% + \def\ccname{копія}% + \def\headtoname{До}% + \def\proofname{Доведення}% + \def\glossaryname{Словник термінів}% + } +\def\dateukrainian{% + \def\today{\number\day~\ifcase\month\or + січня\or + лютого\or + березня\or + квітня\or + травня\or + червня\or + липня\or + серпня\or + вересня\or + жовтня\or + листопада\or + грудня\fi% + \space\number\year~р.}} + +\def\ukrainian@Alph#1{\ifcase#1\or + А\or Б\or В\or г\or д\or Е\or Є\or Ж\or + З\or И\or І\or Ї\or Й\or К\or Л\or М\or Н\or О\or + П\or Р\or С\or Т\or У\or Ф\or Х\or + Ц\or Ч\or Ш\or Щ\or Ю\or Я\else\xpg@ill@value{#1}{ukrainian@Alph}\fi} +\def\ukrainian@alph#1{\ifcase#1\or + а\or б\or в\or г\or д\or е\or є\or ж\or + з\or и\or і\or ї\or й\or к\or л\or м\or н\or о\or + п\or р\or с\or т\or у\or ф\or х\or + ц\or ч\or ш\or щ\or ю\or я\else\xpg@ill@value{#1}{ukrainian@alph}\fi} + +\def\ukrainian@numbers{% + \let\latin@Alph\@Alph% + \let\latin@alph\@alph% + \let\@Alph\ukrainian@Alph% + \let\@alph\ukrainian@alph% +} + +\def\noukrainian@numbers{% + \let\@Alph\latin@Alph% + \let\@alph\latin@alph% +} + +\endinput + +%TODO? stuff from Babel +\def\sh{\mathop{\operator@font sh}\nolimits} +\def\ch{\mathop{\operator@font ch}\nolimits} +\def\tg{\mathop{\operator@font tg}\nolimits} +\def\arctg{\mathop{\operator@font arctg}\nolimits} +\def\arcctg{\mathop{\operator@font arcctg}\nolimits} +\def\ctg{\mathop{\operator@font ctg}\nolimits} +\def\cth{\mathop{\operator@font cth}\nolimits} +\def\cosec{\mathop{\operator@font cosec}\nolimits} +\def\Prob{\mathop{\kern\z@\mathsf{P}}\nolimits} +\def\Variance{\mathop{\kern\z@\mathsf{D}}\nolimits} +\def\nsd{\mathop{\mathrm{н.х.д.}}\nolimits} +\def\nsk{\mathop{\mathrm{н.х.к.}}\nolimits} +\def\NSD{\mathop{\mathrm{НСД}}\nolimits} +\def\NSK{\mathop{\mathrm{НСК}}\nolimits} +\def\nod{\mathop{\mathrm{н.о.д.}}\nolimits} % ?????? +\def\nok{\mathop{\mathrm{н.о.к.}}\nolimits} % ?????? +\def\NOD{\mathop{\mathrm{НОД}}\nolimits} % ?????? +\def\NOK{\mathop{\mathrm{НОК}}\nolimits} % ?????? +\def\Proj{\mathop{\mathrm{пр}}\nolimits} diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf new file mode 100644 index 00000000000..028f0cdd885 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-urdu.ldf @@ -0,0 +1,138 @@ +%%% Adapted from a file contributed by Kamal Abdali +\ProvidesFile{gloss-urdu.ldf}[polyglossia: module for Urdu] +\RequirePackage{bidi} +\RequirePackage{arabicnumbers} +\RequirePackage{hijrical} + +\PolyglossiaSetup{urdu}{ + script=Arabic, + direction=RL, + scripttag=arab, + langtag=URD, + hyphennames={urdu,nohyphenation}, + fontsetup=true + %TODO localalph={abjad,abjad} + %TODO localnumber=urdunumber +} + +\newif\if@western@numerals +\def\tmp@western{western} +\define@key{urdu}{numerals}[eastern]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@western\@western@numeralstrue% + \else\@western@numeralsfalse% + \fi} + +%% TODO USE boolkey instead !!! +%this is needed for \abjad in arabicnumbers.sty +\def\tmp@true{true} +\define@key{urdu}{abjadjimnotail}[true]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@true\abjad@jim@notailtrue% + \else + \abjad@jim@notailfalse + \fi} + +\newif\if@hijrical +\def\tmp@hijri{hijri} +\define@key{urdu}{calendar}[gregorian]{% + \def\@tmpa{#1}% + \ifx\@tmpa\tmp@hijri\@hijricaltrue% + \else\@hijricalfalse% + \fi} + +\define@key{urdu}{hijricorrection}[0]{% + \gdef\@hijri@correction{#1}}% + +% This should set the defaults +\setkeys{urdu}{calendar,numerals,hijricorrection} + +\def\urdugregmonth#1{\ifcase#1% + \or جنوری\or فروری\or مارچ\or اپریل\or مئی\or جون\or جولائی\or اگست\or ستمبر\or اکتوبر\or نومبر\or دسمبر\fi} + +\def\urduhijrimonth#1{\ifcase#1% + \or محرّم\or صفر\or ربیع الاوّل\or ربیع الثّانی\or جمادی الاوّل\or جمادی الثّانی\or رجب\or شعبان\or رمضان\or شوّال\or ذیقعدہ\or ذی الحجّہ\fi} + +%\Hijritoday is now locale-aware and will format the date with this macro: +\DefineFormatHijriDate{urdu}{\@ensure@RTL{% + \urdunumber{\value{Hijriday}}؍\space\urduhijrimonth{\value{Hijrimonth}}\space\urdunumber{\value{Hijriyear}}}} + +\def\captionsurdu{% + \def\refname{\@ensure@RTL{حوالہ جات}}% + \def\abstractname{\@ensure@RTL{ملخّص}}% + \def\bibname{\@ensure@RTL{کتابیات}}% + \def\prefacename{\@ensure@RTL{دیباچہ}}% + \def\chaptername{\@ensure@RTL{باب}}% + \def\appendixname{\@ensure@RTL{ضمیمہ}}% + \def\contentsname{\@ensure@RTL{فہرست عنوانات}}% + \def\listfigurename{\@ensure@RTL{فہرست اشکال}}% + \def\listtablename{\@ensure@RTL{فہرست جداول}}% + \def\indexname{\@ensure@RTL{اشاریہ}}% + \def\figurename{\@ensure@RTL{شكل}}% + \def\tablename{\@ensure@RTL{جدول}}% + %\def\thepart{}% + \def\partname{\@ensure@RTL{حصّہ}}% + \def\pagename{\@ensure@RTL{صفحہ}}% + \def\seename{\@ensure@RTL{ملاحظہ ہو}}% + \def\alsoname{\@ensure@RTL{ایضاً}}% + \def\enclname{\@ensure@RTL{منسلک}}% + \def\ccname{\@ensure@RTL{نقل}}% + \def\headtoname{\@ensure@RTL{بملاحظہ}}% + \def\proofname{\@ensure@RTL{ثبوت}}% + \def\glossaryname{\@ensure@RTL{لغت}}% + \def\sectionname{\@ensure@RTL{فصل}}% +} + +\def\dateurdu{% + \def\today{% + \if@hijrical + \Hijritoday[\@hijri@correction]% + \else + \@ensure@RTL{\urdunumber\day؍\space\urdugregmonth{\month}% + \space\urdunumber\year}% + \fi}% +} + +\def\urdunumber#1{% + \if@western@numerals + \number#1% + \else + %%FIXME use farsidigits instead??? + \protect\arabicdigits{\number#1}% + \fi} + +\def\urdu@numbers{% + \let\@latinalph\@alph% + \let\@latinAlph\@Alph% + \let\@alph\abjad% + \let\@Alph\abjad% + } + +\def\nourdu@numbers{% + \let\@alph\@latinalph% + \let\@Alph\@latinAlph% + } + +\def\urdu@globalnumbers{% + \let\orig@arabic\@arabic% + \let\@arabic\urdunumber% + % For some reason \thefootnote needs to be set separately: + \renewcommand\thefootnote{\protect\urdunumber{\c@footnote}}% + } + +\def\nourdu@globalnumbers{ + \let\@arabic\orig@arabic% + \renewcommand\thefootnote{\protect\number{\c@footnote}}% + } + +\def\blockextras@urdu{% + \let\@@MakeUppercase\MakeUppercase% + \def\MakeUppercase##1{##1}% + } + +\def\noextras@urdu{% + \let\MakeUppercase\@@MakeUppercase% + } + +\endinput + diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-usorbian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-usorbian.ldf new file mode 100644 index 00000000000..810354ce1d4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-usorbian.ldf @@ -0,0 +1,48 @@ +\ProvidesFile{gloss-usorbian.ldf}[polyglossia: module for upper sorbian] + +\PolyglossiaSetup{usorbian}{ + hyphennames={usorbian,uppersorbian}, + hyphenmins={2,2}, + fontsetup=true, +} + +\def\captionsusorbian{% + \def\refname{Referency}% + \def\abstractname{Abstrakt}% + \def\bibname{Literatura}% + \def\prefacename{Zawod}% + \def\chaptername{Kapitl}% + \def\appendixname{Dodawki}% + \def\contentsname{Wobsah}% + \def\listfigurename{Zapis wobrazow}% + \def\listtablename{Zapis tabulkow}% + \def\indexname{Indeks}% + \def\figurename{Wobraz}% + \def\tablename{Tabulka}% + %\def\thepart{}% + \def\partname{Dźěl}% + \def\pagename{Strona}% + \def\seename{hl.}% + \def\alsoname{hl.~tež}% + \def\enclname{Přłoha}% + \def\ccname{CC}% + \def\headtoname{Komu}% + \def\proofname{Proof}% <-- needs translation + \def\glossaryname{Glossary}% <-- needs translation + }% + +\def\dateusorbian{% + \def\today{\number\day.~\ifcase\month\or + januara\or februara\or měrca\or apryla\or meje\or junija\or + julija\or awgusta\or septembra\or oktobra\or + nowembra\or decembra\fi + \space \number\year}% + %TODO implement option olddate: + \def\oldtoday{\number\day.~\ifcase\month\or + wulkeho róžka\or małeho róžka\or nalětnika\or + jutrownika\or róžownika\or smažnika\or pražnika\or + žnjenca\or požnjenca\or winowca\or nazymnika\or + hodownika\fi \space \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-vietnamese.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-vietnamese.ldf new file mode 100644 index 00000000000..96969508254 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-vietnamese.ldf @@ -0,0 +1,43 @@ +\ProvidesFile{gloss-vietnamese.ldf}[polyglossia: module for vietnamese] +%% Strings contributed by Daniel Owens < dhowens . pmbx . net > + +\PolyglossiaSetup{vietnamese}{ + hyphennames={nohyphenation}, + hyphenmins={2,2}, + langtag=VIT, + frenchspacing=true, + fontsetup=true, +} + +\def\captionsvietnamese{% + \def\refname{Tài liệu}% + \def\abstractname{Tóm tắt nội dung}% + \def\bibname{Tài liệu tham khảo}% + \def\prefacename{Lời nói đầu}% + \def\chaptername{Chương}% + \def\appendixname{Phụ lục}% + \def\contentsname{Mục lục}% + \def\listfigurename{Danh sách hình vẽ}% + \def\listtablename{Danh sách bẳng}% + \def\indexname{Chỉ mục}% + \def\figurename{Hình}% + \def\tablename{Bẳng}% + \def\partname{Phần}% + \def\pagename{Trang}% + \def\seename{Xem}% + \def\alsoname{Xem thêm}% + \def\enclname{Kèm theo}% + \def\ccname{Cùng gửi}% + \def\headtoname{Gửi}% + \def\proofname{Chứng minh}% + \def\glossaryname{Từ điển chú giải}% + } + +\def\datevietnamese{% + \def\today{% + Ngày \number\day\space + tháng \number\month\space + năm \number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf new file mode 100644 index 00000000000..d861308b2c7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-welsh.ldf @@ -0,0 +1,43 @@ +\ProvidesFile{gloss-welsh.ldf}[polyglossia: module for welsh] + +\PolyglossiaSetup{welsh}{ + hyphennames={welsh}, + hyphenmins={2,3}, + fontsetup=true, +} + +\def\captionswelsh{% + \def\refname{Cyfeiriadau}% + \def\abstractname{Crynodeb}% + \def\bibname{Llyfryddiaeth}% + \def\prefacename{Rhagair}% + \def\chaptername{Pennod}% + \def\appendixname{Atodiad}% + \def\contentsname{Cynnwys}% + \def\listfigurename{Rhestr Ddarluniau}% + \def\listtablename{Rhestr Dablau}% + \def\indexname{Mynegai}% + \def\figurename{Darlun}% + \def\tablename{Taflen}% + %\def\thepart{}% + \def\partname{Rhan}% + \def\pagename{tudalen}% + \def\seename{gweler}% + \def\alsoname{gweler hefyd}% + \def\enclname{amgaeëdig}% + \def\ccname{copïau}% + \def\headtoname{At}% + \def\proofname{Prawf}% + \def\glossaryname{Rhestr termau}% + } + +\def\datewelsh{% + \def\today{\ifnum\day=1\relax 1\/\textsuperscript{añ}\else + \number\day\fi\space\ifcase\month\or + Ionawr\or Chwefror\or Mawrth\or Ebrill\or + Mai\or Mehefin\or Gorffennaf\or Awst\or + Medi\or Hydref\or Tachwedd\or Rhagfyr\fi% + \space\number\year}% + } + +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty b/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty new file mode 100644 index 00000000000..c75b2f5faa9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/hebrewcal.sty @@ -0,0 +1,345 @@ +\ProvidesPackage{hebrewcal} + [2012/04/29 v2.5 % + Hebrew calendar for polyglossia (adapted from hebcal.sty in Babel)] +\RequirePackage{xkeyval} +\RequirePackage{bidi} + +\newif\if@xpg@hebrewcal@marcheshvan +\DeclareOption{marcheshvan}{\@xpg@hebrewcal@marcheshvantrue} +\ifx\if@xpg@hebrew@marcheshvan\undefined + \newif\if@xpg@hebrew@marcheshvan + \@xpg@hebrew@marcheshvanfalse +\fi + +%% TODO rewrite this on the basis of Reingold & Dershowitz +%% on the model of hijrical (using calc) + +\@ifundefined{@Remainder}{\input{cal-util.def}}{} + +\define@boolkey{hebrew}[@hebrew@]{fullyear}[false]{} +\setkeys{hebrew}{fullyear} + +\newcount\hebrewday \newcount\hebrewmonth \newcount\hebrewyear +\def\hebrewdate#1#2#3{% + \HebrewFromGregorian{#1}{#2}{#3}% + {\hebrewday}{\hebrewmonth}{\hebrewyear}% + \if@RTL% + \@FormatForHebrew{\hebrewday}{\hebrewmonth}{\hebrewyear}% + \else% + \@FormatForEnglish{\hebrewday}{\hebrewmonth}{\hebrewyear}% + \fi} +\def\hebrewtoday{\hebrewdate{\day}{\month}{\year}} +% The command name is capitalised in the doc, and this is consistent +% with other names such as \Hijritoday and \Jalalitoday. +\let\Hebrewtoday=\hebrewtoday +\def\hebrewsetreg{% + \HebrewFromGregorian{\day}{\month}{\year}% + {\hebrewday}{\hebrewmonth}{\hebrewyear}} +\def\HebrewYearName#1{{% + \@tempcnta=#1\divide\@tempcnta by 1000\multiply\@tempcnta by 1000 + \ifnum#1=\@tempcnta\relax % divisible by 1000: disambiguate + \hebrewnumeral{#1}\ (לפ"ג)% + \else % not divisible by 1000 + \ifnum#1<1000\relax % first millennium: disambiguate + \hebrewnumeral{#1}\ (לפ"ג)% + \else + \ifnum#1<5000 + \hebrewnumeral{#1}% + \else + \ifnum#1<6000 % current millenium, print without thousands + \@tempcnta=#1\relax + \if@hebrew@fullyear\else\advance\@tempcnta by -5000\fi + \hebrewnumeral{\@tempcnta}% + \else % #1>6000 + \hebrewnumeral{#1}% + \fi + \fi + \fi + \fi}} +\def\HebrewMonthName#1#2{% + \ifnum #1 = 7 % + \@CheckLeapHebrewYear{#2}% + \if@HebrewLeap אדר\ ב'% + \else אדר% + \fi% + \else% + \ifcase#1% + % nothing for 0 + \or תשרי% + \or\if@xpg@hebrewcal@marcheshvan מרחשון\else\if@xpg@hebrew@marcheshvan מרחשון\else חשון\fi\fi% + \or כסלו% + \or טבת% + \or שבט% + \or אדר\ א'% + \or אדר\ ב'% + \or ניסן% + \or אייר% + \or סיון% + \or תמוז% + \or אב% + \or אלול% + \fi% + \fi} +\def\@FormatForHebrew#1#2#3{% + \hebrewnumeral{#1}~ב\HebrewMonthName{#2}{#3}~% + \HebrewYearName{#3}} +\def\HebrewMonthNameInEnglish#1#2{% + \ifnum #1 = 7% + \@CheckLeapHebrewYear{#2}% + \if@HebrewLeap Adar II\else Adar\fi% + \else% + \ifcase #1% + % nothing for 0 + \or Tishrei% + % \or\if@xpg@hebrewcal@marcheshvan Marcheshvan\else\if@xpg@hebrew@marcheshvan Marcheshvan\else Heshvan\fi\fi% + \or\if@xpg@hebrewcal@marcheshvan Marcheshvan\else\if@xpg@hebrew@marcheshvan Marcheshvan\else Heshvan\fi\fi% + \or Kislev% + \or Tebeth% + \or Shebat% + \or Adar I% + \or Adar II% + \or Nisan% + \or Iyar% + \or Sivan% + \or Tammuz% + \or Av% + \or Elul% + \fi + \fi} +\def\@FormatForEnglish#1#2#3{% + \HebrewMonthNameInEnglish{#2}{#3} \number#1,\ \number#3} +\newcount\@common +\newif\if@HebrewLeap +\def\@CheckLeapHebrewYear#1{% + {% + \countdef\tmpa = 0% % \tmpa==\count0 + \countdef\tmpb = 1% % \tmpb==\count1 + \tmpa = #1% + \multiply \tmpa by 7% + \advance \tmpa by 1% + \@Remainder{\tmpa}{19}{\tmpb}% + \ifnum \tmpb < 7% % \tmpb = (7*year+1)%19 + \global\@HebrewLeaptrue% + \else% + \global\@HebrewLeapfalse% + \fi}} +\def\@HebrewElapsedMonths#1#2{% + {% + \countdef\tmpa = 0% % \tmpa==\count0 + \countdef\tmpb = 1% % \tmpb==\count1 + \countdef\tmpc = 2% % \tmpc==\count2 + \tmpa = #1% % + \advance \tmpa by -1% % + #2 = \tmpa% % #2 = \tmpa = year-1 + \divide #2 by 19% % Number of complete Meton cycles + \multiply #2 by 235% % #2 = 235*((year-1)/19) + \@Remainder{\tmpa}{19}{\tmpb}% \tmpa = years%19-years this cycle + \tmpc = \tmpb% % + \multiply \tmpb by 12% % + \advance #2 by \tmpb% % add regular months this cycle + \multiply \tmpc by 7% % + \advance \tmpc by 1% % + \divide \tmpc by 19% % \tmpc = (1+7*((year-1)%19))/19 - + \advance #2 by \tmpc% % add leap months + \global\@common = #2}% + #2 = \@common} +\def\@HebrewElapsedDays#1#2{% + {% + \countdef\tmpa = 0% % \tmpa==\count0 + \countdef\tmpb = 1% % \tmpb==\count1 + \countdef\tmpc = 2% % \tmpc==\count2 + \@HebrewElapsedMonths{#1}{#2}% + \tmpa = #2% % + \multiply \tmpa by 13753% % + \advance \tmpa by 5604% % \tmpa=MonthsElapsed*13758 + 5604 + \@Remainder{\tmpa}{25920}{\tmpc}% \tmpc == ConjunctionParts + \divide \tmpa by 25920% + \multiply #2 by 29% + \advance #2 by 1% + \advance #2 by \tmpa% % #2 = 1 + MonthsElapsed*29 + + \@Remainder{#2}{7}{\tmpa}% % \tmpa == DayOfWeek + \ifnum \tmpc < 19440% + \ifnum \tmpc < 9924% + \else% % New moon at 9 h. 204 p. or later + \ifnum \tmpa = 2% % on Tuesday ... + \@CheckLeapHebrewYear{#1}% of a common year + \if@HebrewLeap% + \else% + \advance #2 by 1% + \fi% + \fi% + \fi% + \ifnum \tmpc < 16789% + \else% % New moon at 15 h. 589 p. or later + \ifnum \tmpa = 1% % on Monday ... + \advance #1 by -1% + \@CheckLeapHebrewYear{#1}% at the end of leap year + \if@HebrewLeap% + \advance #2 by 1% + \fi% + \fi% + \fi% + \else% + \advance #2 by 1% % new moon at or after midday + \fi% + \@Remainder{#2}{7}{\tmpa}% % \tmpa == DayOfWeek + \ifnum \tmpa = 0% % if Sunday ... + \advance #2 by 1% + \else% % + \ifnum \tmpa = 3% % Wednesday ... + \advance #2 by 1% + \else% + \ifnum \tmpa = 5% % or Friday + \advance #2 by 1% + \fi% + \fi% + \fi% + \global\@common = #2}% + #2 = \@common} +\def\@DaysInHebrewYear#1#2{% + {% + \countdef\tmpe = 12% % \tmpe==\count12 + \@HebrewElapsedDays{#1}{\tmpe}% + \advance #1 by 1% + \@HebrewElapsedDays{#1}{#2}% + \advance #2 by -\tmpe% + \global\@common = #2}% + #2 = \@common} +\def\@HebrewDaysInPriorMonths#1#2#3{% + {% + \countdef\tmpf= 14% % \tmpf==\count14 + #3 = \ifcase #1% % Days in prior month of regular year + 0 \or% % no month number 0 + 0 \or% % Tishri + 30 \or% % Heshvan + 59 \or% % Kislev + 89 \or% % Tebeth + 118 \or% % Shebat + 148 \or% % Adar I + 148 \or% % Adar II + 177 \or% % Nisan + 207 \or% % Iyar + 236 \or% % Sivan + 266 \or% % Tammuz + 295 \or% % Av + 325 \or% % Elul + 400% % Dummy + \fi% + \@CheckLeapHebrewYear{#2}% + \if@HebrewLeap% % in leap year + \ifnum #1 > 6% % if month after Adar I + \advance #3 by 30% % add 30 days + \fi% + \fi% + \@DaysInHebrewYear{#2}{\tmpf}% + \ifnum #1 > 3% + \ifnum \tmpf = 353% % + \advance #3 by -1% % + \fi% % Short Kislev + \ifnum \tmpf = 383% % + \advance #3 by -1% % + \fi% % + \fi% + \ifnum #1 > 2% + \ifnum \tmpf = 355% % + \advance #3 by 1% % + \fi% % Long Heshvan + \ifnum \tmpf = 385% % + \advance #3 by 1% % + \fi% % + \fi% + \global\@common = #3}% + #3 = \@common} +\def\@FixedFromHebrew#1#2#3#4{% + {% + #4 = #1% + \@HebrewDaysInPriorMonths{#2}{#3}{#1}% + \advance #4 by #1% % Add days in prior months this year + \@HebrewElapsedDays{#3}{#1}% + \advance #4 by #1% % Add days in prior years + \advance #4 by -1373429% % Subtract days before Gregorian + \global\@common = #4}% % 01.01.0001 + #4 = \@common} +\def\@GregorianDaysInPriorMonths#1#2#3{% + {% + #3 = \ifcase #1% + 0 \or% % no month number 0 + 0 \or% + 31 \or% + 59 \or% + 90 \or% + 120 \or% + 151 \or% + 181 \or% + 212 \or% + 243 \or% + 273 \or% + 304 \or% + 334% + \fi% + \@CheckIfGregorianLeap{#2}% + \if@GregorianLeap% + \ifnum #1 > 2% % if month after February + \advance #3 by 1% % add leap day + \fi% + \fi% + \global\@common = #3}% + #3 = \@common} +\def\@GregorianDaysInPriorYears#1#2{% + {% + \countdef\tmpc = 4% % \tmpc==\count4 + \countdef\tmpb = 2% % \tmpb==\count2 + \tmpb = #1% % + \advance \tmpb by -1% % + \tmpc = \tmpb% % \tmpc = \tmpb = year-1 + \multiply \tmpc by 365% % Days in prior years = + #2 = \tmpc% % = 365*(year-1) ... + \tmpc = \tmpb% % + \divide \tmpc by 4% % \tmpc = (year-1)/4 + \advance #2 by \tmpc% % ... plus Julian leap days ... + \tmpc = \tmpb% % + \divide \tmpc by 100% % \tmpc = (year-1)/100 + \advance #2 by -\tmpc% % ... minus century years ... + \tmpc = \tmpb% % + \divide \tmpc by 400% % \tmpc = (year-1)/400 + \advance #2 by \tmpc% % ... plus 4-century years. + \global\@common = #2}% + #2 = \@common} +\def\@AbsoluteFromGregorian#1#2#3#4{% + {% + \countdef\tmpd = 0% % \tmpd==\count0 + #4 = #1% % days so far this month + \@GregorianDaysInPriorMonths{#2}{#3}{\tmpd}% + \advance #4 by \tmpd% % add days in prior months + \@GregorianDaysInPriorYears{#3}{\tmpd}% + \advance #4 by \tmpd% % add days in prior years + \global\@common = #4}% + #4 = \@common} +\def\HebrewFromGregorian#1#2#3#4#5#6{% + {% + \countdef\tmpx= 17% % \tmpx==\count17 + \countdef\tmpy= 18% % \tmpy==\count18 + \countdef\tmpz= 19% % \tmpz==\count19 + #6 = #3% % + \global\advance #6 by 3761% approximation from above + \@AbsoluteFromGregorian{#1}{#2}{#3}{#4}% + \tmpz = 1 \tmpy = 1% + \@FixedFromHebrew{\tmpz}{\tmpy}{#6}{\tmpx}% + \ifnum \tmpx > #4% % + \global\advance #6 by -1% Hyear = Gyear + 3760 + \@FixedFromHebrew{\tmpz}{\tmpy}{#6}{\tmpx}% + \fi% % + \advance #4 by -\tmpx% % Days in this year + \advance #4 by 1% % + #5 = #4% % + \divide #5 by 30% % Approximation for month from below + \loop% % Search for month + \@HebrewDaysInPriorMonths{#5}{#6}{\tmpx}% + \ifnum \tmpx < #4% + \advance #5 by 1% + \tmpy = \tmpx% + \repeat% + \global\advance #5 by -1% + \global\advance #4 by -\tmpy}} +\ProcessOptions* +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/hijrical.sty b/Master/texmf-dist/tex/latex/polyglossia/hijrical.sty new file mode 100644 index 00000000000..79da8d0020b --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/hijrical.sty @@ -0,0 +1,95 @@ +\ProvidesPackage{hijrical} + [2010/07/12 v0.2 % + Islamic calendar] +\RequirePackage{calc} +\RequirePackage{arabicnumbers} +\@ifpackageloaded{bidi}{}{\newif\if@RTL\@RTLfalse} +\@ifpackageloaded{l3calc}{\PackageError{hijrical}{\MessageBreak +Package l3calc is loaded, which replaces the functionality of +calc. Computation of Hijri dates will not work properly with +% FIXME by Arthur: François couldn’t possibly mean ‘l3calc’ on the +% following line :-) Find out if he meant ‘calc’. +l3calc! The latest version of expl3 on CTAN no longer loads +l3calc. Please update expl3! +}{}}{} + +\@ifundefined{@Remainder}{\input{cal-util.def}}{} + +%% The following functions are straightforward implementation +%% of Reingold & Dershowitz, Calendrical Calculations, The Millenium Edition +%% + +\def\@FixedFromHijri#1#2#3#4{% year,month,day,counter +\@ifundefined{c@#4}{\newcounter{#4}}{}% +\setcounter{tmpA}{#2/2}% see errata of Reingold+Dershowitz +%\message{tmpA is \thetmpA}% +\setcounter{tmpB}{(3+11*#1)/30}% +%\message{tmpB is \thetmpB}% +\setcounter{#4}{227014+(#1-1)*354+\value{tmpB}+(29*(#2-1))+\value{tmpA}+#3}% +} + +\newcounter{Hijriday}\newcounter{Hijrimonth}\newcounter{Hijriyear} + +\def\HijriFromGregorian#1#2#3{% year,month,day +\@FixedFromGregorian{#1}{#2}{#3}{RDdate}% +\setcounter{Hijriyear}{(30*(\value{RDdate}-227015)+10646)/10631}% +\@FixedFromHijri{\value{Hijriyear}}{1}{1}{tmpx}% +%\message{tmpx is \thetmpx}% +\setcounter{tmpB}{\value{RDdate}-\value{tmpx}}% +%\message{tmpB is \thetmpB}% +\setcounter{Hijrimonth}{((11*\value{tmpB})+330)/325}% +\@FixedFromHijri{\value{Hijriyear}}{\value{Hijrimonth}}{1}{tmpy}% +%\message{tmpy is \thetmpy}% +\setcounter{Hijriday}{1+\value{RDdate}-\value{tmpy}}% +} + +%\HijriFromGregorian{\year}{\month}{\day}% + +%\def\PlainHijritoday{% +%\theHijriday.\theHijrimonth.\theHijriyear} + +\def\Hijridate#1#2#3{% + \HijriFromGregorian{#1}{#2}{#3}% + \FormatHijriDate} + +% added option \Hijritoday[n] (default 0) for adjusting the date + n days +\@ifundefined{@hijri@correction}{\gdef\@hijri@correction{0}}{} +\newcommand\Hijritoday[1][\@hijri@correction]{% + \@ifundefined{c@adj@day}{\global\newcounter{adj@day}}{}% + \setcounter{adj@day}{\the\day+#1}% + \Hijridate{\year}{\month}{\value{adj@day}}} +%\def\Hijritoday{\Hijridate{\year}{\month}{\day}} +\let\hijritoday=\Hijritoday +%FIXME necessary? +%\def\Hijrisetreg{% +% \HijriFromGregorian{\year}{\month}{\day}} + +\def\HijriMonthTranslit#1{\ifcase#1\or Muḥarram\or Ṣafar\or Rabīʿ I\or Rabīʿ II\or% +Jumādā I\or Jumādā II\or Rajab\or Shaʿbān\or Ramaḍān\or% +Shawwāl\or Dhū ’l-Qaʿda\or Dhū ’l-Ḥijja\fi} + +\def\HijriMonthArabic#1{\ifcase#1\or محرم\or صفر\or ربيع الأول\or ربيع الآخر\or% +جمادى الأولى\or جمادى الآخرة\or رجب\or شعبان\or رمضان\or% +شوال\or ذو القعدة\or ذو الحجة\fi} + +%% This macro is now locale-aware! +\def\FormatHijriDate{% + \@ifundefined{FormatHijriDate@\languagename}% + {\if@RTL\FormatHijriDate@defaultRTL\else\FormatHijriDate@defaultLTR\fi}% + {\csname FormatHijriDate@\languagename\endcsname}} + +\newcommand\DefineFormatHijriDate[2]{% + \@namedef{FormatHijriDate@#1}{#2}} + +% we provide this as a reasonable default. +% Further definitions are in polyglossia’s language definition files. +\DefineFormatHijriDate{defaultRTL}{\@ensure@RTL{% +\arabicdigits{\value{Hijriday}}\space\HijriMonthArabic{\value{Hijrimonth}}\space\arabicdigits{\value{Hijriyear}}}} + +\DefineFormatHijriDate{defaultLTR}{% +\number\value{Hijriday}\space\HijriMonthTranslit{\value{Hijrimonth}}\space\number\value{Hijriyear}} +\endinput + +%TODO +\def\CYearsFromHijri#1{%yields the corr julian or gregorian years +} % e.g. \CYearsFromHijri{425} -> 1033/34 diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua new file mode 100644 index 00000000000..1fc02137cb0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia-frpt.lua @@ -0,0 +1,210 @@ +require('polyglossia') -- just in case... + +local add_to_callback = luatexbase.add_to_callback +local remove_from_callback = luatexbase.remove_from_callback +local priority_in_callback = luatexbase.priority_in_callback + +local next, type = next, type + +local nodes, fonts, node = nodes, fonts, node + +local insert_node_before = node.insert_before +local insert_node_after = node.insert_after +local remove_node = nodes.remove +local end_of_math = node.end_of_math +local has_attribute = node.has_attribute + +-- node types as of April 2013 +local glue_code = 10 +local glue_spec_code= 47 +local glyph_code = 37 +local penalty_code = 12 +local kern_code = 11 + +-- we make a new node, so that we can copy it later on +local penalty_node = node.new(penalty_code) +penalty_node.penalty = 10000 + +local function get_penalty_node() + return node.copy(penalty_node) +end + +-- same for glue node +local glue_node = node.new(glue_code) +glue_node.spec = node.new(glue_spec_code) + +local function get_glue_node(dim) + local n = node.copy(glue_node) + n.spec.width = dim + return n +end + +-- we have here all possible space characters, referenced by their +-- unicode slot number, taken from char-def.lua +local space_chars = {[20]=1, [160]=1, [5760]=1, [6158]=1, [8192]=1, [8193]=1, [8194]=1, [8195]=1, + [8196]=1, [8197]=1, [8198]=1, [8199]=1, [8200]=1, [8201]=1, [8202]=1, [8239]=1, [8287]=1, [12288]=1} + +-- from nodes-tst.lua, adapted +local function somespace(n,all) + if n then + local id = n.id + if id == glue_code then + return (all or (n.spec.width ~= 0)) and glue_code + elseif id == kern_code then + return (all or (n.kern ~= 0)) and kern_code + elseif id == glyph_code then + if space_chars[n.char] then + return true + else + return false + end + end + end + return false +end + +-- idem +local function somepenalty(n,value) + if n then + local id = n.id + if id == penalty_code then + if value then + return n.penalty == value + else + return true + end + end + end + return false +end + +local xpgfrptattr = luatexbase.attributes['xpg@frpt'] + +local left=1 +local right=2 +local byte = unicode.utf8.byte + +-- Now there is a good question: how do we now, in lua, what a \thinspace is? +-- In the LaTeX source (ltspace.dtx) it is defined as: +-- \def\thinspace{\kern .16667em }. I see no way of seeing if it has been +-- overriden or not... So we stick to this value. +local thinspace = 0.16667 +-- thickspace is defined in amsmath.sty as: +-- \renewcommand{\;}{\mspace+\thickmuskip{.2777em}}. Same problem as above, we +-- stick to this fixed value. +local thickspace = 0.2777 -- 5/18 + +local mappings = { + [byte(':')] = {left, thickspace}, --really? + [byte('!')] = {left, thinspace}, + [byte('?')] = {left, thinspace}, + [byte(';')] = {left, thinspace}, + [byte('‼')] = {left, thinspace}, + [byte('⁇')] = {left, thinspace}, + [byte('⁈')] = {left, thinspace}, + [byte('⁉')] = {left, thinspace}, + [byte('»')] = {left, thinspace}, + [byte('>')] = {left, thinspace}, + [byte('«')] = {right, thinspace}, + [byte('‹')] = {right, thinspace}, + } + +local function set_spacings(thinsp, thicksp) + for _, m in pairs(mappings) do + if m[2] == thinspace then + m[2] = thinsp + elseif m[2] == thickspace then + m[2] = thicksp + end + end + thickspace = thicksp + thinspace = thinsp +end + +-- from typo-spa.lua +local function process(head) + local done = false + local start = head + -- head is always begin of par (whatsit), so we have at least two prev nodes + -- penalty followed by glue + while start do + local id = start.id + if id == glyph_code then -- 37 is glyph as of 2013/04 + local attr = has_attribute(start, xpgfrptattr) + if attr and attr > 0 then + local char = start.char + local map = mappings[char] + --node.unset_attribute(start, xpgfrptattr) -- needed? + if map then + local quad = font.fonts[start.font].parameters.quad -- might be optimized + local prev = start.prev + if map[1] == left and prev then + local prevprev = prev.prev + local somespace = somespace(prev,true) + -- TODO: there is a question here: do we override a preceding space or not?... + if somespace then + local somepenalty = somepenalty(prevprev,10000) + if somepenalty then + head = remove_node(head,prev,true) + head = remove_node(head,prevprev,true) + else + head = remove_node(head,prev,true) + end + end + insert_node_before(head,start,get_penalty_node()) + insert_node_before(head,start,get_glue_node(map[2]*quad)) + done = true + end + local next = start.next + if map[1] == right and next then + local nextnext = next.next + + local somepenalty = somepenalty(next,10000) + if somepenalty then + local somespace = somespace(nextnext,true) + if somespace then + head = remove_node(head,next,true) + head = remove_node(head,nextnext,true) + end + else + local somespace = somespace(next,true) + if somespace then + head = remove_node(head,next,true) + end + end + insert_node_after(head,start,get_glue_node(right*quad)) + insert_node_after(head,start,get_penalty_node()) + done = true + end + end + end + elseif id == math_code then + -- warning: this is a feature of luatex > 0.76 + start = end_of_math(start) -- weird, can return nil .. no math end? + end + if start then + start = start.next + end + end + return head, done +end + +local callback_name = "pre_linebreak_filter" + +local function activate() + if not priority_in_callback (callback_name, "xpg-frpt.process") then + add_to_callback(callback_name, process, "xpg-frpt.process", 1) + end +end + +local function desactivate() + if priority_in_callback (callback_name, "xpg-frpt.process") then + remove_from_callback(callback_name, "xpg-frpt.process") + end +end + +polyglossia.activate_frpt = activate +polyglossia.desactivate_frpt = desactivate +polyglossia.set_spacings = set_spacings +polyglossia.thinspace = thinspace +polyglossia.thickspace = thickpace diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.lua b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.lua new file mode 100644 index 00000000000..96f2341519a --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.lua @@ -0,0 +1,77 @@ +require('luatex-hyphen') + +local luatexhyphen = luatexhyphen +local byte = unicode.utf8.byte + +local polyglossia_module = { + name = "polyglossia", + version = 1.3, + date = "2013/05/11", + description = "Polyglossia", + author = "Elie Roux", + copyright = "Elie Roux", + license = "CC0" +} + +local error, warning, info, log = + luatexbase.provides_module(polyglossia_module) + +polyglossia = polyglossia or {} +local polyglossia = polyglossia + +local current_language +local default_language + +local function loadlang(lang, id) + if luatexhyphen.lookupname(lang) then + luatexhyphen.loadlanguage(lang, id) + end +end + +local function select_language(lang, id) + loadlang(lang, id) + polyglossia.current_language = lang +end + +local function set_default_language(lang, id) + polyglossia.default_language = lang +end + +local check_char + +if luaotfload and luaotfload.aux and luaotfload.aux.font_has_glyph then + local font_has_glyph = luaotfload.aux.font_has_glyph + function check_char(chr) + local codepoint = tonumber(chr) + if not codepoint then codepoint = byte(chr) end + if font_has_glyph(font.current(), codepoint) then + tex.sprint('1') + else + tex.sprint('0') + end + end +else + local ids = fonts.identifiers or fonts.ids or fonts.hashes.identifiers + function check_char(chr) -- always in current font + local otfdata = ids[font.current()].characters + local codepoint = tonumber(chr) + if not codepoint then codepoint = byte(chr) end + if otfdata and otfdata[codepoint] then + tex.print('1') + else + tex.print('0') + end + end +end + +local function load_frpt() + require('polyglossia-frpt') +end + +polyglossia.loadlang = loadlang +polyglossia.select_language = select_language +polyglossia.set_default_language = set_default_language +polyglossia.current_language = current_language -- doesn't seem to be working well :-( +polyglossia.default_language = default_language +polyglossia.check_char = check_char +polyglossia.load_frpt = load_frpt diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty new file mode 100644 index 00000000000..08ba373330f --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty @@ -0,0 +1,793 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{polyglossia}[2012/08/06 v1.30MM + Babel replacement for XeLaTeX and LuaTeX] +\RequirePackage{etoolbox} +\RequirePackage{makecmds} +\RequirePackage{xkeyval}[2008/08/13] +% Will raise error if used with anything else than XeTeX or LuaTeX +\RequirePackage{fontspec}[2010/06/08]% v2.0 +% Ironically, ifluatex.sty is included by some other package if we run +% LuaTeX, but it's not if we run XeTeX, and we need it to know which of +% the two engines it is! Hence we include it here. +\RequirePackage{ifluatex} +% fontspec now uses LaTeX3 packages such as expl3, so we need this: +\ExplSyntaxOn + +%% This is for compatibility with Babel-aware package: +\cslet{ver@babel.sty}{\@empty} % this "fakes" babel +\def\languageshorthands#1{\relax} %this is for scrlttr2 class +\AtEndPreamble{\let\bbl@set@language\xpg@set@language} %for biblatex +\AtEndPreamble{\let\bbl@main@language\xpg@main@language} %for biblatex + +\ifluatex + \RequirePackage{luatexbase} % already included by fontspec, but needed here + \RequireLuaModule{polyglossia} +\fi + +%% for \docvslist (etoolbox) +\providecommand*{\do}[1]{}% + +%% custom message macros +\providecommand*{\xpg@error}[1]{% + \PackageError{polyglossia}{#1}{}% +} + +\providecommand*{\xpg@warning}[1]{% + \PackageWarning{polyglossia}{#1}% +} + +\providecommand*{\xpg@info}[1]{% + \PackageInfo{polyglossia}% + {#1\@gobble}% +} %% the \@gobble is to prevent displaying the line nr + +%TODO change all instances of \xpg@nopatterns in gloss-*.ldf files +\providecommand*{\xpg@nopatterns@fallback}[2][nohyphenation]{% + \xpg@warning{No~ hyphenation~ patterns~ were~ loaded~ for~ `#2'\MessageBreak + I~ will~ use~ \string\language=\string\l@ #1\space instead}% + \expandafter\adddialect\csname l@#2\expandafter\endcsname\csname l@#1\endcsname\relax} + +\providecommand*{\xpg@nopatterns}[1]{% + \xpg@warning{No~ hyphenation~ patterns~ were~ loaded~ for~ `#1'\MessageBreak + I~ will~ use~ \string\language=\string\l@nohyphenation\space instead}% + %%TODO? \expandafter\adddialect\csname l@#1\endcsname\l@nohyphenation\relax + } + +\def\xpg@ill@value#1#2{% + \xpg@warning{Illegal~ value~ (#1)~ for~ #2}} + +%% use macro if defined, else warn that it is not +\def\csuse@warn#1{% + \ifcsundef{#1}{\xpg@warning{ \expandafter\string\csname #1\endcsname\space is~ not~ defined}}% + {\csname #1\endcsname}} + +%% ensure directionality if bidi is loaded, else ignore +\def\@@ensure@dir#1{\ifcsundef{@ensure@dir}{#1}{\@ensure@dir{#1}}} +\def\@@ensure@maindir#1{\ifcsundef{@ensure@maindir}{#1}{\@ensure@maindir{#1}}} + +%% compatibility with babel +\let\addto\gappto% gappto is defined in etoolbox + +%% == Utility macros == +%% They are needed because \MakeUppercase and \MakeLowercase are protected, +%% but we need to change case while defining csnames when setting up fonts for +%% non-Latin scripts. For instance with "Script=Arabic" we need to lowercase +%% "Arabic" to create \arabicfont. +\def\xpg@uppercasefirst#1{\expandafter\xpg@@uppercasefirst #1} +\def\xpg@@uppercasefirst#1{% + \if a#1A\else + \if b#1B\else + \if c#1C\else + \if d#1D\else + \if e#1E\else + \if f#1F\else + \if g#1G\else + \if h#1H\else + \if i#1I\else + \if j#1J\else + \if k#1K\else + \if l#1L\else + \if m#1M\else + \if n#1N\else + \if o#1O\else + \if p#1P\else + \if q#1Q\else + \if r#1R\else + \if s#1S\else + \if t#1T\else + \if u#1U\else + \if v#1V\else + \if w#1W\else + \if x#1X\else + \if y#1Y\else + \if z#1Z\else + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi +} + +\def\xpg@lowercasefirst#1{\expandafter\xpg@@lowercasefirst #1} +\def\xpg@@lowercasefirst#1{% + \if A#1a\else + \if B#1b\else + \if C#1c\else + \if D#1d\else + \if E#1e\else + \if F#1f\else + \if G#1g\else + \if H#1h\else + \if I#1i\else + \if J#1j\else + \if K#1k\else + \if L#1l\else + \if M#1m\else + \if N#1n\else + \if O#1o\else + \if P#1p\else + \if Q#1q\else + \if R#1r\else + \if S#1s\else + \if T#1t\else + \if U#1u\else + \if V#1v\else + \if W#1w\else + \if X#1x\else + \if Y#1y\else + \if Z#1z\else + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi +} + +%% NEW EXPERIMENTAL SETUP INTERFACE FOR GLOSS FILES +%% options currently available: +%% language : the name of the language (as understood by fontspec) +%% hyphennames : the different hyphenation patterns to try (comma separated list) +%%% TODO: what if a language has no hyphenation possible? ex: tibetan +%%% TODO: if pattern is prefixed by !, then it should be loaded as a fallback, with \xpg@nopatterns@fallback - i.e. with a warning: e.g. sanskrit for hindi, or catalan for asturian. +%% script : the name of the script (as understood by fontspec) – default is Latin +%% direction : the direction of the script: LR or RL +%% scripttag : the OpenType tag for the script +%% langtag : the OpenType tag for the language +%% hyphenmins : the hyphenmins for this language (comma-sep list of two integers) +%% frenchspacing : boolean +%% indentfirst : boolean +%% fontsetup : boolean +%% TODO: nouppercase : boolean (for scripts like Arabic, Devanagari, etc which have no concept of uppercase/lowercase) +%% TODO: localalph = {,} +%% TODO: localnumber = +%% or even better localdigits = {0123456789} for fully automatic setup + +\newcommand*\PolyglossiaSetup[2]{% + %define booleans etoolbox style and set defaults + %% TODO ? \providetoggle{#1@setup@done}% + \providetoggle{#1@RL}% + \providetoggle{#1@latin}\toggletrue{#1@latin}% + \providetoggle{#1@scriptlangequal}% whether lang and script names are same: e.g. Hebrew, Arabic + \providebool{#1@fontsetup}% + \providebool{#1@indentfirst}% + \providebool{#1@frenchspacing}% + % we initialize these so that we can use \gappto below + \csgdef{init@extras@#1}{}% + \csgdef{init@noextras@#1}{}% we don't use this yet: remove? + \csgdef{xpg@langname@#1}{\xpg@uppercasefirst{#1}}% + %needed for docvslist with hyphennames key: + \renewcommand*{\do}[1]{% + \ifcsdef{l@#1}{}{% + \ifstrequal{#1}{##1}{}% + {\ifcsdef{l@##1}% + {\csletcs{l@#1}{l@##1}\xpg@set@language@luatex@ii{##1}\listbreak}% + {}% + }% + }% + }% + %define all keys: + \xpg@define@keys{#1}% + \setkeys[xpg@setup]{#1}{#2}% + % here we do the fontsetup: + \ifbool{#1@fontsetup}% + {\xpg@fontsetup@auto{#1}}% + {\xpg@info{Skipping~ automatic~ font~ setup~ for~ language~ #1}}% + %% TODO? \toggletrue{#1@setup@done}% + % reinit \do + \renewcommand*{\do}[1]{\setotherlanguage{##1}}% +} + +\def\xpg@first#1,#2{#1} +\def\xpg@second#1,#2{#2} + +\def\xpg@define@keys#1{% + \define@key[xpg@setup]{#1}{script}{% + \ifstrequal{##1}{Latin}% + {\toggletrue{#1@latin}}% + {\togglefalse{#1@latin}}% + \csgdef{xpg@scriptname@#1}{##1}% + \csgdef{xpg@scriptname@#1@lc}{\xpg@lowercasefirst{##1}}}% + \define@key[xpg@setup]{#1}{scripttag}{% + \csgdef{xpg@scripttag@#1}{##1}}% + \define@key[xpg@setup]{#1}{language}{% + \csgdef{xpg@langname@#1}{##1}}% + \define@key[xpg@setup]{#1}{langtag}{% + \csgdef{xpg@langtag@#1}{##1}}% + \define@key[xpg@setup]{#1}{hyphennames}[{#1}]{% + \docsvlist{##1}% + % \expandafter\show\csname l@##1\endcsname + % \expandafter\show\csname l@#1\endcsname + % if l@#1 does not yet exist, + % we assign it to nohyphenation + % we do this here in case the hyphennames key was omitted + \ifcsundef{l@#1}% + {\xpg@nopatterns{\csname xpg@langname@#1\endcsname}% + \expandafter\adddialect\csname l@#1\endcsname\l@nohyphenation\relax}{}% + \csdef{#1@language}{\language=\csname l@#1\endcsname}% + }% + \define@choicekey+[xpg@setup]{#1}{direction}[\val\nr]{LR,RL}[LR]% + {\ifcase\nr\relax + \togglefalse{#1@RL}% + \or + \toggletrue{#1@RL}% + \ifcsundef{RTL}{\RequirePackage{bidi}}{}% + \fi}% + {\xpg@warning{#1: Invalid value \val\space for key "direction"}}% + \define@key[xpg@setup]{#1}{hyphenmins}[{2,3}]% + {\begingroup\edef\x{\endgroup + \noexpand\setlocalhyphenmins{#1}{\xpg@first##1}{\xpg@second##1}}\x} + \define@boolkey[xpg@setup]{#1}[#1@]{frenchspacing}[true]{% + \ifbool{#1@frenchspacing}% + {\csgappto{init@extras@#1}{\frenchspacing}}% + {\csgappto{init@extras@#1}{\nonfrenchspacing}}}% + \define@boolkey[xpg@setup]{#1}[#1@]{indentfirst}[true]{% + \ifbool{#1@indentfirst}% + {\csgappto{init@extras@#1}{\french@indent}}% + {\csgappto{init@extras@#1}{\nofrench@indent}}}% +% \define@choicekey*+[xpg@setup]{#1}{fontsetup}[\val\nr]{none,custom,auto}[none]% +% %{\csgdef{#1@fontsetup}{\val}}% +% {\xpg@fontsetup{\val}{#1}}% +% {\xpg@warning{Invalid value \val\space for key "fontsetup" in module "#1"}}% + \define@boolkey[xpg@setup]{#1}[#1@]{fontsetup}[true]{}% + %TODO assign csnames corr. to localized alph and Alph + % \define@key[xpg@setup]{#1}{localalph}[{#1@alph,#1@Alph}]{% + % \cslet{xpg@localalph@#1}{\expandafter\csname\xpg@first##1\endcsname}% + % \cslet{xpg@localAlph@#1}{\expandafter\csname\xpg@second##1\endcsname}% + %}% + %TODO same thing with localdigits +} + +%\def\xpg@fontsetup#1{\xpg@csifdef@warn{xpg@fontsetup@#1}} +%\def\xpg@fontsetup@none#1{\csgdef{#1@font}{\ifcsdef{#1font}{\csname #1font\endcsname}{}}} %<-- simplistic +%\def\xpg@fontsetup@custom#1{\csuse{#1@font}} + +\def\xpg@fontsetup@auto#1{\iftoggle{#1@latin}% + {\xpg@fontsetup@latin{#1}}% + {\xpg@fontsetup@nonlatin{#1}}% +} + +\def\xpg@addfontfeature@lang#1#2{% #1 is langtag, #2 is langname + % Turkish is a special case: tag can be TRK or TUR + \edef\tmp@Turkish{Turkish}% + \edef\tmp@@langname{#2}% + % \ifstrequal{#2}{Turkish}% + \ifx\tmp@@langname\tmp@Turkish + \fontspec_if_language:nTF {TRK}% + {\addfontfeature{Language=Turkish}}% + {\fontspec_if_language:nTF {TUR}% + {\addfontfeature{Language=Turkish}}% + {}}% + % else not Turkish + \else + \edef\tmp@@langparam{Language=#2}% + \expandafter\expandafter\expandafter\fontspec_if_language:nTF \expandafter{#1}% + {\expandafter\expandafter\expandafter\addfontfeature\expandafter{\tmp@@langparam}}% + {}% + \fi +} + +\def\xpg@addfontfeature@script#1#2{% #1 is scripttag, #2 is scriptname + \edef\tmp@@scriptparam{Script=#2}% + \expandafter\expandafter\expandafter\fontspec_if_script:nTF \expandafter{#1}% + {\expandafter\expandafter\expandafter\addfontfeature\expandafter{\tmp@@scriptparam}}% + {\xpg@error{The~ current~ roman~ font~ does~ not~ contain\MessageBreak + the~ \expandafter\noexpand#2 ~ script!\MessageBreak + Please~ define~ \expandafter\string\csname \xpg@lowercasefirst{#2}font\endcsname\space with~ \string\newfontfamily}}% +} + +\def\xpg@fontsetup@latin#1{% + \begingroup + \csgdef{#1@font@rm}{% + \ifcsdef{#1font}{\csname #1font\endcsname}% + {\edef\tmp@langtag{\csuse{xpg@langtag@#1}}% + \edef\tmp@langname{\csuse{xpg@langname@#1}}% + \rmfamilylatin% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}% + }}}% + \csgdef{#1@font@sf}{% + \ifcsdef{#1fontsf}{\csname #1fontsf\endcsname}% + {\edef\tmp@langtag{\csuse{xpg@langtag@#1}}% + \edef\tmp@langname{\csuse{xpg@langname@#1}}% + \sffamilylatin% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}% + }}}% + \csgdef{#1@font@tt}{% + \ifcsdef{#1fonttt}{\csname #1fonttt\endcsname}% + {\edef\tmp@langtag{\csuse{xpg@langtag@#1}}% + \edef\tmp@langname{\csuse{xpg@langname@#1}}% + \ttfamilylatin% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}% + }}}% + \endgroup +} + +\def\xpg@fontsetup@nonlatin#1{% + \begingroup + \edef\tmp@langname@lc{#1}% eg ukrainian + \edef\tmp@scriptname@lc{\csuse{xpg@scriptname@#1@lc}}% eg cyrillic + \ifx\tmp@scriptname@lc\tmp@langname@lc + \toggletrue{#1@scriptlangequal}% + \else + \togglefalse{#1@scriptlangequal}% + \fi + \csgdef{#1@font@rm}{% + \ifcsdef{#1font}% + {\@nameuse{#1font}}% + {\edef\tmp@scripttag{\csuse{xpg@scripttag@#1}}% eg cyrl + \edef\tmp@scriptname{\csuse{xpg@scriptname@#1}}% eg Cyrillic + \edef\tmp@langtag{\csuse{xpg@langtag@#1}}% eg UKR + \edef\tmp@langname{\csuse{xpg@langname@#1}}% eg Ukrainian + \providetoggle{#1@use@script@font}% + \iftoggle{#1@scriptlangequal}% + {\rmfamilylatin}% + {\expandafter\ifcsname\csuse{xpg@scriptname@#1@lc} font\endcsname% eg \cyrillicfont + \toggletrue{#1@use@script@font}% + \expandafter\csname\csuse{xpg@scriptname@#1@lc} font\endcsname + \else + \rmfamilylatin + \fi} + \iftoggle{#1@use@script@font}{}{% + \ifcsvoid{xpg@scripttag@#1}{}{% + \ifcsvoid{xpg@scriptname@#1}{}{% + \xpg@addfontfeature@script{\tmp@scripttag}{\tmp@scriptname}}}}% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}}% + }}% + \csgdef{#1@font@sf}{% + \ifcsdef{#1fontsf}% + {\@nameuse{#1fontsf}}% + {\edef\tmp@scripttag{\csuse{xpg@scripttag@#1}}% eg cyrl + \edef\tmp@scriptname{\csuse{xpg@scriptname@#1}}% eg Cyrillic + \edef\tmp@langtag{\csuse{xpg@langtag@#1}}% eg UKR + \edef\tmp@langname{\csuse{xpg@langname@#1}}% eg Ukrainian + \providetoggle{#1@use@script@fontsf}% + \iftoggle{#1@scriptlangequal}% + {\sffamilylatin}% + {\expandafter\ifcsname\csuse{xpg@scriptname@#1@lc} fontsf\endcsname% eg \cyrillicfontsf + \toggletrue{#1@use@script@fontsf}% + \expandafter\csname\csuse{xpg@scriptname@#1@lc} fontsf\endcsname + \else + \sffamilylatin + \fi} + \iftoggle{#1@use@script@fontsf}{}{% + \ifcsvoid{xpg@scripttag@#1}{}{% + \ifcsvoid{xpg@scriptname@#1}{}{% + \xpg@addfontfeature@script{\tmp@scripttag}{\tmp@scriptname}}}}% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}}% + }}% + \csgdef{#1@font@tt}{% + \ifcsdef{#1fonttt}% + {\@nameuse{#1fonttt}}% + {\edef\tmp@scripttag{\csuse{xpg@scripttag@#1}}% eg cyrl + \edef\tmp@scriptname{\csuse{xpg@scriptname@#1}}% eg Cyrillic + \edef\tmp@langtag{\csuse{xpg@langtag@#1}}% eg UKR + \edef\tmp@langname{\csuse{xpg@langname@#1}}% eg Ukrainian + \providetoggle{#1@use@script@fonttt}% + \iftoggle{#1@scriptlangequal}% + {\ttfamilylatin}% + {\expandafter\ifcsname\csuse{xpg@scriptname@#1@lc} fonttt\endcsname% eg \cyrillicfonttt + \toggletrue{#1@use@script@fonttt}% + \expandafter\csname\csuse{xpg@scriptname@#1@lc} fonttt\endcsname + \else + \ttfamilylatin + \fi} + \iftoggle{#1@use@script@fonttt}{}{% + \ifcsvoid{xpg@scripttag@#1}{}{% + \ifcsvoid{xpg@scriptname@#1}{}{% + \xpg@addfontfeature@script{\tmp@scripttag}{\tmp@scriptname}}}}% + \ifcsvoid{xpg@langtag@#1}{}{% + \ifcsvoid{xpg@langname@#1}{}{% + \xpg@addfontfeature@lang{\tmp@langtag}{\tmp@langname}}}% + }}% + \endgroup +} + +%%% END OF PolyglossiaSetup + +%% ensure localization of \markright and \markboth commands +%%% THIS IS NOW DISABLED BY DEFAULT +\define@boolkey{polyglossia}[xpg@]{localmarks}[false]{% + \ifbool{xpg@localmarks}{% + \xpg@info{Option:~ localmarks}% + \def\local@marks##1{% + \def\markboth####1####2{% + \begingroup + \let\label\relax \let\index\relax \let\glossary\relax + \unrestored@protected@xdef\@themark + {{\foreignlanguage{##1}{% + \protect\@@ensure@maindir{####1}}}% + {\foreignlanguage{##1}{% + \protect\@@ensure@maindir{####2}}}}% + \@temptokena \expandafter{\@themark}% + \mark{\the\@temptokena}% + \endgroup + \if@nobreak\ifvmode\nobreak\fi\fi}% + \def\markright####1{% + \begingroup + \let\label\relax \let\index\relax \let\glossary\relax + \expandafter\@markright\@themark + {\foreignlanguage{##1}{\protect\@@ensure@maindir{####1}}}% + \@temptokena \expandafter{\@themark}% + \mark{\the\@temptokena}% + \endgroup + \if@nobreak\ifvmode\nobreak\fi\fi}% + \def\@markright####1####2####3{\@temptokena{\protect\@@ensure@maindir{####1}}% + \unrestored@protected@xdef\@themark{{\the\@temptokena}% + {\protect\@@ensure@maindir{####3}}}}}% + }{% else + \def\local@marks##1{}% + }% +} +\setkeys{polyglossia}{localmarks=false} + +% Easy way out – Arthur, 2012-08-01 +\ifcsdef{newXeTeXintercharclass}{% +% to reset the intercharclass of a character to "normal" +\newXeTeXintercharclass\xpg@normalclass %TODO +}{} + +%% when no patterns are available, we use \l@nohyphenation, assigned to 255 +%% (suggestion by Enrico Gregorio) +\@ifundefined{l@nohyphenation}{\chardef\l@nohyphenation=255 }{} + +%we call this macro when a gloss file is not found for a given language +\def\xpg@nogloss#1{% + \xpg@warning{File~ gloss-#1.ldf~ does~ not~ exist!^^J + I~ will~ nevertheless~ try~ to~ use~ hyphenation~ patterns~ for~ #1.}% + \PolyglossiaSetup{#1}{hyphenmins,hyphennames={#1},fontsetup=true}% + % the above amounts to: + %\ifcsundef{l@#1}% + % {\expandafter\adddialect\csname l@#1\endcsname\l@nohyphenation\relax}% + % {\setlocalhyphenmins{#1}{2}{3}}% + %\csdef{#1@language}{\language=\csname l@#1\endcsname}% +} + +\newcommand{\xpg@input}[1]{% + \chardef\xpg@atcatcode\catcode`\@ + \makeatletter + \input{#1}\catcode`\@=\xpg@atcatcode} + +\newcommand{\setdefaultlanguage}[2][]{% + \IfFileExists{gloss-#2.ldf}% + {\ifcsundef{#2@loaded}% + {\xpg@input{gloss-#2.ldf}% + \xpg@info{Default~ language~ is~ #2}% + \def\languagename{#2}% + \ifluatex % + \directlua{polyglossia.set_default_language('\luatexluaescapestring{\string#2}')}% + \fi % + % This is needed because \arabic is a built-in LaTeX command: + % so now we have \begin{Arabic}... instead of \begin{arabic}... + \ifstrequal{#2}{arabic}% + {\newenvironment{Arabic}[1][]{\begin{otherlanguage}[####1]{arabic}}% + {\end{otherlanguage}}}% + {\newenvironment{#2}[1][]{\begin{otherlanguage}[####1]{#2}}% + {\end{otherlanguage}}}% + \expandafter\newcommand\csname text#2\endcsname[2][]{% + \ifcsdef{RTL}% + {\iftoggle{#2@RL}% + {\@ensure@RTL{\foreignlanguage[####1]{#2}{####2}}}% + {\@ensure@LTR{\foreignlanguage[####1]{#2}{####2}}}% + }% else bidi not loaded + {\iftoggle{#2@RL}% + {\xpg@error{Language~ #2~ is~ right-to-left,~ but~ bidi~ package~ was~ not~ loaded!}}% + {\foreignlanguage[####1]{#2}{####2}}% + }% + }% + \csletcs{local#2}{text#2}% + \csgdef{#2@loaded}{}% + \gdef\xpg@main@language{#2}% + }% + {\xpg@warning{gloss-#2.ldf~ is~ already~ loaded!}}%: + %% The following settings are for the default language and script: + \iftoggle{#2@RL}{\@RTLmaintrue}{}% this tells bidi.sty that the document is RTL + \AtBeginDocument{% + \selectlanguage[#1]{#2}% + \selectbackgroundlanguage{#2}}% + }% + %ELSE + {\xpg@nogloss{#2}}% +} + +\let\setmainlanguage=\setdefaultlanguage + +\newcommand{\resetdefaultlanguage}[2][]{% + \ifcsundef{#2@loaded}{% + \xpg@error{gloss-#2.ldf~ is~ not~ loaded!}}% + {\csuse{no\xpg@main@language @globalnumbers}% disable globalnumbers of previously defined default language + \csuse{noextras@\xpg@main@language}% + \csuse{init@noextras@\xpg@main@language}% + \def\languagename{#2}% + \iftoggle{#2@RL}{\@rlmaintrue\@rl@footnotetrue}{}% + \selectlanguage[#1]{#2}% + \selectbackgroundlanguage{#2}}} + +\expandafter\ifx\familydefault\sfdefault + \def\familytype{sf} +\else\expandafter\ifx\familydefault\ttdefault + \def\familytype{tt} +\else + \def\familytype{rm} +\fi\fi +% This robustifies the redefinitions of \family (suggestion by Enrico Gregorio) +% e.g. to prevent expansion of the \familytype redefinition in auxiliary files +\csgappto{rmfamily }{\def\familytype{rm}} +\csgappto{sffamily }{\def\familytype{sf}} +\csgappto{ttfamily }{\def\familytype{tt}} +% This saves the normalfont for the latin script since we may change normalfont in other scripts +\let\normalfontlatin=\normalfont% +\let\rmfamilylatin=\rmfamily% +\let\sffamilylatin=\sffamily% +\let\ttfamilylatin=\ttfamily% + +\def\resetfontlatin{% + \let\rmfamily=\rmfamilylatin% + \let\sffamily=\sffamilylatin% + \let\ttfamily=\ttfamilylatin% + \let\normalfont=\normalfontlatin} + +\def\selectfontfamilylatin{% + \def\tmp@tt{tt}\def\tmp@sf{sf}% + \ifx\familytype\tmp@tt% + \ttfamilylatin% + \else\ifx\familytype\tmp@sf% + \sffamilylatin% + \else\rmfamilylatin\fi\fi} + +\def\xpg@select@fontfamily#1{% + \def\tmp@tt{tt}\def\tmp@sf{sf}% + \ifx\familytype\tmp@tt + \csuse@warn{#1@font@tt}% + \else\ifx\familytype\tmp@sf + \csuse@warn{#1@font@sf}% + \else\csuse@warn{#1@font@rm}\fi\fi} + +\def\xpg@set@normalfont#1{% + \letcs{\rmfamily}{#1@font@rm}% + \letcs{\sffamily}{#1@font@sf}% + \letcs{\ttfamily}{#1@font@tt}% + \gdef\normalfont{\protect\xpg@select@fontfamily{#1}}% + \gdef\reset@font{\protect\normalfont}% +} + +\let\@@fterindentfalse\@afterindentfalse +\def\french@indent{\let\@afterindentfalse\@afterindenttrue + \@afterindenttrue} +\def\nofrench@indent{\let\@afterindentfalse\@@fterindentfalse + \@afterindentfalse} + +\newcommand{\selectbackgroundlanguage}[1]{% + \iftoggle{#1@latin}{}{\xpg@set@normalfont{#1}}% + \csuse{#1@globalnumbers}% + } + +\newcommand{\setotherlanguage}[2][]{% + \IfFileExists{gloss-#2.ldf}% + {\ifcsundef{#2@loaded}% + {\xpg@input{gloss-#2.ldf}% + \setkeys{#2}{#1}% + \edef\@tmpa{arabic}% + \edef\@tmpb{#2}% + \ifx\@tmpb\@tmpa% + \newenvironment{Arabic}[1][]{\begin{otherlanguage}[####1]{arabic}}% + {\end{otherlanguage}}% + \else + \newenvironment{#2}[1][]{\begin{otherlanguage}[####1]{#2}}% + {\end{otherlanguage}}% + \fi + \expandafter\newcommand\csname text#2\endcsname[2][]{% + \ifcsdef{RTL}% + {\iftoggle{#2@RL}% + {\@ensure@RTL{\foreignlanguage[####1]{#2}{####2}}}% + {\@ensure@LTR{\foreignlanguage[####1]{#2}{####2}}}% + }% else bidi not loaded + {\iftoggle{#2@RL}% + {\xpg@error{Language~ #2~ is~ right-to-left,~ but~ bidi~ package~ was~ not~ loaded!}}% + {\foreignlanguage[####1]{#2}{####2}}% + }% + }% + \csletcs{local#2}{text#2}% + \csgdef{#2@loaded}{}% + }% + {\xpg@warning{gloss-#2.ldf~ is~ already~ loaded!}}% + }% + %ELSE + {\xpg@nogloss{#2}}% +} + +\newcommand\setotherlanguages[1]{% + \renewcommand*{\do}[1]{\setotherlanguage{##1}}% + \docsvlist{#1}}% + +\def\common@language{% FIXME is this really needed??? + \language=\z@ + \lefthyphenmin=\tw@ + \righthyphenmin=\thr@@} + +\def\noextrascurrent#1{\csuse{noextras@#1}} + +\def\xpg@initial@setup{\ifcsundef{languagename}{}% + {\noextrascurrent{\languagename}}% + \common@language} + +\AtBeginDocument{\xpg@initial@setup} + +\providecommand{\foreignlanguage}{} + +\renewcommand{\foreignlanguage}[3][]{% + \ifcsundef{#2@loaded}% + {\xpg@nogloss{#2}}% + {{\select@@language{#2}% + \setkeys{#2}{#1}% + \use@localhyphenmins{#2}% + \ifbool{#2@frenchspacing}{\frenchspacing}{\nonfrenchspacing}% + \csuse{inlineextras@#2}% + #3}% + }% +} + +% otherlanguage* is the environment equivalent of \foreignlanguage +\expandafter\providecommand\csname otherlanguage*\endcsname{} +\renewenvironment{otherlanguage*}[2][]{% + \ifcsundef{#2@loaded}% + {\xpg@nogloss{#2}}% + {\select@@language{#2}% + \setkeys{#2}{#1}% + \use@localhyphenmins{#2}% + \ifbool{#2@frenchspacing}{\frenchspacing}{\nonfrenchspacing}% + \csuse{inlineextras@#2}\csuse{date#2}% + }% +}{} + +%Hook that other package authors can use +%(for instance biblatex): +\newcommand*{\xpg@hook@setlanguage}{} + +\providecommand{\selectlanguage}{} +\renewcommand{\selectlanguage}[2][]{% + \ifcsundef{#2@loaded}% + {\xpg@nogloss{#2}}% + {\def\xpg@pop@language{% + \xpg@set@language{\languagename}% + \xpg@hook@setlanguage% + \let\emp@langname\@undefined}% + \aftergroup\xpg@pop@language% + \setkeys{#2}{#1}% + \xpg@set@language{#2}% + }% +} + +\newcommand{\xpg@set@language}[1]{% + \select@language{#1}% + \if@filesw% + \protected@write\@auxout{}{\protect\select@language{#1}}% + \addtocontents{toc}{\protect\select@language{#1}}% + \addtocontents{lof}{\protect\select@language{#1}}% + \addtocontents{lot}{\protect\select@language{#1}}% + \fi +} + +\newcommand\xpg@set@language@luatex@ii[1]{% + \ifluatex % + % here we use lu@texhyphen@loaded@\the\language, the same as in babel + \expandafter\ifcsname lu@texhyphen@loaded@\the\csname l@#1\endcsname\endcsname \else % + \global\@namedef{lu@texhyphen@loaded@\the\language}{}% + \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\language')}% + \fi % + \fi % +} + +\def\select@language#1{% + \ifluatex % + \ifcsname lu@texhyphen@loaded@\the\language\endcsname \else % + \global\@namedef{lu@texhyphen@loaded@\the\language}{}% + \directlua{polyglossia.select_language('\luatexluaescapestring{\string#1}', '\the\language')}% + \fi % + \fi % + \xpg@initial@setup% + \select@@language{#1}% + \ifcsundef{setRL}{}% + {\iftoggle{#1@RL}{\setRL}{\setLR}}% + \csuse{captions#1}% + \local@marks{#1}% + \csuse{init@extras@#1}% + \csuse{blockextras@#1}% +} + +% Common code for `\select@language' and `\foreignlanguage'. +\newcommand{\select@@language}[1]{% + \edef\languagename{#1}% + \xpg@select@fontfamily{#1}% + \csuse@warn{#1@language}% + \csuse{date#1}% + \csuse{#1@numbers}% + \use@localhyphenmins{#1}% +} + + +\let\xpg@pop@language\relax + +\provideenvironment{otherlanguage}{}{} + +\renewenvironment{otherlanguage}[2][] + {\selectlanguage[#1]{#2}} + {} + +\newcommand{\setlocalhyphenmins}[3]{% + \expandafter\ifx\csname l@#1\endcsname\relax% + \xpg@warning{\string\setlocalhyphenmin\space~ useless~ for~ unknown~ language~ #1}% + \else + \expandafter\ifx\csname l@#1\endcsname\l@nohyphenation% + \xpg@warning{\string\setlocalhyphenmin\space~ useless~ for~ unhyphenated~ language~ #1}% + \else + \providehyphenmins{#1}{#2#3}% + \fi + \fi} + +\def\use@localhyphenmins#1{% + \ifcsundef{#1hyphenmins}{}% + {\expandafter\expandafter\expandafter\set@hyphenmins\csname #1hyphenmins\endcsname\relax}} + +\define@boolkey{polyglossia}[system@]{babelshorthands}[false]{} + +\AtEndPreamble{\@ifpackageloaded{bidi}{\newcommand*{\aemph}[1]{$\overline{\hboxR{#1}}$}}{}} + +%% Package Options %% +\DeclareOption{nolocalmarks}{\setkeys{polyglossia}{localmarks=false}} +\DeclareOption{localmarks}{\setkeys{polyglossia}{localmarks=true}} +\DeclareOption{babelshorthands}{\setkeys{polyglossia}{babelshorthands=true}} +\DeclareOption{quiet}{% + \gdef\@latex@info#1{\relax}% no latex info + \gdef\@font@info#1{\relax}% no latex font info + \gdef\@font@warning#1{\relax}% no latex font warnings + \gdef\zf@PackageInfo#1{\relax}% no fontspec info + \gdef\xpg@info#1{\relax}}% no polyglossia info +% +% FIXME these should also be loaded \AtEndOfPackage !!! +\def\xpg@option#1#2{% + \ifcsundef{xpg@main@language}{\setdefaultlanguage}{\setotherlanguage}% + [#1]{#2}} +%\DeclareOption{USenglish}{\xpg@option{variant=american}{english}} +%\DeclareOption{american}{\xpg@option{variant=american}{english}} +%\DeclareOption{UKenglish}{\xpg@option{variant=british}{english}} +%\DeclareOption{british}{\xpg@option{variant=british}{english}} +%\DeclareOption{australian}{\xpg@option{variant=australian}{english}} +%\DeclareOption{newzealand}{\xpg@option{variant=newzealand}{english}} +%\DeclareOption{ngerman}{\xpg@option{spelling=new}{german}} +%\DeclareOption{polygreek}{\xpg@option{variant=poly}{greek}} +%\DeclareOption{monogreek}{\xpg@option{variant=mono}{greek}} +%\DeclareOption{ancientgreek}{\xpg@option{variant=ancient}{greek}} +%%% TODO add warning message that this approach is deprecated <<<<<<<<<<<<<< +%\DeclareOption*{% +% \edef\@temp{% +% \noexpand\ifcsundef{xpg@main@language}% +% \noexpand\setdefaultlanguage +% \noexpand\setotherlanguage +% {\CurrentOption}% +% }% +% \expandafter\AtEndOfPackage\expandafter{\@temp}% +%} +\ExplSyntaxOff +\ProcessOptions* +\endinput diff --git a/Master/texmf-dist/tex/latex/polyglossia/xgreek-fixes.def b/Master/texmf-dist/tex/latex/polyglossia/xgreek-fixes.def new file mode 100644 index 00000000000..853bd0831c1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/polyglossia/xgreek-fixes.def @@ -0,0 +1,308 @@ +% the following fixes are taken verbatim from xgreek.sty: +\global\lccode"0386="03AC \global\uccode"0386="0391 +\global\lccode"0388="03AD \global\uccode"0388="0395 +\global\lccode"0389="03AC \global\uccode"0389="0397 +\global\lccode"038A="03AF \global\uccode"038A="0399 +\global\lccode"038C="03CC \global\uccode"038C="039F +\global\lccode"038E="03CD \global\uccode"038E="03A5 +\global\lccode"038F="03CE \global\uccode"038F="03A9 +\global\lccode"0390="0390 \global\uccode"0390="03AA +\global\lccode"0391="03B1 \global\uccode"0391="0391 +\global\lccode"0392="03B2 \global\uccode"0392="0392 +\global\lccode"0393="03B3 \global\uccode"0393="0393 +\global\lccode"0394="03B4 \global\uccode"0394="0394 +\global\lccode"0395="03B5 \global\uccode"0395="0395 +\global\lccode"0396="03B6 \global\uccode"0396="0396 +\global\lccode"0397="03B7 \global\uccode"0397="0397 +\global\lccode"0398="03B8 \global\uccode"0398="0398 +\global\lccode"0399="03B9 \global\uccode"0399="0399 +\global\lccode"039A="03BA \global\uccode"039A="039A +\global\lccode"039B="03BB \global\uccode"039B="039B +\global\lccode"039C="03BC \global\uccode"039C="039C +\global\lccode"039D="03BD \global\uccode"039D="039D +\global\lccode"039E="03BE \global\uccode"039E="039E +\global\lccode"039F="03BF \global\uccode"039F="039F +\global\lccode"03A0="03C0 \global\uccode"03A0="03A0 +\global\lccode"03A1="03C1 \global\uccode"03A1="03A1 +\global\lccode"03A3="03C3 \global\uccode"03A3="03A3 +\global\lccode"03A4="03C4 \global\uccode"03A4="03A4 +\global\lccode"03A5="03C5 \global\uccode"03A5="03A5 +\global\lccode"03A6="03C6 \global\uccode"03A6="03A6 +\global\lccode"03A7="03C7 \global\uccode"03A7="03A7 +\global\lccode"03A8="03C8 \global\uccode"03A8="03A8 +\global\lccode"03A9="03C9 \global\uccode"03A9="03A9 +\global\lccode"03AA="03CA \global\uccode"03AA="03AA +\global\lccode"03AB="03CB \global\uccode"03AB="03AB +\global\lccode"03AC="03AC \global\uccode"03AC="0391 +\global\lccode"03AD="03AD \global\uccode"03AD="0395 +\global\lccode"03AE="03AE \global\uccode"03AE="0397 +\global\lccode"03AF="03AF \global\uccode"03AF="0399 +\global\lccode"03B0="03B0 \global\uccode"03B0="03AB +\global\lccode"03B1="03B1 \global\uccode"03B1="0391 +\global\lccode"03B2="03B2 \global\uccode"03B2="0392 +\global\lccode"03B3="03B3 \global\uccode"03B3="0393 +\global\lccode"03B4="03B4 \global\uccode"03B4="0394 +\global\lccode"03B5="03B5 \global\uccode"03B5="0395 +\global\lccode"03B6="03B6 \global\uccode"03B6="0396 +\global\lccode"03B7="03B7 \global\uccode"03B7="0397 +\global\lccode"03B8="03B8 \global\uccode"03B8="0398 +\global\lccode"03B9="03B9 \global\uccode"03B9="0399 +\global\lccode"03BA="03BA \global\uccode"03BA="039A +\global\lccode"03BB="03BB \global\uccode"03BB="039B +\global\lccode"03BC="03BC \global\uccode"03BC="039C +\global\lccode"03BD="03BD \global\uccode"03BD="039D +\global\lccode"03BE="03BE \global\uccode"03BE="039E +\global\lccode"03BF="03BF \global\uccode"03BF="039F +\global\lccode"03C0="03C0 \global\uccode"03C0="03A0 +\global\lccode"03C1="03C1 \global\uccode"03C1="03A1 +\global\lccode"03C2="03C2 \global\uccode"03C2="03A3 +\global\lccode"03C3="03C3 \global\uccode"03C3="03A3 +\global\lccode"03C4="03C4 \global\uccode"03C4="03A4 +\global\lccode"03C5="03C5 \global\uccode"03C5="03A5 +\global\lccode"03C6="03C6 \global\uccode"03C6="03A6 +\global\lccode"03C7="03C7 \global\uccode"03C7="03A7 +\global\lccode"03C8="03C8 \global\uccode"03C8="03A8 +\global\lccode"03C9="03C9 \global\uccode"03C9="03A9 +\global\lccode"03CA="03CA \global\uccode"03CA="03AA +\global\lccode"03CB="03CB \global\uccode"03CB="03AB +\global\lccode"03CC="03CC \global\uccode"03CC="039F +\global\lccode"03CD="03CD \global\uccode"03CD="03A5 +\global\lccode"03CE="03CE \global\uccode"03CE="03A9 +\global\lccode"03D0="03D0 \global\uccode"03D0="0392 +\global\lccode"03D1="03D1 \global\uccode"03D1="0398 +\global\lccode"03D2="03C5 \global\uccode"03D2="03A5 +\global\lccode"03D3="03CD \global\uccode"03D3="03A5 +\global\lccode"03D4="03CB \global\uccode"03D4="03AB +\global\lccode"03D5="03C6 \global\uccode"03D5="03A6 +\global\lccode"03D6="03C0 \global\uccode"03D6="03A0 +\global\lccode"03DA="03DB \global\uccode"03DA="03DA +\global\lccode"03DB="03DB \global\uccode"03DB="03DA +\global\lccode"03DC="03DD \global\uccode"03DC="03DC +\global\lccode"03DD="03DD \global\uccode"03DD="03DC +\global\lccode"03DE="03DF \global\uccode"03DE="03DE +\global\lccode"03DF="03DF \global\uccode"03DF="03DE +\global\lccode"03E0="03E1 \global\uccode"03E0="039A +\global\lccode"03E0="03E1 \global\uccode"03E1="03A1 +\global\lccode"03F0="03BA \global\uccode"03F0="039A +\global\lccode"03F1="03C1 \global\uccode"03F1="03A1 +\global\lccode"03F2="03F2 \global\uccode"03F2="03F9 +\global\lccode"03F9="03F2 \global\uccode"03F9="03F9 +\global\lccode"1F00="1F00 \global\uccode"1F00="0391 +\global\lccode"1F01="1F01 \global\uccode"1F01="0391 +\global\lccode"1F02="1F02 \global\uccode"1F02="0391 +\global\lccode"1F03="1F03 \global\uccode"1F03="0391 +\global\lccode"1F04="1F04 \global\uccode"1F04="0391 +\global\lccode"1F05="1F05 \global\uccode"1F05="0391 +\global\lccode"1F06="1F06 \global\uccode"1F06="0391 +\global\lccode"1F07="1F07 \global\uccode"1F07="0391 +\global\lccode"1F08="1F00 \global\uccode"1F08="0391 +\global\lccode"1F09="1F01 \global\uccode"1F09="0391 +\global\lccode"1F0A="1F02 \global\uccode"1F0A="0391 +\global\lccode"1F0B="1F03 \global\uccode"1F0B="0391 +\global\lccode"1F0C="1F04 \global\uccode"1F0C="0391 +\global\lccode"1F0D="1F05 \global\uccode"1F0D="0391 +\global\lccode"1F0E="1F06 \global\uccode"1F0E="0391 +\global\lccode"1F0F="1F07 \global\uccode"1F0F="0391 +\global\lccode"1F10="1F10 \global\uccode"1F10="0395 +\global\lccode"1F11="1F11 \global\uccode"1F11="0395 +\global\lccode"1F12="1F12 \global\uccode"1F12="0395 +\global\lccode"1F13="1F13 \global\uccode"1F13="0395 +\global\lccode"1F14="1F14 \global\uccode"1F14="0395 +\global\lccode"1F15="1F15 \global\uccode"1F15="0395 +\global\lccode"1F18="1F10 \global\uccode"1F18="0395 +\global\lccode"1F19="1F11 \global\uccode"1F19="0395 +\global\lccode"1F1A="1F12 \global\uccode"1F1A="0395 +\global\lccode"1F1B="1F13 \global\uccode"1F1B="0395 +\global\lccode"1F1C="1F14 \global\uccode"1F1C="0395 +\global\lccode"1F1D="1F15 \global\uccode"1F1D="0395 +\global\lccode"1F20="1F20 \global\uccode"1F20="0397 +\global\lccode"1F21="1F21 \global\uccode"1F21="0397 +\global\lccode"1F22="1F22 \global\uccode"1F22="0397 +\global\lccode"1F23="1F23 \global\uccode"1F23="0397 +\global\lccode"1F24="1F24 \global\uccode"1F24="0397 +\global\lccode"1F25="1F25 \global\uccode"1F25="0397 +\global\lccode"1F26="1F26 \global\uccode"1F26="0397 +\global\lccode"1F27="1F27 \global\uccode"1F27="0397 +\global\lccode"1F28="1F20 \global\uccode"1F28="0397 +\global\lccode"1F29="1F21 \global\uccode"1F29="0397 +\global\lccode"1F2A="1F22 \global\uccode"1F2A="0397 +\global\lccode"1F2B="1F23 \global\uccode"1F2B="0397 +\global\lccode"1F2C="1F24 \global\uccode"1F2C="0397 +\global\lccode"1F2D="1F25 \global\uccode"1F2D="0397 +\global\lccode"1F2E="1F26 \global\uccode"1F2E="0397 +\global\lccode"1F2F="1F27 \global\uccode"1F2F="0397 +\global\lccode"1F30="1F30 \global\uccode"1F30="0399 +\global\lccode"1F31="1F31 \global\uccode"1F31="0399 +\global\lccode"1F32="1F32 \global\uccode"1F32="0399 +\global\lccode"1F33="1F33 \global\uccode"1F33="0399 +\global\lccode"1F34="1F34 \global\uccode"1F34="0399 +\global\lccode"1F35="1F35 \global\uccode"1F35="0399 +\global\lccode"1F36="1F36 \global\uccode"1F36="0399 +\global\lccode"1F37="1F37 \global\uccode"1F37="0399 +\global\lccode"1F38="1F30 \global\uccode"1F38="0399 +\global\lccode"1F39="1F31 \global\uccode"1F39="0399 +\global\lccode"1F3A="1F32 \global\uccode"1F3A="0399 +\global\lccode"1F3B="1F33 \global\uccode"1F3B="0399 +\global\lccode"1F3C="1F34 \global\uccode"1F3C="0399 +\global\lccode"1F3D="1F35 \global\uccode"1F3D="0399 +\global\lccode"1F3E="1F36 \global\uccode"1F3E="0399 +\global\lccode"1F3F="1F37 \global\uccode"1F3F="0399 +\global\lccode"1F40="1F40 \global\uccode"1F40="039F +\global\lccode"1F41="1F41 \global\uccode"1F41="039F +\global\lccode"1F42="1F42 \global\uccode"1F42="039F +\global\lccode"1F43="1F43 \global\uccode"1F43="039F +\global\lccode"1F44="1F44 \global\uccode"1F44="039F +\global\lccode"1F45="1F45 \global\uccode"1F45="039F +\global\lccode"1F48="1F40 \global\uccode"1F48="039F +\global\lccode"1F49="1F41 \global\uccode"1F49="039F +\global\lccode"1F4A="1F42 \global\uccode"1F4A="039F +\global\lccode"1F4B="1F43 \global\uccode"1F4B="039F +\global\lccode"1F4C="1F44 \global\uccode"1F4C="039F +\global\lccode"1F4D="1F45 \global\uccode"1F4D="039F +\global\lccode"1F50="1F50 \global\uccode"1F50="03A5 +\global\lccode"1F51="1F51 \global\uccode"1F51="03A5 +\global\lccode"1F52="1F52 \global\uccode"1F52="03A5 +\global\lccode"1F53="1F53 \global\uccode"1F53="03A5 +\global\lccode"1F54="1F54 \global\uccode"1F54="03A5 +\global\lccode"1F55="1F55 \global\uccode"1F55="03A5 +\global\lccode"1F56="1F56 \global\uccode"1F56="03A5 +\global\lccode"1F57="1F57 \global\uccode"1F57="03A5 +\global\lccode"1F59="1F51 \global\uccode"1F59="03A5 +\global\lccode"1F5B="1F53 \global\uccode"1F5B="03A5 +\global\lccode"1F5D="1F55 \global\uccode"1F5D="03A5 +\global\lccode"1F5F="1F57 \global\uccode"1F5F="03A5 +\global\lccode"1F60="1F60 \global\uccode"1F60="03A9 +\global\lccode"1F61="1F61 \global\uccode"1F61="03A9 +\global\lccode"1F62="1F62 \global\uccode"1F62="03A9 +\global\lccode"1F63="1F63 \global\uccode"1F63="03A9 +\global\lccode"1F64="1F64 \global\uccode"1F64="03A9 +\global\lccode"1F65="1F65 \global\uccode"1F65="03A9 +\global\lccode"1F66="1F66 \global\uccode"1F66="03A9 +\global\lccode"1F67="1F67 \global\uccode"1F67="03A9 +\global\lccode"1F68="1F60 \global\uccode"1F68="03A9 +\global\lccode"1F69="1F61 \global\uccode"1F69="03A9 +\global\lccode"1F6A="1F62 \global\uccode"1F6A="03A9 +\global\lccode"1F6B="1F63 \global\uccode"1F6B="03A9 +\global\lccode"1F6C="1F64 \global\uccode"1F6C="03A9 +\global\lccode"1F6D="1F65 \global\uccode"1F6D="03A9 +\global\lccode"1F6E="1F66 \global\uccode"1F6E="03A9 +\global\lccode"1F6F="1F67 \global\uccode"1F6F="03A9 +\global\lccode"1F70="1F70 \global\uccode"1F70="0391 +\global\lccode"1F71="1F71 \global\uccode"1F71="0391 +\global\lccode"1F72="1F72 \global\uccode"1F72="0395 +\global\lccode"1F73="1F73 \global\uccode"1F73="0395 +\global\lccode"1F74="1F74 \global\uccode"1F74="0397 +\global\lccode"1F75="1F75 \global\uccode"1F75="0397 +\global\lccode"1F76="1F76 \global\uccode"1F76="0399 +\global\lccode"1F77="1F77 \global\uccode"1F77="0399 +\global\lccode"1F78="1F78 \global\uccode"1F78="039F +\global\lccode"1F79="1F79 \global\uccode"1F79="039F +\global\lccode"1F7A="1F7A \global\uccode"1F7A="03A5 +\global\lccode"1F7B="1F7B \global\uccode"1F7B="03A5 +\global\lccode"1F7C="1F7C \global\uccode"1F7C="03A9 +\global\lccode"1F7D="1F7D \global\uccode"1F7D="03A9 +\global\lccode"1F80="1F80 \global\uccode"1F80="1FBC +\global\lccode"1F81="1F81 \global\uccode"1F81="1FBC +\global\lccode"1F82="1F82 \global\uccode"1F82="1FBC +\global\lccode"1F83="1F83 \global\uccode"1F83="1FBC +\global\lccode"1F84="1F84 \global\uccode"1F84="1FBC +\global\lccode"1F85="1F85 \global\uccode"1F85="1FBC +\global\lccode"1F86="1F86 \global\uccode"1F86="1FBC +\global\lccode"1F87="1F87 \global\uccode"1F87="1FBC +\global\lccode"1F88="1F80 \global\uccode"1F88="1FBC +\global\lccode"1F89="1F81 \global\uccode"1F89="1FBC +\global\lccode"1F8A="1F82 \global\uccode"1F8A="1FBC +\global\lccode"1F8B="1F83 \global\uccode"1F8B="1FBC +\global\lccode"1F8C="1F84 \global\uccode"1F8C="1FBC +\global\lccode"1F8D="1F85 \global\uccode"1F8D="1FBC +\global\lccode"1F8E="1F86 \global\uccode"1F8E="1FBC +\global\lccode"1F8F="1F87 \global\uccode"1F8F="1FBC +\global\lccode"1F90="1F90 \global\uccode"1F90="1FCC +\global\lccode"1F91="1F91 \global\uccode"1F91="1FCC +\global\lccode"1F92="1F92 \global\uccode"1F92="1FCC +\global\lccode"1F93="1F93 \global\uccode"1F93="1FCC +\global\lccode"1F94="1F94 \global\uccode"1F94="1FCC +\global\lccode"1F95="1F95 \global\uccode"1F95="1FCC +\global\lccode"1F96="1F96 \global\uccode"1F96="1FCC +\global\lccode"1F97="1F97 \global\uccode"1F97="1FCC +\global\lccode"1F98="1F90 \global\uccode"1F98="1FCC +\global\lccode"1F99="1F91 \global\uccode"1F99="1FCC +\global\lccode"1F9A="1F92 \global\uccode"1F9A="1FCC +\global\lccode"1F9B="1F93 \global\uccode"1F9B="1FCC +\global\lccode"1F9C="1F94 \global\uccode"1F9C="1FCC +\global\lccode"1F9D="1F95 \global\uccode"1F9D="1FCC +\global\lccode"1F9E="1F96 \global\uccode"1F9E="1FCC +\global\lccode"1F9F="1F97 \global\uccode"1F9F="1FCC +\global\lccode"1FA0="1FA0 \global\uccode"1FA0="1FFC +\global\lccode"1FA1="1FA1 \global\uccode"1FA1="1FFC +\global\lccode"1FA2="1FA2 \global\uccode"1FA2="1FFC +\global\lccode"1FA3="1FA3 \global\uccode"1FA3="1FFC +\global\lccode"1FA4="1FA4 \global\uccode"1FA4="1FFC +\global\lccode"1FA5="1FA5 \global\uccode"1FA5="1FFC +\global\lccode"1FA6="1FA6 \global\uccode"1FA6="1FFC +\global\lccode"1FA7="1FA7 \global\uccode"1FA7="1FFC +\global\lccode"1FA8="1FA0 \global\uccode"1FA8="1FFC +\global\lccode"1FA9="1FA1 \global\uccode"1FA9="1FFC +\global\lccode"1FAA="1FA2 \global\uccode"1FAA="1FFC +\global\lccode"1FAB="1FA3 \global\uccode"1FAB="1FFC +\global\lccode"1FAC="1FA4 \global\uccode"1FAC="1FFC +\global\lccode"1FAD="1FA5 \global\uccode"1FAD="1FFC +\global\lccode"1FAE="1FA6 \global\uccode"1FAE="1FFC +\global\lccode"1FAF="1FA7 \global\uccode"1FAF="1FFC +\global\lccode"1FB0="1FB0 \global\uccode"1FB0="1FB8 +\global\lccode"1FB1="1FB1 \global\uccode"1FB1="1FB9 +\global\lccode"1FB2="1FB2 \global\uccode"1FB2="1FBC +\global\lccode"1FB3="1FB3 \global\uccode"1FB3="1FBC +\global\lccode"1FB4="1FB4 \global\uccode"1FB4="1FBC +\global\lccode"1FB6="1FB6 \global\uccode"1FB6="0391 +\global\lccode"1FB7="1FB7 \global\uccode"1FB7="1FBC +\global\lccode"1FB8="1FB0 \global\uccode"1FB8="1FB8 +\global\lccode"1FB9="1FB1 \global\uccode"1FB9="1FB9 +\global\lccode"1FBA="1F70 \global\uccode"1FBA="0391 +\global\lccode"1FBB="1F71 \global\uccode"1FBB="0391 +\global\lccode"1FBC="1FB3 \global\uccode"1FBC="1FBC +\global\lccode"1FBD="1FBD \global\uccode"1FBD="1FBD +\global\lccode"1FC2="1FC2 \global\uccode"1FC2="1FCC +\global\lccode"1FC3="1FC3 \global\uccode"1FC3="1FCC +\global\lccode"1FC4="1FC4 \global\uccode"1FC4="1FCC +\global\lccode"1FC6="1FC6 \global\uccode"1FC6="0397 +\global\lccode"1FC7="1FC7 \global\uccode"1FC7="1FCC +\global\lccode"1FC8="1F72 \global\uccode"1FC8="0395 +\global\lccode"1FC9="1F73 \global\uccode"1FC9="0395 +\global\lccode"1FCA="1F74 \global\uccode"1FCA="0397 +\global\lccode"1FCB="1F75 \global\uccode"1FCB="0397 +\global\lccode"1FCC="1FC3 \global\uccode"1FCC="1FCC +\global\lccode"1FD0="1FD0 \global\uccode"1FD0="1FD8 +\global\lccode"1FD1="1FD1 \global\uccode"1FD1="1FD9 +\global\lccode"1FD2="1FD2 \global\uccode"1FD2="03AA +\global\lccode"1FD3="1FD3 \global\uccode"1FD3="03AA +\global\lccode"1FD6="1FD6 \global\uccode"1FD6="0399 +\global\lccode"1FD7="1FD7 \global\uccode"1FD7="03AA +\global\lccode"1FD8="1FD0 \global\uccode"1FD8="1FD8 +\global\lccode"1FD9="1FD1 \global\uccode"1FD9="1FD9 +\global\lccode"1FDA="1F76 \global\uccode"1FDA="0399 +\global\lccode"1FDB="1F77 \global\uccode"1FDB="0399 +\global\lccode"1FE0="1FE0 \global\uccode"1FE0="1FE8 +\global\lccode"1FE1="1FE1 \global\uccode"1FE1="1FE9 +\global\lccode"1FE2="1FE2 \global\uccode"1FE2="03AB +\global\lccode"1FE3="1FE3 \global\uccode"1FE3="03AB +\global\lccode"1FE4="1FE4 \global\uccode"1FE4="03A1 +\global\lccode"1FE5="1FE5 \global\uccode"1FE5="1FEC +\global\lccode"1FE6="1FE6 \global\uccode"1FE6="03A5 +\global\lccode"1FE7="1FE7 \global\uccode"1FE7="03AB +\global\lccode"1FE8="1FE0 \global\uccode"1FE8="1FE8 +\global\lccode"1FE9="1FE1 \global\uccode"1FE9="1FE9 +\global\lccode"1FEA="1F7A \global\uccode"1FEA="03A5 +\global\lccode"1FEB="1F7B \global\uccode"1FEB="03A5 +\global\lccode"1FEC="1FE5 \global\uccode"1FEC="1FEC +\global\lccode"1FF2="1FF2 \global\uccode"1FF2="1FFC +\global\lccode"1FF3="1FF3 \global\uccode"1FF3="1FFC +\global\lccode"1FF4="1FF4 \global\uccode"1FF4="1FFC +\global\lccode"1FF6="1FF6 \global\uccode"1FF6="03A9 +\global\lccode"1FF7="1FF7 \global\uccode"1FF7="1FFC +\global\lccode"1FF8="1F78 \global\uccode"1FF8="039F +\global\lccode"1FF9="1F79 \global\uccode"1FF9="039F +\global\lccode"1FFA="1F7C \global\uccode"1FFA="03A9 +\global\lccode"1FFB="1F7D \global\uccode"1FFB="03A9 +\global\lccode"1FFC="1FF3 \global\uccode"1FFC="1FFC +\endinput -- cgit v1.2.3