* [9fans] tr2post ignores \X'anything' troff lines
@ 2011-04-03 11:21 Rudolf Sykora
2011-04-03 11:50 ` Rudolf Sykora
0 siblings, 1 reply; 2+ messages in thread
From: Rudolf Sykora @ 2011-04-03 11:21 UTC (permalink / raw)
Hello 9fans,
I found that tr2post (at least on p9p) seems to discard [not process]
lines produced with \X'anything' in troff, so an input like
hello
\X'ps: exec 1 0 0 setrgbcolor'
blabla
results in output *without* the setrgbcolor line.
(using lines like this one can achieve coloured .ps, in this case the
'blabla' should be red)
Best regards
Ruda
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] tr2post ignores \X'anything' troff lines
2011-04-03 11:21 [9fans] tr2post ignores \X'anything' troff lines Rudolf Sykora
@ 2011-04-03 11:50 ` Rudolf Sykora
0 siblings, 0 replies; 2+ messages in thread
From: Rudolf Sykora @ 2011-04-03 11:50 UTC (permalink / raw)
On 3 April 2011 13:21, Rudolf Sykora <rudolf.sykora at gmail.com> wrote:
> Hello 9fans,
>
> I found that tr2post (at least on p9p) seems to discard [not process]
> lines produced with \X'anything' in troff, so an input like
>
> hello
> \X'ps: exec 1 0 0 setrgbcolor'
> blabla
>
> results in output *without* the setrgbcolor line.
> (using lines like this one can achieve coloured .ps, in this case the
> 'blabla' should be red)
>
> Best regards
> Ruda
>
Ok, it seems that what I need is a modification of
/src/cmd/postscript/tr2post/devcntl.c
in the case 'X' part.
Is there any reason for this
/* else
error(WARNING, "Unknown string <%s %s> after x X\n", str, buf);
*/
being commented out?
Thanks
Ruda
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-03 11:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-03 11:21 [9fans] tr2post ignores \X'anything' troff lines Rudolf Sykora
2011-04-03 11:50 ` Rudolf Sykora
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).