diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2022-01-30 01:51:22 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2022-01-30 01:51:22 +0000 |
commit | 87146237f446ac00c28bc0e09ef702e13a12b31a (patch) | |
tree | 0859a1bd6ec911428659297fb03904d17b0d01d2 /Build/source/texk/web2c/ptexdir | |
parent | 9f931da9c0ee146785b71ab652d0c9daa8949f92 (diff) |
ptex: Fix for \chardef 256 and \mathcode 128--255
git-svn-id: svn://tug.org/texlive/trunk@61804 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/ptexdir')
-rw-r--r-- | Build/source/texk/web2c/ptexdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/ptexdir/ptex-base.ch | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/ptexdir/ChangeLog b/Build/source/texk/web2c/ptexdir/ChangeLog index 4caf6979306..a74cc8e1597 100644 --- a/Build/source/texk/web2c/ptexdir/ChangeLog +++ b/Build/source/texk/web2c/ptexdir/ChangeLog @@ -1,3 +1,9 @@ +2022-01-29 Hironobu Yamashita <h.y.acetaminophen@gmail.com> + + * ptex-base.ch: Fix \chardef code 256 in math. + Fix \mathcode for 128--255 not working. + https://github.com/texjporg/tex-jp-build/issues/129 + 2022-01-27 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp> * ptex-base.ch: Fix a mistake and avoid compiler warnings. @@ -12,6 +18,7 @@ * ptex.defines: Add multistrlen{short,filename}, fromBUFFshort. * ptex_version.h: Version p4.0.0. * tests/filename_test.sh, tests/printkanji.tex: Added. + https://github.com/texjporg/tex-jp-build/issues/81 2022-01-10 Karl Berry <karl@freefriends.org> diff --git a/Build/source/texk/web2c/ptexdir/ptex-base.ch b/Build/source/texk/web2c/ptexdir/ptex-base.ch index a771451154e..d6e205cecb3 100644 --- a/Build/source/texk/web2c/ptexdir/ptex-base.ch +++ b/Build/source/texk/web2c/ptexdir/ptex-base.ch @@ -6060,7 +6060,7 @@ begin KANJI(cx):=0; restart: @<Get the next non-blank non-relax...@>; reswitch:case cur_cmd of letter,other_char,char_given: - if (is_char_ascii(cur_chr) or (cur_chr=256)) then begin + if is_char_ascii(cur_chr) then begin c:=ho(math_code(cur_chr)); if c=@'100000 then begin @<Treat |cur_chr| as an active character@>; @@ -6111,16 +6111,14 @@ mmode+char_num: begin scan_char_num; cur_chr:=cur_val; @y mmode+letter,mmode+other_char,mmode+char_given: if is_char_ascii(cur_chr) then - if cur_chr<128 then set_math_char(ho(math_code(cur_chr))) - else set_math_char(cur_chr) + set_math_char(ho(math_code(cur_chr))) else set_math_kchar(cur_chr); mmode+kanji,mmode+kana,mmode+other_kchar: begin cx:=cur_chr; set_math_kchar(KANJI(cx)); end; mmode+char_num: begin scan_char_num; cur_chr:=cur_val; if is_char_ascii(cur_chr) then - if cur_chr<128 then set_math_char(ho(math_code(cur_chr))) - else set_math_char(cur_chr) + set_math_char(ho(math_code(cur_chr))) else set_math_kchar(cur_chr); end; @z |