[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: |
Gaius Mulley |
Subject: |
Re: [Groff] Hyphenation and email/web addresses <minor www.tmac patch> |
Date: |
20 Feb 2004 08:25:46 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Larry Kollar <address@hidden> writes:
> On Wednesday, February 18, 2004, at 03:07 PM, (Ted Harding) wrote:
>
> >> like to prevent email addresses and URLs from being hyphenated as
> >> this may cause them to be interpreted incorrectly.
> >
> > The simplest way to do this would be to precede each such thing
> > with the request .nh, and follow it with .hy, for instance
> >
> > ...
> > Andy Crichton's email address is
> > .nh
> > address@hidden
> > .hy
> > to which you may email any queries.
>
> Could this be built into the .MTO and .URL macros in -mwww?
good idea.. I think this patch fixes the problem..
--- groff/tmac/www.tmac Thu Jan 15 07:47:25 2004
+++ ../groff-html/tmac/www.tmac Fri Feb 20 08:00:57 2004
@@ -301,12 +301,14 @@
. HTML <a href="\\$1">\\$2</a>\\$3
. \}
. el \{\
+. nh
. if !r ps4html .ad l
. ie '\\$2'' \
. nop \%\[la]\m[blue]\f[C]\\*[\\$0:adr]\f[]\m[]\[ra]\\$3
. el \
. nop \m[blue]\\$2\m[] \%\[la]\f[C]\\*[\\$0:adr]\f[]\[ra]\\$3
. if !r ps4html .ad
+. hy
. \}
. rm \\$0:adr
..
@@ -340,10 +342,12 @@
. URL mailto:\\$1 "\\$2" "\\$3"
. \}
. el \{\
+. nh
. ie '\\$2'' \
. nop \%\m[blue]\f[C]\\$1\f[]\m[]\\$3
. el \
. nop \m[blue]\\$2\m[] \%\[la]\f[C]\\$1\f[]\[ra]\\$3
+. hy
. \}
..
.\" --------------------------------------------------------------------
.\"
.de JOBNAME
. HTML-TAG .job-name \\$1
enjoy,
Gaius