diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-20 22:03:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-20 22:03:38 +0000 |
commit | f78323b8060c819726a015d8b6cfa051bb94ddda (patch) | |
tree | bdb0e4820ff719889b6ddbdb97e3030d7ac6aa7f /Master/texmf-dist/tex/latex/polyglossia/gloss-tibetan.ldf | |
parent | f7a55a4aadc98501bb86c486d52022177d1f5d18 (diff) |
polyglossia (20may13)
git-svn-id: svn://tug.org/texlive/trunk@30596 c570f23f-e606-0410-a88d-b1316a301751
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% } |