summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf22
1 files changed, 5 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf
index 3ca18cf0c96..e5702096b73 100644
--- a/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf
@@ -141,43 +141,31 @@
}
\def\tibetan@globalnumbers{%
- \let\orig@arabic\@arabic%
+ \let\xpg@orig@arabic\@arabic%
\let\@arabic\tibetannumber%
\renewcommand{\thefootnote}{\protect\tibetannumber{\c@footnote}}%
}
\def\notibetan@globalnumbers{%
- \let\@arabic\orig@arabic%
+ \let\@arabic\xpg@orig@arabic%
\renewcommand\thefootnote{\protect\number{\c@footnote}}%
}
\def\noextras@tibetan{%
\notibetan@eol%
- \let\baselinestrech\orig@baselinestretch%
- }
-
-\def\blockextras@tibetan{%
- % copied from Thai, not tested
- \let\orig@baselinestrech\baselinestretch%
- \renewcommand{\baselinestretch}{1.2}%
- \tibetan@eol%
+ \ifcsname xpg@orig@baselinestretch\endcsname\renewcommand{\baselinestretch}{\xpg@orig@baselinestretch}\fi %
}
\def\inlineextras@tibetan{%
- \let\orig@baselinestrech\baselinestretch%
+ \xdef\xpg@orig@baselinestretch{\ifcsname baselinestretch\endcsname \baselinestretch \else 1\fi}%
\renewcommand{\baselinestretch}{1.2}%
\tibetan@eol%
}
\def\blockextras@tibetan{%
- \let\orig@baselinestrech\baselinestretch%
+ \xdef\xpg@orig@baselinestretch{\ifcsname baselinestretch\endcsname \baselinestretch \else 1\fi}%
\renewcommand{\baselinestretch}{1.2}%
\tibetan@eol%
}
-\def\noblockextras@tibetan{%
- \notibetan@eol%
- \let\baselinestrech\orig@baselinestretch%
-}
-
\endinput