groff
[Top][All Lists]
Advanced

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

Re: [Groff] Groff conversion with 190 characters in each line


From: Ralph Corderoy
Subject: Re: [Groff] Groff conversion with 190 characters in each line
Date: Sat, 12 Jan 2013 18:29:52 +0000

Hi Tadziu,

> > He might benefit from a .eo before the text of his file to turn off
> > backslash as the escape character?
>
> Ugh. You're right. However, then the "\&" won't be understood anymore
> either.

I did realise that, then got distracted, did something else, and came
back to the email and was thinking about .cc and .c2.  :-)

>  I think it's easier just filtering the input text with sed and
>  doubling all backslashes (you need to filter anyway to prepend "\&"
>  to all lines).

I agree, filtering it all with sed is the way to go.  But use \e rather
than \\?

    sed 's/\\/&e/g; s/^/\\\&/'

Cheers, Ralph.



reply via email to

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