summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir/updvitype.ch
blob: 155e3b3417a45594487057c4138c1d168c4c8ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@x
@d my_name=='pdvitype'
@d banner=='This is pDVItype, Version 3.6-p0.4'
@y
@d my_name=='updvitype'
@d banner=='This is upDVItype, Version 3.6-p0.4-u1.25'
@z

@x procedure initialize
  print (banner);
  print_ln (version_string);
@y
  print (banner);
  print (' (');
  print (conststringcast(get_enc_string));
  print (')');
  print_ln (version_string);
@z

@x procedure out_kanji
  if text_ptr>=line_length-3 then flush_text;
  c:=toBUFF(fromDVI(c));
  incr(text_ptr); text_buf[text_ptr]:= Hi(c);
  incr(text_ptr); text_buf[text_ptr]:= Lo(c);
@y
  if text_ptr>=line_length-5 then flush_text;
  c:=toBUFF(fromDVI(c));
  if BYTE1(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE1(c); end;
  if BYTE2(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE2(c); end;
  if BYTE3(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE3(c); end;
                            incr(text_ptr); text_buf[text_ptr]:=BYTE4(c);
@z

@x
      usage_help (PDVITYPE_HELP, 'issue@@texjp.org');
@y
      usage_help (UPDVITYPE_HELP, 'issue@@texjp.org');
@z