diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex b/Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex index 6651255d1d7..77a8f5f1963 100644 --- a/Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex +++ b/Master/texmf-dist/tex/generic/unicode-data/load-unicode-data.tex @@ -71,7 +71,7 @@ \catcode`\^=7 % \newlinechar=`\^^J % \message{^^J}% - \message{load-unicode-data.tex v1.1a (2016-01-06)^^J}% + \message{load-unicode-data.tex v1.1b (2016-01-08)^^J}% \message{Reading Unicode data^^J}% % The first stage of parsing is dealing with the fact that there are lots of % data items separated by |;|. Of those, only a few are needed so they are @@ -126,6 +126,7 @@ \global\sfcode"#1=999 % \fi \else + \def\temp{#2}% \ifnum 0\ifx\temp\Pe 1\fi\ifx\temp\Pf 1\fi>0 % \global\sfcode"#1=0 % \fi @@ -164,12 +165,14 @@ }% \def\parseunicodedataXII#1;#2\relax#3;#4\relax{% \if L\firsttoken#4?\relax - \count0="#3 % - \loop - \unless\ifnum\count0>"#1 % - \parseunicodedataV{\count0}% - \advance\count0 by 1 % - \repeat + \begingroup + \count0="#3 % + \loop + \unless\ifnum\count0>"#1 % + \parseunicodedataV{\count0}% + \advance\count0 by 1 % + \repeat + \endgroup \fi }% % From plain: may not be defined (yet). @@ -246,21 +249,21 @@ }% % |MathClass.txt|: this just needs one token of the 'rest' of the line. % Examine the Unicode class and if known set up the math code appropriately. - \chardef\L=1 % - \chardef\B=2 % - \chardef\V=2 % - \chardef\R=3 % - \chardef\O=4 % - \chardef\C=5 % - \chardef\P=6 % - \chardef\A=7 % + \chardef\mathclassL=1 % + \chardef\mathclassB=2 % + \chardef\mathclassV=2 % + \chardef\mathclassR=3 % + \chardef\mathclassO=4 % + \chardef\mathclassC=5 % + \chardef\mathclassP=6 % + \chardef\mathclassA=7 % \def\parseunicodedataIV#1#2#3#4\relax{% \begingroup \count0="#1 % \loop - \ifnum\count0<"#2 % - \ifcsname #3\endcsname - \global\Umathcode\count0=\csname #3\endcsname 1 \count0 % + \unless\ifnum\count0>"#2 % + \ifcsname mathclass#3\endcsname + \global\Umathcode\count0=\csname mathclass#3\endcsname 1 \count0 % \fi \advance\count0 by 1 % \repeat |