Follow-up Comment #20, bug #67992 (group groff): [comment #0 original submission:] > Here's how to produce some jank: >
> $ printf '\\X"pdf: xrev"' | ./build/test-groff -ms -a
> $ printf '\\X"pdf: xrev"' | ./build/test-groff -me -a
> $ printf '\\X"pdf: xrev"' | ./build/test-groff -mm -a
> $ echo '.device pdf: xrev' | ./build/test-groff -ms -a
> $ echo '.device pdf: xrev' | ./build/test-groff -me -a
> $ echo '.device pdf: xrev' | ./build/test-groff -mm -a
>
> In every case we get a worrisome diagnostic:
>
> troff:<standard input>:1: error: spurious end trap token detected!
Fixing bug #68026 sheds a little more light on this. Doesn't fix it, but
might help illuminate the path to a fix.
$ printf '\\X"pdf: xrev"' | ./build/test-groff -ms -a
<beginning of page>
troff:<standard input>:1: warning: a "begin trap" token is not encodable in
device-independent output ('asciify' might help)
troff:<standard input>:1: error: spurious end trap token detected!
. pdf: xrev"
$ printf '\\X"pdf: xrev"' | ./build/test-groff -me -a
<beginning of page>
troff:<standard input>:1: warning: a "begin trap" token is not encodable in
device-independent output ('asciify' might help)
$ printf '\\X"pdf: xrev"' | ./build/test-groff -mm -a
<beginning of page>
troff:<standard input>:1: warning: a "begin trap" token is not encodable in
device-independent output ('asciify' might help)
- 1 -
troff:<standard input>:1: error: spurious end trap token detected!
. pdf: xrev"
$ echo '.device pdf: xrev' | ./build/test-groff -ms -a
<beginning of page>
troff:<standard input>:1: error: spurious end trap token detected!
df: xrev
$ echo '.device pdf: xrev' | ./build/test-groff -me -a
<beginning of page>
troff:<standard input>:1: error: spurious end trap token detected!
df: xrev
$ echo '.device pdf: xrev' | ./build/test-groff -mm -a
<beginning of page>
- 1 -
troff:<standard input>:1: error: spurious end trap token detected!
df: xrev
As noted earlier, preceding the device extension command with a dummy
character makes them usable.
$ printf '\\&\\X"pdf: xrev"' | ./build/test-groff -ms -a
<beginning of page>
$ printf '\\&\\X"pdf: xrev"' | ./build/test-groff -me -a
<beginning of page>
$ printf '\\&\\X"pdf: xrev"' | ./build/test-groff -mm -a
<beginning of page>
- 1 -
$ printf '\\&\n.device pdf: xrev\n' | ./build/test-groff -ms -a
<beginning of page>
$ printf '\\&\n.device pdf: xrev\n' | ./build/test-groff -me -a
<beginning of page>
$ printf '\\&\n.device pdf: xrev\n' | ./build/test-groff -mm -a
<beginning of page>
- 1 -
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67992>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
