diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf')
-rw-r--r-- | Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf index 21ab4a12da8..3b299b36c77 100644 --- a/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf +++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-breton.ldf @@ -7,13 +7,22 @@ fontsetup=true, } -\newXeTeXintercharclass\breton@punctthin % ! ? ; -\newXeTeXintercharclass\breton@punctthick % : +\ifluatex + \newluatexattribute\xpg@frpt + \directlua{polyglossia.load_frpt()} +\else + \newXeTeXintercharclass\breton@punctthin % ! ? ; + \newXeTeXintercharclass\breton@punctthick % : +\fi \def\breton@punctthinspace{{\unskip\thinspace}} \def\breton@punctthickspace{{\unskip\nobreakspace}} \def\breton@punctuation{% + \ifluatex + \global\xpg@frpt=1\relax + \directlua{polyglossia.activate_frpt()}% + \else \XeTeXinterchartokenstate=1% \XeTeXcharclass `\! \breton@punctthin \XeTeXcharclass `\? \breton@punctthin @@ -21,14 +30,19 @@ \XeTeXcharclass `\: \breton@punctthick \XeTeXinterchartoks \z@ \breton@punctthin = \breton@punctthinspace \XeTeXinterchartoks \z@ \breton@punctthick = \breton@punctthickspace + \fi } \def\nobreton@punctuation{% + \ifluatex + \global\xpg@frpt=0\relax + \else \XeTeXcharclass `\! \z@ \XeTeXcharclass `\? \z@ \XeTeXcharclass `\; \z@ \XeTeXcharclass `\: \z@ \XeTeXinterchartokenstate=0% + \fi } |