[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Re: Readability of troff documents
From: |
Andreas Kähäri |
Subject: |
Re: [Groff] Re: Readability of troff documents |
Date: |
Fri, 23 May 2003 09:21:50 +0100 |
User-agent: |
Mutt/1.4.1i |
On Fri, May 23, 2003 at 10:01:46AM +0200, Werner LEMBERG wrote:
> > Is there a way (other than preprocessing through some sed
> > filter) of inserting these the way they're inserted in
> > LaTeX? Ie:
> >
> > em dash is ---
> > en dash is --
>
> Unfortunately no. The ligatures possible are fi, fl, ff, ffi, and
> ffl. It needs a non-trivial extension to handle more. Sigh. Time,
> time, time.
It is fairly easy to write a sed script to do a pre-processing
step.
sed -f fix_things.sed my_doc.mm | groff as usual on stdin >paper.ps
where 'fix_things.sed' looks like
s/---/\\[em]/g
s/--/\\[en]/g
s/ffi/\\[Fi]/g
s/ffl/\\[Fl]/g
s/fi/\\[fi]/g
s/fl/\\[fl]/g
s/ff/\\[ff]/g
# etc. (just make sure long substitutions comes before shorter
# ones, e.g. so that --- doesn't turn into "\[em]-")
Untested, from the top of my head...
--
Andreas Kähäri
Essex, England
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), (continued)
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Giorgos Magos, 2003/05/23
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Alejandro Lopez-Valencia, 2003/05/23
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Peter Schaffter, 2003/05/23
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Larry Kollar, 2003/05/23
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Ralph Corderoy, 2003/05/24
- Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Greg 'groggy' Lehey, 2003/05/24
[Groff] Re: Readability of troff documents, Werner LEMBERG, 2003/05/23
- Re: [Groff] Re: Readability of troff documents,
Andreas Kähäri <=
- RE: [Groff] Re: Readability of troff documents, Ted Harding, 2003/05/23
- Re: [Groff] Re: Readability of troff documents, Giorgos Magos, 2003/05/23
- Re: [Groff] Re: Readability of troff documents, Greg 'groggy' Lehey, 2003/05/24
- Re: [Groff] Re: Readability of troff documents, Werner LEMBERG, 2003/05/25
- Re: [Groff] Re: Readability of troff documents, Ted Harding, 2003/05/25
Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Alejandro Lopez-Valencia, 2003/05/23
Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Robert D. Goulding, 2003/05/23
Re: Readability of troff documents (Was: [Groff] Bug in gxditview), Jorgen Grahn, 2003/05/23