Skip to content

Commit

Permalink
ptex-base.ch: get kansujichar (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Oct 14, 2019
1 parent 4a522c9 commit f38d636
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/texk/web2c/ptexdir/ptex-base.ch
Expand Up @@ -2060,6 +2060,7 @@ begin m:=cur_chr;
case cur_cmd of
assign_kinsoku: @<Fetch breaking penalty from some table@>;
assign_inhibit_xsp_code: @<Fetch inhibit type from some table@>;
set_kansuji_char: @<Fetch kansuji char code from some table@>;
def_code: @<Fetch a character code from some table@>;
toks_register,assign_toks,def_family,set_font,def_font,def_jfont,def_tfont:
@<Fetch a token list or font identifier, provided that |level=tok_val|@>;
Expand Down Expand Up @@ -6405,6 +6406,17 @@ else
define(kansuji_base+n,n,tokanji(toDVI(cur_val)));
end;
@ @<Fetch kansuji char code from some table@>=
begin scan_int;
if (cur_val<0)or(cur_val>9) then
begin print_err("Invalid KANSUJI number ("); print_int(cur_val); print_char(")");
help1("I'm skipping this control sequences.");@/
error; return;
end
else
cur_val:=fromDVI(kansuji_char(cur_val));
end
@ |print_kansuji| procedure converts a number to KANJI number.
@ @<Declare procedures needed in |scan_something_internal|@>=
Expand Down

0 comments on commit f38d636

Please sign in to comment.