[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Hyphenation and email/web addresses <minor www.tmac patch>
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] Hyphenation and email/web addresses <minor www.tmac patch> |
Date: |
Sun, 22 Feb 2004 10:46:58 +0100 (CET) |
> >> Could this be built into the .MTO and .URL macros in -mwww?
> >
> > good idea.. I think this patch fixes the problem..
> >
> > ...
> > . if !r ps4html .ad
> > +. hy
>
> This sets the hyphenation mode unconditionally, even if it was
> turned off before. You need to save the previous mode and restore
> it. If I read groff(7) correctly, this is stored in \n[.hy].
I believe this needs more thinking. My suggestion is to use a more
sophisticated approach (in both .MTO and .URL) which I've seen in the
American `Sky & Telescope' magazine: Allow breaks *before* `.', `@',
`-', and `/' without inserting a hyphen, taking care to have the
protocol (`http://', etc.) not separated. Examples:
Some text before
address@hidden and after:
=> Some text before this-is-a
-really-extremely-longish
@email.address and after
The groff CVS archive can be viewed from
http://www.ffii.org/cgi-bin/viewcvs.cgi/groff
=> The groff CVS archive can be
viewed from http://www.ffii
.org/cgi-bin/viewcvs.cgi
/groff
This makes it impossible to confuse the sentence's punctation
characters with characters part of the URL.
What do you think? Any volunteer to implement that? `/' is already
handled by www.tmac.
Werner