summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-03-16 22:13:44 +0000
committerKarl Berry <karl@freefriends.org>2021-03-16 22:13:44 +0000
commitd33689322dcb335685d90e2ff7e609389c818d77 (patch)
tree3b730a7d85b82ba07ced8a56a6fb289d337e0108 /Master/texmf-dist/tex/latex/polyglossia
parent59ced15105a36e69070f8ce3889d85648be567a3 (diff)
polyglossia (16mar21) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2020.0@58445 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf5
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf58
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-korean.ldf167
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf44
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf1
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-ug.ldf6
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf48
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-uyghur.ldf52
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty11
9 files changed, 281 insertions, 111 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf
index bb30dd1c6ab..1df485aec2d 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-bulgarian.ldf
@@ -65,7 +65,8 @@
%\def\headtoname{}%
\def\proofname{Proof}%
\def\glossaryname{Glossary}%
- }
+}
+
\def\datebulgarian{%
\def\today{\number\day~\ifcase\month\or
януари\or
@@ -91,6 +92,8 @@
%% this is from Babel:
\def\Romannumeral#1{\uppercase\expandafter{\romannumeral #1}}
\def\todayRoman{\number\day.\Romannumeral{\month}.\number\year~г.}
+%
+% If you implement this, add an option mathfunction as in gloss-russian.ldf
\def\sh{\mathop{\operator@font sh}\nolimits}
\def\ch{\mathop{\operator@font ch}\nolimits}
\def\tg{\mathop{\operator@font tg}\nolimits}
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf
index 8048c93ae83..0625a1501e7 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-french.ldf
@@ -335,8 +335,8 @@
\def\partname{Partie}%
\fi%
\def\pagename{page}%
- \def\seename{\emph{voir}}%
- \def\alsoname{\emph{voir aussi}}%
+ \def\seename{voir}%
+ \def\alsoname{voir aussi}%
\def\enclname{P.~J. }%
\def\ccname{Copie à }%
\def\headtoname{}%
@@ -364,14 +364,23 @@
% Change part heading
% With titlesec
\ifcsdef{titleformat}{%
- \ifcsdef{@part}{%
- \let\xpg@save@part@format\@part%
- \patchcmd{\@part}%
+ \ifcsdef{H@old@part}{% Hyperref
+ \let\xpg@save@part@format\H@old@part%
+ \patchcmd{\H@old@part}%
{\partname\nobreakspace\thepart}%
{\xpg@french@part\nobreakspace\partname}%
{}%
{\xpg@warning{Failed to patch part for French}}%
- }{}%
+ }{% not hyperref
+ \ifcsdef{@part}{%
+ \let\xpg@save@part@format\@part%
+ \patchcmd{\@part}%
+ {\partname\nobreakspace\thepart}%
+ {\xpg@french@part\nobreakspace\partname}%
+ {}%
+ {\xpg@warning{Failed to patch part for French}}%
+ }{}%
+ }%
}{% (not \ifdefined\titleformat)
% With KOMA
\ifcsdef{sectionformat}{%
@@ -382,23 +391,40 @@
}{% (not \ifdefined\sectionformat)
% With memoir
\ifcsdef{@memptsize}{%
- \ifcsdef{@part}{%
- \let\xpg@save@part@format\@part%
- \patchcmd{\@part}{\printpartname \partnamenum \printpartnum}%
+ \ifcsdef{H@old@part}{% Hyperref
+ \let\xpg@save@part@format\H@old@part%
+ \patchcmd{\H@old@part}{\printpartname \partnamenum \printpartnum}%
{\partnamefont\xpg@french@part\partnamenum\printpartname}%
{}%
{\xpg@warning{Failed to patch part for French}}%
- }{}%
+ }{% not hyperref
+ \ifcsdef{@part}{%
+ \let\xpg@save@part@format\@part%
+ \patchcmd{\@part}{\printpartname \partnamenum \printpartnum}%
+ {\partnamefont\xpg@french@part\partnamenum\printpartname}%
+ {}%
+ {\xpg@warning{Failed to patch part for French}}%
+ }{}%
+ }%
}{% (not \ifdefined\@memptsize)
% With standard classes
- \ifcsdef{@part}{%
- \let\xpg@save@part@format\@part%
- \patchcmd{\@part}%
+ \ifcsdef{H@old@part}{% Hyperref
+ \let\xpg@save@part@format\H@old@part%
+ \patchcmd{\H@old@part}%
{\partname\nobreakspace\thepart}%
{\xpg@french@part\nobreakspace\partname}%
{}%
{\xpg@warning{Failed to patch part for French}}%
- }{}% (end \ifdefined\@part)
+ }{% not hyperref
+ \ifcsdef{@part}{%
+ \let\xpg@save@part@format\@part%
+ \patchcmd{\@part}%
+ {\partname\nobreakspace\thepart}%
+ {\xpg@french@part\nobreakspace\partname}%
+ {}%
+ {\xpg@warning{Failed to patch part for French}}%
+ }{}% (end \ifdefined \H@old@part)
+ }% (end \ifdefined\@part)
}% (end \ifdefined\@memptsize)
}% (end \ifdefined\sectionformat)
}% (end \ifdefined\titleformat)
@@ -409,7 +435,7 @@
\ifcsdef{titleformat}{%
% With titlesec
\ifcsdef{xpg@save@part@format}{%
- \let\@part\xpg@save@part@format
+ \ifcsdef{H@old@part}{\let\@H@old@part\xpg@save@part@format}{\let\@part\xpg@save@part@format}
}{}%
}{% (not \ifdefined\titleformat)
\ifcsdef{sectionformat}{%
@@ -420,7 +446,7 @@
}{%
% With memoir and standard classes
\ifcsdef{xpg@save@part@format}{%
- \let\@part\xpg@save@part@format
+ \ifcsdef{H@old@part}{\let\@H@old@part\xpg@save@part@format}{\let\@part\xpg@save@part@format}
}{}%
}% (end \ifdefined\sectionformat)
}% (end \ifdefined\titleformat)
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-korean.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-korean.ldf
index 9bab8fc2de2..52152d12659 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-korean.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-korean.ldf
@@ -515,15 +515,41 @@
\def\XPGKOstartAA{\global\futurelet\XPGKO@let@josa\XPGKO@skipAA}
\def\XPGKO@skipID{\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassID{\empty}}
\def\XPGKO@skipAA{\XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassAA{\empty}}
-\def\XPGKOstopID {\XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassID{\XPGKOstartID}}
-\def\XPGKOstopAA {\XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassAA{\XPGKOstartAA}}
+\def\XPGKOstopID {%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassID{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOhalfzero
+ \fi
+ \fi
+ \XPGKOstartID}}
+\def\XPGKOstopAA {%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassAA{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOhalfzero
+ \fi
+ \fi
+ \XPGKOstartAA}}
% macros for interchartoks (CJK punctuations)
-\def\XPGKOstartOP{\leavevmode\hbox to.5em\bgroup\hss}%
-\def\XPGKOstopOP {\egroup}%
-\def\XPGKOstartCL{\leavevmode\hbox to.5em\bgroup}%
-\def\XPGKOstopCL {\hss\egroup}%
-\let\XPGKOstartFS\XPGKOstartCL \let\XPGKOstopFS\XPGKOstopCL
-\let\XPGKOstartMD\XPGKOstartOP \let\XPGKOstopMD\XPGKOstopCL
+\def\XPGKOstartOP#1{\leavevmode
+ \hbox to.5em\bgroup\hss\XeTeXinterchartokenstate\z@ #1\egroup
+ \kern-1sp \kern1sp }
+\def\XPGKOstartCL#1{\leavevmode
+ \hbox to.5em\bgroup\XeTeXinterchartokenstate\z@ #1\hss\egroup
+ \kern-2sp \kern2sp }
+\def\XPGKOstartMD#1{\leavevmode
+ \hbox to.5em\bgroup\hss\XeTeXinterchartokenstate\z@ #1\hss\egroup
+ \kern-3sp \kern3sp }
+\def\XPGKOstartFS#1{\leavevmode
+ \hbox to.5em\bgroup\XeTeXinterchartokenstate\z@ #1\hss\egroup
+ \kern-4sp \kern4sp }
\let\XPGKOnobreak \nobreak
\def\XPGKOhalfzero {\hskip \XPGKOhalfdim \relax}%
\def\XPGKOhalfhalf {\hskip \XPGKOhalfdim minus \XPGKOhalfdim \relax}%
@@ -616,10 +642,6 @@
\XeTeXinterchartoks\count@\XPGKOcharclassFS{\XPGKOstartFS}%
\XeTeXinterchartoks\count@\XPGKOcharclassAA{\XPGKOstartAA}%
\XeTeXinterchartoks\XeTeXcharclassID\count@{\XPGKOstopID}%
- \XeTeXinterchartoks\XeTeXcharclassOP\count@{\XPGKOstopOP}%
- \XeTeXinterchartoks\XeTeXcharclassCL\count@{\XPGKOstopCL}%
- \XeTeXinterchartoks\XPGKOcharclassMD\count@{\XPGKOstopMD}%
- \XeTeXinterchartoks\XPGKOcharclassFS\count@{\XPGKOstopFS}%
\XeTeXinterchartoks\XPGKOcharclassAA\count@{\XPGKOstopAA}%
\fi\fi\fi\fi\fi\fi
\ifnum\count@=\XeTeXcharclassBoundary \count@\m@ne \fi
@@ -642,45 +664,88 @@
\XeTeXinterchartoks\XeTeXcharclassID\XPGKOcharclassAO{\XPGKOstopID\XPGKOlatincjk}%
\XeTeXinterchartoks\XeTeXcharclassID\XPGKOcharclassAA{\XPGKOstopID\XPGKOlatincjk\XPGKOstartAA}%
%
- \XeTeXinterchartoks\XeTeXcharclassOP\XeTeXcharclassID{\XPGKOstopOP\XPGKOstartID}%
- \XeTeXinterchartoks\XeTeXcharclassOP\XeTeXcharclassOP{\XPGKOstopOP\XPGKOstartOP}%
- \XeTeXinterchartoks\XeTeXcharclassOP\XeTeXcharclassCL{\XPGKOstopOP\XPGKOstartCL}%
- \XeTeXinterchartoks\XeTeXcharclassOP\XPGKOcharclassMD{\XPGKOstopOP\XPGKOnobreak\XPGKOquarterquarter\XPGKOstartMD}%
- \XeTeXinterchartoks\XeTeXcharclassOP\XPGKOcharclassFS{\XPGKOstopOP\XPGKOstartFS}%
- \XeTeXinterchartoks\XeTeXcharclassOP\XPGKOcharclassAA{\XPGKOstopOP\XPGKOstartAA}%
- %
- \XeTeXinterchartoks\XeTeXcharclassCL\XeTeXcharclassID{\XPGKOstopCL\XPGKOhalfhalf\XPGKOstartID}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XeTeXcharclassOP{\XPGKOstopCL\XPGKOhalfhalf\XPGKOstartOP}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XeTeXcharclassCL{\XPGKOstopCL\XPGKOstartCL}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassMD{\XPGKOstopCL\XPGKOnobreak\XPGKOquarterquarter\XPGKOstartMD}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassFS{\XPGKOstopCL\XPGKOstartFS}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassLD{\XPGKOstopCL\XPGKOnobreak\XPGKOhalfhalf}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassEX{\XPGKOstopCL\XPGKOnobreak\XPGKOhalfhalf}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassAO{\XPGKOstopCL\XPGKOhalfhalf}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassAC{\XPGKOstopCL\XPGKOnobreak\XPGKOhalfhalf}%
- \XeTeXinterchartoks\XeTeXcharclassCL\XPGKOcharclassAA{\XPGKOstopCL\XPGKOhalfhalf\XPGKOstartAA}%
- %
- \XeTeXinterchartoks\XPGKOcharclassMD\XeTeXcharclassID{\XPGKOstopMD\XPGKOquarterquarter\XPGKOstartID}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XeTeXcharclassOP{\XPGKOstopMD\XPGKOquarterquarter\XPGKOstartOP}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XeTeXcharclassCL{\XPGKOstopMD\XPGKOnobreak\XPGKOquarterquarter\XPGKOstartCL}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassMD{\XPGKOstopMD\XPGKOnobreak\XPGKOhalfquarter\XPGKOstartMD}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassFS{\XPGKOstopMD\XPGKOnobreak\XPGKOquarterquarter\XPGKOstartFS}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassLD{\XPGKOstopMD\XPGKOnobreak\XPGKOquarterquarter}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassEX{\XPGKOstopMD\XPGKOnobreak\XPGKOquarterquarter}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassAO{\XPGKOstopMD\XPGKOquarterquarter}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassAC{\XPGKOstopMD\XPGKOnobreak\XPGKOquarterquarter}%
- \XeTeXinterchartoks\XPGKOcharclassMD\XPGKOcharclassAA{\XPGKOstopMD\XPGKOquarterquarter\XPGKOstartAA}%
- %
- \XeTeXinterchartoks\XPGKOcharclassFS\XeTeXcharclassID{\XPGKOstopFS\XPGKOhalfzero\XPGKOstartID}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XeTeXcharclassOP{\XPGKOstopFS\XPGKOhalfzero\XPGKOstartOP}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XeTeXcharclassCL{\XPGKOstopFS\XPGKOstartCL}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassMD{\XPGKOstopFS\XPGKOnobreak\XPGKOiiiquarterquarter\XPGKOstartMD}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassFS{\XPGKOstopFS\XPGKOstartFS}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassLD{\XPGKOstopFS\XPGKOnobreak\XPGKOhalfzero}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassEX{\XPGKOstopFS\XPGKOnobreak\XPGKOhalfzero}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassAO{\XPGKOstopFS\XPGKOhalfzero}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassAC{\XPGKOstopFS\XPGKOnobreak\XPGKOhalfzero}%
- \XeTeXinterchartoks\XPGKOcharclassFS\XPGKOcharclassAA{\XPGKOstopFS\XPGKOhalfzero\XPGKOstartAA}%
+ \XPGKOstopID
+ \XPGKOstopAA
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassOP{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOhalfzero
+ \fi
+ \fi
+ \XPGKOstartOP}%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XeTeXcharclassCL{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern
+ \fi
+ \fi
+ \XPGKOstartCL}%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassMD{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOiiiquarterquarter
+ \fi
+ \fi
+ \XPGKOstartMD}%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassFS{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern
+ \fi
+ \fi
+ \XPGKOstartFS}%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassLD{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfzero
+ \fi
+ \fi
+ }%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassEX{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfzero
+ \fi
+ \fi
+ }%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassAO{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOhalfzero
+ \fi
+ \fi
+ }%
+ \XeTeXinterchartoks\XeTeXcharclassBoundary\XPGKOcharclassAC{%
+ \ifnum\lastnodetype=12 %
+ \ifcase\lastkern
+ \or \unkern\unkern
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfhalf
+ \or \unkern\unkern \XPGKOnobreak\XPGKOquarterquarter
+ \or \unkern\unkern \XPGKOnobreak\XPGKOhalfzero
+ \fi
+ \fi
+ }%
%
\XeTeXinterchartoks\XPGKOcharclassLD\XeTeXcharclassOP{\XPGKOhalfhalf\XPGKOstartOP}%
\XeTeXinterchartoks\XPGKOcharclassLD\XPGKOcharclassMD{\XPGKOnobreak\XPGKOquarterquarter\XPGKOstartMD}%
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
index 12fe3f24c96..5579317a125 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-russian.ldf
@@ -72,13 +72,16 @@
% Force punctuation after heading number
\define@boolkey{russian}[russian@]{forceheadingpunctuation}[true]{}
+% Define some math functions
+\define@boolkey{russian}[russian@]{mathfunctions}[true]{}
% Register default options
\xpg@initialize@gloss@options{russian}{babelshorthands=false,
spelling=modern,
numerals=arabic,
indentfirst=true,
- forceheadingpunctuation=true}
+ forceheadingpunctuation=true,
+ mathfunctions=true}
\ifsystem@babelshorthands
@@ -354,24 +357,27 @@
}
%%% 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}{№}
+\AtBeginDocument{%
+\ifrussian@mathfunctions%
+ \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}{№}
+\fi
+}
\endinput
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf
index 6e28a96ccd2..b2317999c0b 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-serbian.ldf
@@ -237,6 +237,7 @@
\endinput
% TODO ? stuff from babel
+% If you implement this, add an option mathfunction as in gloss-russian.ldf
\def\sh{\mathop{\operator@font sh}\nolimits} % same as \sinh
\def\ch{\mathop{\operator@font ch}\nolimits} % same as \cosh
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-ug.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-ug.ldf
new file mode 100644
index 00000000000..87746be3622
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-ug.ldf
@@ -0,0 +1,6 @@
+\ProvidesFile{gloss-ug.ldf}[polyglossia: module for ug (Uyghur)]
+% BCP 47 tag for Uyghur
+
+\xpg@load@master@language{uyghur}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf
index 417e258f2a8..e9f00844289 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-ukrainian.ldf
@@ -44,8 +44,11 @@
}{\xpg@warning{Unknown Ukrainian numerals value `#1'}}
+% Define some math functions
+\define@boolkey{ukrainian}[ukrainian@]{mathfunctions}[true]{}
+
% Register default options
-\xpg@initialize@gloss@options{ukrainian}{numerals=arabic}
+\xpg@initialize@gloss@options{ukrainian}{numerals=arabic,mathfunctions=true}
\define@boolkey{ukrainian}[ukrainian@]{babelshorthands}[true]{}
@@ -253,25 +256,28 @@
}
%%% stuff from Babel
-% 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\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}
+\AtBeginDocument{%
+\ifukrainian@mathfunctions%
+ \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}
+\fi
+}
\endinput
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-uyghur.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-uyghur.ldf
new file mode 100644
index 00000000000..c28fb44b2c6
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-uyghur.ldf
@@ -0,0 +1,52 @@
+\ProvidesFile{gloss-uyghur.ldf}[polyglossia: module for Uyghur]
+%% Translations provided by Osman Tursun (Github Account: neouyghur)
+
+\PolyglossiaSetup{uyghur}{
+ bcp47=ug,
+ script=Arabic,
+ direction=RL,
+ scripttag=arab,
+ langtag=UYG,
+ hyphennames={nohyphenation}،
+ fontsetup=true,
+}
+
+% BCP-47 compliant aliases
+\setlanguagealias*{uyghur}{ug}
+
+\def\captionsuyghur{%
+ \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\subjectname{\@ensure@RTL{تېما}}%
+}
+
+\def\dateuyghur{%
+ \def\today{\number\day~\ifcase\month\or
+ يانۋار\or فېۋرال\or مارت\or ئاپرېل\or ماي\or ئىيۇن\or
+ ئىيۇل\or ئاۋغۇست\or سېنتەبىر\or ئۆكتەبىر\or نويابىر\or
+ دېكابىر\fi
+ \space\number\year}%
+}
+
+\endinput
diff --git a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
index 7aee393a353..2b4321ca6e4 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
+++ b/Master/texmf-dist/tex/latex/polyglossia/polyglossia.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{polyglossia}[2020/12/08 v1.51
+\ProvidesPackage{polyglossia}[2021/03/16 v1.52
Modern multilingual typesetting with XeLaTeX and LuaLaTeX]
\RequirePackage{etoolbox}
\RequirePackage{makecmds}
@@ -1348,16 +1348,19 @@
\DeclareRobustCommand\xpg@defaultfont@rm{%
\tl_if_empty:NF{\g__fontspec_nfss_enc_tl}{\fontencoding{\g__fontspec_nfss_enc_tl}}%
\fontfamily\rmdefault%
+ \ifdefined\UseHook\UseHook{rmfamily}\fi%
\selectfont%
}
\DeclareRobustCommand\xpg@defaultfont@sf{%
\tl_if_empty:NF{\g__fontspec_nfss_enc_tl}{\fontencoding{\g__fontspec_nfss_enc_tl}}%
\fontfamily\sfdefault%
+ \ifdefined\UseHook\UseHook{sffamily}\fi%
\selectfont%
}
\DeclareRobustCommand\xpg@defaultfont@tt{%
\tl_if_empty:NF{\g__fontspec_nfss_enc_tl}{\fontencoding{\g__fontspec_nfss_enc_tl}}%
\fontfamily\ttdefault%
+ \ifdefined\UseHook\UseHook{ttfamily}\fi%
\selectfont%
}
@@ -1427,8 +1430,10 @@
\DeclareRobustCommand\sffamily{\csuse{#1@font@sf}}%
\DeclareRobustCommand\ttfamily{\csuse{#1@font@tt}}%
\gdef\normalfont{\protect\xpg@select@fontfamily{#1}%
- \fontseries{\seriesdefault}\selectfont%
- \fontshape{\shapedefault}\selectfont}%
+ \fontseries{\seriesdefault}\selectfont%
+ \fontshape{\shapedefault}
+ \ifdefined\UseHook\UseHook{normalfont}\fi%
+ \selectfont}%
\gdef\reset@font{\protect\normalfont}%
}