Werner LEMBERG <[EMAIL PROTECTED]>: > > Here's the current version of an-ext.tmac. To handle trailing > punctuation correctly, I've replaced .MTO and .URL with .MT/.ME and > .UR/.UE, respectively. The syntax is: > > .UR url punct > link text > .UE > > .MT email-address punct > name > .UE > > Still missing is .DS/.DE.
A suggestion: Arguments to .UE and .ME, if any, should be glued on to the end of the output. Thus: > .\" End URL. > .de UE > . ie \\n(mH \{\ > . br > . di > . ev > . > . \" Has there been one or more input lines for the link text? > . ie \\n(dn \{\ > . do HTML-NS "<a href=""\\*(m1"">" > . \" Yes, strip off final newline of diversion and emit it. > . do chop URL-div > . do URL-div > \c > . do HTML-NS </a> > . \} > . el \ > . do HTML-NS "<a href=""\\*(m1"">\\*(m1</a>" > \&\\*(m2\\$*\" > . \} > . el \ > \\*(la\\*(m1\\*(ra\\*(m2\\$*\" > . > . hy \\n(HY > .. > .\" End email address. > .de ME > . ie \\n(mH \{\ > . br > . di > . ev > . > . \" Has there been one or more input lines for the link text? > . ie \\n(dn \{\ > . do HTML-NS "<a href=""mailto:\\*(m1"">" > . \" Yes, strip off final newline of diversion and emit it. > . do chop URL-div > . do URL-div > \c > . do HTML-NS </a> > . \} > . el \ > . do HTML-NS "<a href=""mailto:\\*(m1"">\\*(m1</a>" > \&\\*(m2$*\" > . \} > . el \ > \\*(la\\*(m1\\*(ra\\*(m2$*\" > . > . hy \\n(HY > .. Also, is there some reason .MT/.ME aren't written in terms of .UR/.UE? It would seem natural to write de MT .UR mailto:\\$* .. -- <a href="http://www.catb.org/~esr/">Eric S. Raymond</a>