Debian Codegraph @

texk/seetexk/dvicodes.h

raw
1 /* Copyright (c) 1987, 1989, 2012 University of Maryland Department of
2 Computer Science.
3
4 Permission is hereby granted, free of charge, to any person obtaining
5 a copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation, the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and/or sell copies of the Software, and to
9 permit persons to whom the Software is furnished to do so, subject to
10 the following conditions: The above copyright notice, this permission
11 notice and the disclaimer statement shall be included in all copies
12 or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 */
22
23 /* DVI opcodes */
24
25 #define DVI_VERSION 2 /* version number that should appear in
26 pre- and post-ambles */
27 #ifdef ASCIIPTEX
28 #define DVI_PTEXVERSION 3 /* version number that should appear in
29 post-ambles which are contained in
30 dvi files using DIR command*/
31 #endif /* ASCIIPTEX */
32
33 #define DVI_SET1 128 /* set character, 1 byte param */
34 #define DVI_SET2 129 /* set character, 2 byte param */
35 #define DVI_SET3 130 /* set character, 3 byte param */
36 #define DVI_SET4 131 /* set character, 4 byte param */
37 #define DVI_SETRULE 132 /* set a rule */
38 #define DVI_PUT1 133 /* put char, don't move right */
39 #define DVI_PUT2 134 /* put char, 2 byte */
40 #define DVI_PUT3 135 /* etc */
41 #define DVI_PUT4 136
42 #define DVI_PUTRULE 137 /* put rule, don't move right */
43 #define DVI_NOP 138 /* no-op */
44 #define DVI_BOP 139 /* begin page */
45 #define DVI_EOP 140 /* end page */
46 #ifdef ASCIIPTEX
47 #define DVI_PUSH 141 /* push h,v,w,x,y,z,d */
48 #define DVI_POP 142 /* pop h,v,w,x,y,z,d */
49 #else /* !ASCIIPTEX */
50 #define DVI_PUSH 141 /* push h,v,w,x,y,z */
51 #define DVI_POP 142 /* pop h,v,w,x,y,z */
52 #endif /* !ASCIIPTEX */
53 #define DVI_RIGHT1 143 /* move right, 1 byte signed param */
54 #define DVI_RIGHT2 144 /* move right, 2 byte signed param */
55 #define DVI_RIGHT3 145 /* etc */
56 #define DVI_RIGHT4 146
57 #define DVI_W0 147 /* h += w */
58 #define DVI_W1 148 /* w = 1 byte signed param, h += w */
59 #define DVI_W2 149 /* w = 2 byte etc, h += w */
60 #define DVI_W3 150
61 #define DVI_W4 151
62 #define DVI_X0 152 /* like DVI_W0 but for x */
63 #define DVI_X1 153 /* etc */
64 #define DVI_X2 154
65 #define DVI_X3 155
66 #define DVI_X4 156
67 #define DVI_DOWN1 157 /* v += 1 byte signed param */
68 #define DVI_DOWN2 158 /* v += 2 byte signed param */
69 #define DVI_DOWN3 159 /* etc */
70 #define DVI_DOWN4 160
71 #define DVI_Y0 161 /* y = 1 byte signed param, v += y */
72 #define DVI_Y1 162 /* etc */
73 #define DVI_Y2 163
74 #define DVI_Y3 164
75 #define DVI_Y4 165
76 #define DVI_Z0 166 /* z = 1 byte signed param, v += z */
77 #define DVI_Z1 167 /* etc */
78 #define DVI_Z2 168
79 #define DVI_Z3 169
80 #define DVI_Z4 170
81 #define DVI_FNTNUM0 171
82
83 #define DVI_FNT1 235 /* select font, 1 byte param */
84 #define DVI_FNT2 236 /* etc */
85 #define DVI_FNT3 237
86 #define DVI_FNT4 238
87 #define DVI_XXX1 239 /* for \special: if length < 256 */
88 #define DVI_XXX2 240 /* etc */
89 #define DVI_XXX3 241
90 #define DVI_XXX4 242
91 #define DVI_FNTDEF1 243 /* Define font, 1 byte param (0 to 63) */
92 #define DVI_FNTDEF2 244 /* etc */
93 #define DVI_FNTDEF3 245
94 #define DVI_FNTDEF4 246
95 #define DVI_PRE 247 /* preamble */
96 #define DVI_POST 248 /* postamble */
97 #define DVI_POSTPOST 249 /* end of postamble */
98 #ifdef ASCIIPTEX
99 #define DVI_DIR 255 /* d (direction) = 1 byte signed param */
100 #endif /* ASCIIPTEX */
101 #define DVI_FILLER 223 /* filler bytes at end of dvi file */