| 1 |
% $Id: enctex-pdftex.ch 65813 2023-02-13 16:30:22Z karl $ |
| 2 |
% enctex1.ch is applied first. |
| 3 |
% Then this change is applied for pdfTeX et al. (but not TeX), |
| 4 |
% assuming that tracingstacklevels.ch, partoken.ch, and showstream.ch |
| 5 |
% have been included, as specified in the *.am files. |
| 6 |
|
| 7 |
% encTeX: \mubytein \mubyteout \mubytelog and \specialout |
| 8 |
@x [17.236] l.4954 |
| 9 |
@d web2c_int_pars=web2c_int_base+6 {total number of web2c's integer parameters} |
| 10 |
@y |
| 11 |
@d mubyte_in_code=web2c_int_base+6{if positive then reading mubytes is active} |
| 12 |
@d mubyte_out_code=web2c_int_base+7{if positive then printing mubytes is active} |
| 13 |
@d mubyte_log_code=web2c_int_base+8{if positive then print mubytes to log and terminal} |
| 14 |
@d spec_out_code=web2c_int_base+9 {if positive then print specials by mubytes} |
| 15 |
@d web2c_int_pars=web2c_int_base+10 {total number of web2c's integer parameters} |
| 16 |
@z |
| 17 |
|
| 18 |
% see pdftex.web for more about this. |
| 19 |
@x [53.1353] - encTeX: late \special stores specialout and mubyteout values |
| 20 |
begin new_whatsit(latespecial_node,write_node_size); write_stream(tail):=null; |
| 21 |
p:=scan_toks(false,false); write_tokens(tail):=def_ref; |
| 22 |
@y |
| 23 |
begin new_whatsit(latespecial_node,write_node_size); |
| 24 |
if spec_out + mubyte_zero < 0 then write_stream(tail) := 0 |
| 25 |
else if spec_out + mubyte_zero >= 2*mubyte_zero then |
| 26 |
write_stream(tail) := 2*mubyte_zero - 1 |
| 27 |
else write_stream(tail) := spec_out + mubyte_zero; |
| 28 |
if mubyte_out + mubyte_zero < 0 then write_mubyte(tail) := 0 |
| 29 |
else if mubyte_out + mubyte_zero >= 2*mubyte_zero then |
| 30 |
write_mubyte(tail) := 2*mubyte_zero - 1 |
| 31 |
else write_mubyte(tail) := mubyte_out + mubyte_zero; |
| 32 |
if (spec_out = 2) or (spec_out = 3) then |
| 33 |
if (mubyte_out > 2) or (mubyte_out = -1) or (mubyte_out = -2) then |
| 34 |
write_noexpanding := true; |
| 35 |
p:=scan_toks(false,false); write_tokens(tail):=def_ref; |
| 36 |
write_noexpanding := false; |
| 37 |
@z |