In article <Pine.NEB.4.64.1210010402520.3628 at otaku.freeshell.org>,
Alexey Toptygin <alexeyt at freeshell.org> writes:
Any idea what "troff intermediate language
output" is? I've never heard of
it before.
See the source at:
<http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/troff/troff.d/ta.c>
42 /*
43 * drive hp2621 terminal
44 * just to see stuff quickly. like troff -a
45 */
46
47 /*
48 output language from troff:
49 all numbers are character strings
50
51 sn size in points
52 fn font as number from 1-n
53 cx ascii character x
54 Cxyz funny char xyz. terminated by white space
55 Hn go to absolute horizontal position n
56 Vn go to absolute vertical position n (down is positive)
57 hn go n units horizontally (relative)
58 vn ditto vertically
59 nnc move right nn (exactly 2 digits!), then print c
60 (this wart is an optimization that shrinks output file size
61 about 35% and run-time about 15% while preserving ascii-ness)
62 w paddable word space - no action needed
63 nb a end of line (information only -- no action needed)
64 b = space before line, a = after
65 pn begin page n
66 #...\n comment
67 Dt ...\n draw operation 't':
68 Dl x y line from here by x,y
69 Dc d circle of diameter d with left side here
70 De x y ellipse of axes x,y with left side here
71 Da x y u v arc counter-clockwise from here to u,v from center
72 with center x,y from here
73 D~ x y x y ... wiggly line by x,y then x,y ...
74 x ...\n device control functions:
75 x i init
76 x T s name of device is s
77 x r n h v resolution is n/inch
78 h = min horizontal motion, v = min vert
79 x p pause (can restart)
80 x s stop -- done for ever
81 x t generate trailer
82 x f n s font position n contains font s
83 x H n set character height to n
84 x S n set character slant to n
85
86 Subcommands like "i" are often spelled out like "init".
87 */
--
"The Direct3D Graphics Pipeline" free book
<http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>