% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-sorbian.ldf}[polyglossia: module for Sorbian] \PolyglossiaSetup{sorbian}{ bcp47=hsb, bcp47-language=hsb, bcp47-script=Latn, language=Upper Sorbian, babelname=uppersorbian, hyphennames={usorbian,uppersorbian}, langtag=USB, hyphenmins={2,2}, fontsetup=true, } % BCP-47 compliant aliases \setlanguagealias*[variant=upper]{sorbian}{hsb} \setlanguagealias*[variant=lower]{sorbian}{dsb} % Backwards compat. aliases \setlanguagealias[variant=lower]{sorbian}{lsorbian} \setlanguagealias[variant=upper]{sorbian}{usorbian} % Babel aliases \setlanguagealias[variant=lower]{sorbian}{lowersorbian} \setlanguagealias[variant=upper]{sorbian}{uppersorbian} \def\sorbian@variant{usorbian} \DeclareKeys[polyglossia/gloss/sorbian] { olddate.if = sorbian@olddate, olddate.default:n = true, variant.choice:, variant / upper.code = {% \def\sorbian@variant{usorbian}% \SetLanguageKeys{sorbian}{language=Upper Sorbian,langtag=USB,babelname=uppersorbian,bcp47=hsb,bcp47-language=hsb}% \SetupLatinPolyglossiaFont{sorbian}% % Check if \l@usorbian is defined. If not, try to set it to some variety % (specific order as in the csv list), or null language if everything fails \TryPatternWithFallback{usorbian}{uppersorbian}% }, variant / lower.code = {% \def\sorbian@variant{lsorbian}% \SetLanguageKeys{sorbian}{language=Lower Sorbian,langtag=LSB,babelname=lowersorbian,bcp47=dsb,bcp47-language=dsb}% \SetupLatinPolyglossiaFont{sorbian}% % Check if \l@lsorbian is defined. If not, try to set it to some variety % (specific order as in the csv list), or null language if everything fails \TryPatternWithFallback{lsorbian}{lowersorbian,Lsorbian,usorbian,uppersorbian}% }, variant.default:n = upper, variant/unknown.code = \xpg@warning{Unknown sorbian variant `#1'} } % Register default options \InitializeGlossOptions{sorbian}{variant=upper,olddate=false} \def\sorbian@language{% \SetupPolyglossiaLangPatterns{\sorbian@variant}% }% \def\captionssorbian@lsorbian{% \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\captionssorbian@usorbian{% \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\captionssorbian{% \csname captionssorbian@\sorbian@variant\endcsname% } \def\datesorbian@lsorbian{% \def\oldtoday{% \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}% \def\today{% \ifsorbian@olddate \oldtoday% \else \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% \fi }% } \def\datesorbian@usorbian{% \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}% \def\today{% \ifsorbian@olddate \oldtoday% \else \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% \fi }% } \def\datesorbian{% \csname datesorbian@\sorbian@variant\endcsname% } \endinput