[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] developers only?
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] developers only? |
Date: |
Wed, 30 Mar 2005 15:33:22 +0200 (CEST) |
> > I'm printing the lyrics of a CD; I want it in 2-col; so I did
> >
> > .2c
> > .nf
> >
> > I wanted groff to *not* join short lines but break long lines;
> > Short lines were not joined, ok!
> > But groff did not break the long lines :-))
> > - Long lines in the first column invaded the second column
> > - Long lines in the second column were truncated
> >
> > How do I get groff to split but don't join?
> >
> > I'm using -me and groff 1.17.2 (debian stable);
>
> If you don't like the extra macro per line, the next step of
> sophistication might be a higher-level macro that reads an input
> line of text (using, e.g., an input line count trap) and formats
> that line, repeating until it reaches some end condition.
Here it is, independent of the macro package.
Werner
======================================================================
.\" break -- no join
.de BNJ
. nr BNJ-dobreak 1
. it 1 BNJ-break
..
.
.de /BNJ
. nr BNJ-dobreak 0
..
.
.de BNJ-break
. if \\n[BNJ-dobreak] \{\
. br
. it 1 BNJ-break
. \}
..
.
.ll 3i
.
.BNJ
This is a test of a very long line needed to test the BNJ macros.
This is another very long line to test the break-nojoin macros.
And here is the final long line we use for testing the BNJ stuff.
Some short lines.
Another short one.
./BNJ
This is a test of a very long line needed to test the BNJ macros.
This is another very long line to test the break-nojoin macros.
And here is the final line we use for testing the BNJ stuff.
Some short lines.
Another short one.
- [Groff] developers only?, Otavio Exel, 2005/03/29
- Re: [Groff] developers only?, Keith Marshall, 2005/03/29
- Re: [Groff] developers only?, Jorgen Grahn, 2005/03/29
- Re: [Groff] developers only?, Otavio Exel, 2005/03/29
- Re: [Groff] developers only?, Heinz-Jürgen Oertel, 2005/03/29
- Re: [Groff] developers only?, Alejandro López-Valencia, 2005/03/29
- Re: [Groff] developers only?, Tadziu Hoffmann, 2005/03/29
- Re: [Groff] developers only?, Otavio Exel, 2005/03/30
- Re: [Groff] developers only?, Tadziu Hoffmann, 2005/03/30
- Re: [Groff] developers only?,
Werner LEMBERG <=
- Re: [Groff] developers only?, Tadziu Hoffmann, 2005/03/30
- Re: [Groff] developers only?, Peter Schaffter, 2005/03/30
- [Groff] dropcap in HTML could be easier?, Dorai Sitaram, 2005/03/30
- Re: [Groff] developers only?, Werner LEMBERG, 2005/03/30
- Re: [Groff] developers only?, Ted Harding, 2005/03/29
- Re: [Groff] developers only?, Ted Harding, 2005/03/30
- Re: [Groff] developers only?, Otavio Exel, 2005/03/30
- Re: [Groff] developers only?, Keith Marshall, 2005/03/30
- Re: [Groff] developers only?, Jorgen Grahn, 2005/03/30
- Re: [Groff] developers only?, Larry McVoy, 2005/03/30