Problem with NROFF '.cu' command
Jaap Akkerhuis
jaap at mcvax.UUCP
Thu Nov 24 11:09:14 AEST 1983
Sorry about it, but I have made a mistake.
If the .cu command is effective, the spaces on the input will be changed
to an "_". So the complete input line will be considered as a single
word by nroff. (Note: this only happens in nroff).
It is done in the routine gettch(), in n7.c.
It is probably possible to delay the underlining after the line filling has
taken place.
You probably want to remove the spaces to "_" translation in gettch.
Then you want to do something in n10.c. There are two possible points:
1) In move() you can generated the desired numbers of underlines, when
it is processing the "esc", but it will likely have a bad effect if
.ce as well as .cu is effective, also the local motions (\h'x')
will get problems.
2) In ptout1() is a test or the character is a space.
The "esc" will then enlarged with the t.Char.
Of course this will be a nice point to change it in an "_", but
the underlining will be not continuous, if you allow the spaces to
be plotted for nicer adjusting on f.i. a Diablo printer.
jaap akkerhuis, ...mcvax!jaap
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list