Skip to content

Commit 1c41b31

Browse files
committed
uptex: Enable ^^^^xyzw format only whein isinternalUPTEX
git-svn-id: svn://tug.org/texlive/trunk/Build/source@73769 c570f23f-e606-0410-a88d-b1316a301751
1 parent 34030e1 commit 1c41b31

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

texk/web2c/uptexdir/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-02-08 TANAKA Takuji <[email protected]>
2+
3+
* uptex-m.ch: Enable ^^^^xyzw format only when
4+
internal encoding is upTeX.
5+
16
2025-02-07 TANAKA Takuji <[email protected]>
27

38
* uptex-m.ch: Enable catcode mac_param(6) for

texk/web2c/uptexdir/uptex-m.ch

+4-5
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ hangul_code(mid_kanji):
703703
@x
704704
begin c:=buffer[loc+1]; @+if c<@'200 then {yes we have an expanded char}
705705
@y
706-
begin if (cur_chr=buffer[loc+1]) and (cur_chr=buffer[loc+2]) and
707-
((loc+6)<=limit) then
706+
begin if (isinternalUPTEX) and ((loc+6)<=limit) and
707+
(cur_chr=buffer[loc+1]) and (cur_chr=buffer[loc+2]) then
708708
begin c:=buffer[loc+3]; cc:=buffer[loc+4];
709709
cd:=buffer[loc+5]; ce:=buffer[loc+6];
710710
if is_hex(c) and is_hex(cc) and is_hex(cd) and is_hex(ce) then
@@ -798,10 +798,9 @@ if cat=other_kchar then decr(k); {now |k| points to first nonletter}
798798
until not((cat=letter)or(cat=kanji)or(cat=kana)or(cat=hangul)or(cat=modifier))or(k>limit);
799799
{@@<If an expanded...@@>;}
800800
if not((cat=letter)or(cat=kanji)or(cat=kana)or(cat=hangul)or(cat=modifier)) then begin
801-
if (cat=mac_param)and(buffer2[k-1])and(multilenbuffchar(cur_chr)>1) then k:=k-multilenbuffchar(cur_chr)
801+
if (buffer2[k-1]) then k:=k-multilenbuffchar(cur_chr)
802802
else decr(k);
803-
end;
804-
if cat=other_kchar then k:=k-multilenbuffchar(cur_chr)+1; {now |k| points to first nonletter}
803+
end; {now |k| points to first nonletter}
805804
@z
806805
807806
@x

0 commit comments

Comments
 (0)