(more) nroff questions on italics/underscore
Peter King
pjbk at hwcs.UUCP
Tue Nov 6 03:45:54 AEST 1984
In response to the original question about the use of a hard-wired
'_' character to do italics/underscore in nroff.
I don't know why it is done that way, but it does give
onesome possibilities of distinguishing italic font
from any thing the user could have typed in his
source file.
a) The technique would be:- let none of the entries in the table
use '_' at all, but use some other character using an octal escape
sequence, which can be converted by a filter to the '_'
character.
b) The same filter can be used to interpret '_^Hx' as an 'x'
in the device's italic/underlined font.
We have a set of tables and a filter that does b) but not a)
for an Anadex printer.
2) I also ran into this problem when trying to write a table
to drive the Anadex printer's proportional font.
nroff seems to have simple typewriter style widths
built into the code (as assumptions).
Attempts to define the t.char as a smallish distance
apart from running into accuracy problems (since 1/240
was not a factor of the distance needed) also
caused floating point exceptions all over the show.
I'm afraid the problem still exists here, and we cannot
use the proportional fonts from 'nroff'.
(Perhaps 'ditroff' will be able to do it)
More information about the Comp.unix.wizards
mailing list