bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62640] groff command insists on a device postprocessor even if -Z


From: G. Branden Robinson
Subject: [bug #62640] groff command insists on a device postprocessor even if -Z
Date: Thu, 16 Jun 2022 11:39:06 -0400 (EDT)

Follow-up Comment #2, bug #62640 (project groff):


[comment #1 comment #1:]
> A valid postprocessor is required to provide the appropriate values from the
DESC file.

Right.  I'm not saying the DESC file isn't needed, I'm saying the
postprocessor itself, the output driver, isn't.

*IF* you use groff -Z or groff -X.

> Without these values the resulting -Z output would be meaningless.

Worse than that, as I understand it would impossible to construct in the first
place.

> The particular postprocessor for which the output is intended, is specified
in the first line of the -Z output, so the output device can complain if it is
fed intermediate output intended for another device.

Yes, it _can_ complain, but it might choose not to, as, for instance,
gxditview(1) accepts "grout" (groff device-independent output) for the "ps"
device along with the X* devices.

> So it should be fatal since it is definitely a mistake not to specify a
valid device.

I disagree.  What I'm trying to do here is lay some foundation for generating
C/A/T output with groff and view it with something else--like gxditview(1).

After patching groff(1), I can do the following.


$ cp -a ~/src/unix/v8/usr/src/cmd/troff/devcat ./font/
$ printf 'Hello, world!\n' | ./build/test-groff -Z -Tcat
troff: /home/branden/src/GIT/groff/build/../font/devcat/R: error: font
description 'spacewidth' directive missing
troff: /home/branden/src/GIT/groff/build/../font/devcat/I: error: font
description 'spacewidth' directive missing
troff: /home/branden/src/GIT/groff/build/../font/devcat/B: error: font
description 'spacewidth' directive missing
troff: /home/branden/src/GIT/groff/build/../font/devcat/S: error: font
description 'spacewidth' directive missing
x T cat
x res 432 1 3
x init
p1
x font 1 R
f1
s10
V72
H432
md
DFd
cH48e30l17l17o33,w40w43o33r23l17d33!h20
n72 0
x trailer
V4752
x stop



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62640>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]