summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/babel/xebabel.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/xebabel.def')
-rw-r--r--Master/texmf-dist/tex/generic/babel/xebabel.def18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/xebabel.def b/Master/texmf-dist/tex/generic/babel/xebabel.def
index bef572727a2..e6bc6b1dae6 100644
--- a/Master/texmf-dist/tex/generic/babel/xebabel.def
+++ b/Master/texmf-dist/tex/generic/babel/xebabel.def
@@ -7,7 +7,7 @@
%% babel.dtx (with options: `xetex')
%%
%%
-%% Copyright (C) 2012-2023 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2024 Javier Bezos and Johannes L. Braams.
%% Copyright (C) 1989-2012 Johannes L. Braams and
%% any individual authors listed elsewhere in this file.
%% All rights reserved.
@@ -302,6 +302,18 @@
\XeTeXcharclass`#1 \bbl@tempc
\fi
\count@`#1\relax}
+\newcommand\IfBabelIntercharT[1]{%
+ \let\bbl@tempa\@gobble % Assume to ignore
+ \edef\bbl@tempb{\zap@space#1 \@empty}%
+ \ifx\bbl@KVP@interchar\@nnil\else
+ \bbl@replace\bbl@KVP@interchar{ }{,}%
+ \bbl@foreach\bbl@tempb{%
+ \bbl@xin@{,##1,}{,\bbl@KVP@interchar,}%
+ \ifin@
+ \let\bbl@tempa\@firstofone
+ \fi}%
+ \fi
+ \bbl@tempa}
\newcommand\babelcharclass[3]{%
\EnableBabelHook{babel-interchar}%
\bbl@csarg\newXeTeXintercharclass{xeclass@#2@#1}%
@@ -353,9 +365,9 @@
\bbl@exp{\\\bbl@for\\\bbl@tempb{\zap@space#4 \@empty}}{%
\XeTeXinterchartoks
\@nameuse{bbl@xeclass@\bbl@tempa @%
- \bbl@ifunset{bbl@xeclass@\bbl@tempa @#2}{}{#2}}
+ \bbl@ifunset{bbl@xeclass@\bbl@tempa @#2}{}{#2}} %
\@nameuse{bbl@xeclass@\bbl@tempb @%
- \bbl@ifunset{bbl@xeclass@\bbl@tempb @#2}{}{#2}}
+ \bbl@ifunset{bbl@xeclass@\bbl@tempb @#2}{}{#2}} %
= \expandafter{%
\csname bbl@ic@\bbl@kv@label @#2\expandafter\endcsname
\csname\zap@space bbl@xeinter@\bbl@kv@label