It's the biggest challenge yet.

Come one, come all, users of device-independent troffs, and test your
mettle against the cruel mistress of implementation!

Pick your favorite formatter(s) and predict the output of the following.

You can, and perhaps should, input each of these as a distinct document.
(You can it on the command line with some printf(1) finagling.)

The enumerators are for convenient reference in the event of discussion.
They are irrelevant to the phenomena I mean to explore.

01.  \b'TMB'
02.  \b@TMB@
03.  \b-TMB-
04.  \b|TMB|
05.  \b0TMB0

06.  \C'hy'
07.  \C@hy@
08.  \C-hy-
09.  \C|hy|
10.  \C0hy0

11.  \D'c 0.1i'
12.  \D@c 0.1i@
13.  \D-c 0.1i-
14.  \D|c 0.1i|
15.  \D0c 0.1i0

16.  A\h'99'B
17.  A\h@99@B
18.  A\h-99-B
19.  A\h|99|B
20.  A\h0990B

21.  foo\H'17'bar
22.  foo\H@17@bar
23.  foo\H-17-bar
24.  foo\H|17|bar
25.  foo\H0170bar

26.  A\l'9'B
27.  A\l@9@B
28.  A\l-9-B
29.  A\l|9|B
30.  A\l090B

31.  A\L'9'B
32.  A\L@9@B
33.  A\L-9-B
34.  A\L|9|B
35.  A\L090B

36.  \N'65'
37.  \N@65@
38.  \N-65-
39.  \N|65|
40.  \N0650

41.  \S'17'
42.  \S@17@
43.  \S-17-
44.  \S|17|
45.  \S0170

46.  A\v'9'B
47.  A\v@9@B
48.  A\v-9-B
49.  A\v|9|B
50.  A\v090B

51.  \w'99'
52.  \w@99@
53.  \w-99-
54.  \w|99|
55.  \w0990

56.  foo\x'9'
     .br
     bar
57.  foo\x@9@
     .br
     bar
58.  foo\x-9-
     .br
     bar
59.  foo\x|9|
     .br
     bar
60.  foo\x090
     .br
     bar

61.  \X'hello, device command world'
62.  \X@hello, device command world@
63.  \X-hello, device command world-
64.  \X|hello, device command world|
65.  \X0hello, device command world0

And here's a bonus challenge for groff and compatibles.

66.  foo\s'17'bar
67.  foo\s@17@bar
68.  foo\s-17-bar
69.  foo\s|17|bar
70.  foo\s0170bar

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to