From mboxrd@z Thu Jan 1 00:00:00 1970 From: rudolf.sykora@gmail.com (Rudolf Sykora) Date: Sun, 3 Apr 2011 13:50:21 +0200 Subject: [9fans] tr2post ignores \X'anything' troff lines In-Reply-To: References: Message-ID: Topicbox-Message-UUID: c67c9502-ead6-11e9-9d60-3106f5b1d025 On 3 April 2011 13:21, Rudolf Sykora 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