On Sunday 26 October 2008 01:22:38 Miklos Somogyi wrote:
> I need to start the remainder at the beginning of
> the next line. That would make my groff source
> less readable:
>
> xxx
> xxx ww
> xxx w
Hi Miklos,
> xxx
> xxx ww
> xxx ww\
> www
> xxx www
>
> I would like to push the remainder of w to the right so as not to
> obscure th
On 26/10/2008, at 06:50 PM, Keith Marshall wrote:
On Sunday 26 October 2008 01:22:38 Miklos Somogyi wrote:
I need to start the remainder at the beginning of
the next line. That would make my groff source
less readable:
xxx
xxx www
Hello Ralph,
Since I need to do this thing far too many times, your idea of a
preprocessor seems just great.
I don't know about sed but wrote a few scripts in perl (or Perl?), so
this would be an easy job.
And it could be placed under the jurisdiction of my groff alias that
does a couple
Hi Miklos,
> >$ sed ':l;/--$/{N;s/--\n *//;b l}'
> Since I need to do this thing far too many times, your idea of a
> preprocessor seems just great. I don't know about sed but wrote a few
> scripts in perl (or Perl?), so this would be an easy job.
Well, the sed script is simple enough. I
On Sunday 26 October 2008 11:27:38 Ralph Corderoy wrote:
> To change the sed script to treat a backslash at the end of the
> line as the continuation marker, you just need to be aware that it
> needs escaping with another, like Perl.
>
> sed ':l;/\\$/{N;s/\\\n *//;b l}'
I too would choose sed,
> > > I need to start the remainder at the beginning of the next line.
> > > That would make my groff source less readable:
> > >
> > > xxx
> > > xxx ww
> > > xxx ww\
> > > www
Keith, Ralph & Werner,
Thank you all for your suggestions. I think that the .nop thing is
very ingenious but perhaps
a preprocessor that needs to be done only once is the the better way
to go.
Folks, I've tried your sed things but either my sed does not work
(like eqn) or some special ch
I wrote an extensive tutorial on sed back about 1987 or so. It's part
of HP's HP-UX User Guide series: "Text Editors and Processors". I don't
know if you can get your hands on it or not. I based it on the
sed standards-conformance tests that were run before the software could
be shipped, plus o