Debian Codegraph @

texk/web2c/euptexdir/etex.ch1

raw
1 % eptexdir/etex.ch1: changefile used to build e-pTeX, see eptexdir/eptex-base.ch for details.
2 % Public domain. Originally written by Peter Breitenlohner <[email protected]>.
3
4 @x [12.184]
5 begin print(", "); print_direction(box_dir(p));
6 @y
7 begin print_direction_alt(box_dir(p));
8 @z
9
10 @x [16.215] - e-pTeX last_node_subtype
11 last_glue:=max_halfword; last_penalty:=0; last_kern:=0;
12 last_node_type:=-1;
13 @y
14 last_glue:=max_halfword; last_penalty:=0; last_kern:=0;
15 last_node_type:=-1; last_node_subtype:=-1;
16 @z
17
18 @x [17.236]
19 @d int_pars=web2c_int_pars {total number of integer parameters}
20 @y
21 @d etex_int_base=web2c_int_pars {base for \eTeX's integer parameters}
22 @z
23
24 @x [18]
25 for j:=0 to l-1 do begin
26 buffer[j]:=Lo(so(str_pool[k+j])); buffer2[j]:=Hi(so(str_pool[k+j])); end;
27 @y
28 for j:=0 to l-1 do begin
29 buffer[first+j]:=Lo(so(str_pool[k+j])); buffer2[first+j]:=Hi(so(str_pool[k+j])); end;
30 @z
31
32 @x
33 @d eTeX_int=badness_code+1 {first of \eTeX\ codes for integers}
34 @y
35 @d eTeX_int=ptex_minor_version_code+1 {first of \eTeX\ codes for integers}
36 @z
37
38 @x
39 begin case m of
40 input_line_no_code: cur_val:=line;
41 badness_code: cur_val:=last_badness;
42 ptex_version_code: cur_val:=pTeX_version;
43 uptex_version_code: cur_val:=upTeX_version;
44 eptex_version_code: cur_val:=epTeX_version_number;
45 ptex_minor_version_code: cur_val:=pTeX_minor_version;
46 end; {there and no other cases}
47 @y
48 if m>=eTeX_glue then @<Process an expression and |return|@>@;
49 else if m>=eTeX_dim then
50 begin case m of
51 @/@<Cases for fetching a dimension value@>@/
52 end; {there are no other cases}
53 cur_val_level:=dimen_val;
54 end
55 else begin case m of
56 input_line_no_code: cur_val:=line;
57 badness_code: cur_val:=last_badness;
58 ptex_version_code: cur_val:=pTeX_version;
59 uptex_version_code: cur_val:=upTeX_version;
60 eptex_version_code: cur_val:=epTeX_version_number;
61 ptex_minor_version_code: cur_val:=pTeX_minor_version;
62 @/@<Cases for fetching an integer value@>@/
63 end; {there are no other cases}
64 @z
65
66 @x [27.468]
67 @d job_name_code=ptex_convert_codes {command code for \.{\\jobname}}
68 @y
69 @d etex_convert_base=ptex_convert_codes {base for \eTeX's command codes}
70 @d eTeX_revision_code=etex_convert_base {command code for \.{\\eTeXrevision}}
71 @d etex_convert_codes=etex_convert_base+1 {end of \eTeX's command codes}
72 @d job_name_code=etex_convert_codes {command code for \.{\\jobname}}
73 @z
74
75 @x [30.581]
76 @p procedure char_warning(@!f:internal_font_number;@!c:sixteen_bits);
77 var @!l:0..255; {small indices or counters}
78 @y
79 @p procedure char_warning(@!f:internal_font_number;@!c:sixteen_bits);
80 var @!l:0..255; {small indices or counters}
81 old_setting: integer; {saved value of |tracing_online|}
82 @z
83
84 @x [32.619]
85 base_line:=cur_v; left_edge:=cur_h; disp:=0;
86 @y
87 base_line:=cur_v; disp:=0; revdisp:=0;
88 prev_p:=this_box+list_offset;
89 @<Initialize |hlist_out| for mixed direction typesetting@>;
90 left_edge:=cur_h;
91 @z
92
93 @x [32.622]
94 @<Output node |p| for |hlist_out|...@>=
95 @y
96 @<Output node |p| for |hlist_out|...@>=
97 @z
98 @x [32.622]
99 p:=link(p);
100 @y
101 prev_p:=link(prev_p); {N.B.: not |prev_p:=p|, |p| might be |lig_trick|}
102 p:=link(p);
103 @z
104
105 @x [32.623]
106 disp_node: begin disp:=disp_dimen(p); cur_v:=base_line+disp; end;
107 @y
108 disp_node: begin disp:=disp_dimen(p); revdisp:=disp; cur_v:=base_line+disp; end;
109 @z
110
111 @x [32.624]
112 cur_h:=edge+width(p); cur_v:=base_line+disp; cur_dir_hv:=save_dir;
113 @y
114 cur_h:=edge; cur_v:=base_line+disp; cur_dir_hv:=save_dir;
115 @z
116
117 @x [33.649]
118 exit: last_disp:=disp; hpack:=r;
119 @y
120 exit: last_disp:=disp;
121 if TeXXeT_en then @<Check for LR anomalies at the end of |hpack|@>;
122 hpack:=r;
123 @z
124
125 @x [33.651]
126 disp_node:disp:=disp_dimen(p);
127 @y
128 disp_node:begin disp:=disp_dimen(p); revdisp:=disp; end;
129 @z
130
131 @x
132 hn:=0;
133 loop@+ begin if is_char_node(s) then
134 begin if font(s)<>hf then goto done3;
135 hyf_bchar:=character(s); c:=qo(hyf_bchar);
136 if lc_code(c)=0 then goto done3;
137 if lc_code(c)>max_hyph_char then goto done3;
138 if hn=63 then goto done3;
139 hb:=s; incr(hn); hu[hn]:=c; hc[hn]:=lc_code(c); hyf_bchar:=non_char;
140 end
141 @y
142 hn:=0;
143 loop@+ begin if is_char_node(s) then
144 begin if font(s)<>hf then goto done3;
145 hyf_bchar:=character(s); c:=qo(hyf_bchar);
146 set_lc_code(c);
147 if hc[0]=0 then goto done3;
148 if hc[0]>max_hyph_char then goto done3;
149 if hn=63 then goto done3;
150 hb:=s; incr(hn); hu[hn]:=c; hc[hn]:=hc[0]; hyf_bchar:=non_char;
151 end
152 @z
153
154 @x
155 while q>null do
156 begin c:=qo(character(q));
157 if lc_code(c)=0 then goto done3;
158 if lc_code(c)>max_hyph_char then goto done3;
159 if j=63 then goto done3;
160 incr(j); hu[j]:=c; hc[j]:=lc_code(c);@/
161 q:=link(q);
162 end;
163 @y
164 while q>null do
165 begin c:=qo(character(q));
166 set_lc_code(c);
167 if hc[0]=0 then goto done3;
168 if hc[0]>max_hyph_char then goto done3;
169 if j=63 then goto done3;
170 incr(j); hu[j]:=c; hc[j]:=hc[0];@/
171 q:=link(q);
172 end;
173 @z
174
175 @x [44.977]
176 q:=prune_page_top(q); p:=list_ptr(v);
177 if q=null then box(n):=null {the |eq_level| of the box stays the same}
178 else begin
179 box(n):=vpack(q,natural); set_box_dir(box(n))(box_dir(v));
180 end;
181 @y
182 q:=prune_page_top(q,saving_vdiscards>0);
183 p:=list_ptr(v);
184 if q<>null then begin
185 q:=vpack(q,natural); set_box_dir(q)(box_dir(v));
186 end;
187 change_box(q);
188 @z
189
190 @x [47.1096]
191 else begin adjust_hlist(head,true); line_break(widow_penalty)
192 @y
193 else begin adjust_hlist(head,true); line_break(false)
194 @z
195
196 @x [47.1110]
197 begin if type(box(cur_val))=dir_node then
198 begin delete_glue_ref(space_ptr(box(cur_val)));
199 delete_glue_ref(xspace_ptr(box(cur_val)));
200 free_node(box(cur_val),box_node_size);
201 @y
202 begin if type(p)=dir_node then
203 begin delete_glue_ref(space_ptr(p));
204 delete_glue_ref(xspace_ptr(p));
205 free_node(p,box_node_size);
206 @z
207 @x [47.1110]
208 link(tail):=list_ptr(p); box(cur_val):=null;
209 @y
210 link(tail):=list_ptr(p); change_box(null);
211 @z
212
213 @x [48.1145]
214 pop_nest; w:=-max_dimen;
215 end
216 { |disp_node|-only paragraphs are ignored }
217 @y
218 @<Prepare for display after an empty paragraph@>
219 end
220 { |disp_node|-only paragraphs are ignored }
221 @z
222
223 @x [48.1145]
224 else begin adjust_hlist(head,true); line_break(display_widow_penalty);@/
225 @y
226 else begin adjust_hlist(head,true); line_break(true);@/
227 @z
228
229 @x [49.1247]
230 if box(b)<>null then
231 begin q:=box(b); p:=link(q);
232 @y
233 if b<>null then
234 begin q:=b; p:=link(q);
235 @z
236 @x [49.1247]
237 begin p:=link(box(b)); link(box(b)):=null;
238 @y
239 begin p:=link(b); link(b):=null;
240 @z
241 @x [49.1247]
242 link(q):=p; link(box(b)):=q;
243 @y
244 link(q):=p; link(b):=q;
245 @z
246
247 @x [49.1291]
248 @d show_mode=4 { \.{\\showmode} }
249 @y
250 @d show_mode=7 { \.{\\showmode} }
251 @z
252