diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf index 759bc8c08e9..3ca18cf0c96 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf @@ -22,6 +22,31 @@ \@tibetan@numeralsfalse\fi } +\ifluatex + \newluatexattribute\xpg@tibteol % + \directlua{polyglossia.load_tibt_eol()}% +\fi + +\def\tibetan@eol{% + \ifluatex % + \xpg@tibteol=1\relax % + \directlua{polyglossia.activate_tibt_eol()}% + \else % + \XeTeXlinebreaklocale "bo"% + \XeTeXlinebreakskip=0pt plus 0.1em% doesn't do much, but doesn't harm I guess... + \fi % +} + +\def\notibetan@eol{% + \ifluatex % + \xpg@tibteol=0\relax % + %\directlua{polyglossia.activate_tibt_eol()}% + \else % + \XeTeXlinebreaklocale "en"% en? really? + \XeTeXlinebreakskip=0pt plus 0pt% + \fi % +} + \setkeys{tibetan}{numerals} % some are known, but very few @@ -120,18 +145,38 @@ \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\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% + } + +\def\inlineextras@tibetan{% + \let\orig@baselinestrech\baselinestretch% + \renewcommand{\baselinestretch}{1.2}% + \tibetan@eol% + } + +\def\blockextras@tibetan{% + \let\orig@baselinestrech\baselinestretch% + \renewcommand{\baselinestretch}{1.2}% + \tibetan@eol% } + \def\noblockextras@tibetan{% + \notibetan@eol% \let\baselinestrech\orig@baselinestretch% } |