Sponsored in part by... Smith Micro StuffIt Deluxe 12: breakthrough compression of MP3 files, PDFs,
iWork and MS Office files! Reduce JPEG file sizes with no loss in
quality, burn to CD/DVD, back up archives to iDisk and more. Buy
today for only $59.99! <http://www.stuffit.com/mac/deluxe/tb/>

 [F] TidBITS  / TidBITS  / TidBITS Talk  /

Angle brackets and URLs

[charlie]charlie (apparently) - 06:11am Feb 10, 2006 PST
via email

Good morning,

In Glenn Fleishman's article "The Incredible Shrinking URL" he states:

    Although it's not part of the URL specification, using angle
    brackets to protect URLs in email and Usenet news has long been
    recommended by the W3C

    <http://db.tidbits.com/getbits.acgi?tbart=08412>

Which URL specification is he referring to? The RFC 2396 "Uniform Resource
Identifiers (URI): Generic Syntax" certainly includes angle brackets as part of
the spec.

    <http://www.ietf.org/rfc/rfc2396.txt>

Specifically it states:

    In practice, URI are delimited in a variety of ways, but usually
    within double-quotes "http://test.com/", angle brackets
    <http://test.com/>, or just using whitespace.

And:

    Using <> angle brackets around each URI is especially recommended
    as a delimiting style for URI that contain whitespace.
   
So, it doesn't say only angle brackets are accepted, but it certainly suggests
and encourages using them as part of the standard.

Similar comments are made in the older RFC 1738:

    <http://www.ietf.org/rfc/rfc1738.txt>

Anyway, like most/all readers here, I strongly encourage people to use angle
brackets for URLs, especially in newsletters and other business correspondence.
I can't count the number of times I've had a 404 error page simply because
clicking a link also grabbed the period at the end of a sentence; easily avoided
by 'quoting' the URL properly.


[I added that bit, and in both cases, the angle brackets are recommendations, not requirements, as the headings of the sections in which they're discussed make clear. -Adam]


--
   Charlie Garrison <garrisonzeta.org.au>
   PO Box 141, Windsor, NSW 2756, Australia


Mark as Read
  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages

tekelenb (apparently) - Feb 10, 2006 8:30 am (#1 Total: 5)  

Reply to this message
via email  

Photo of Author
Posts: 254
Re: Angle brackets and URLs

At 05:11 -0800 UTC, on 2006-02-10, Charlie Garrison wrote:

[...]

> <http://www.ietf.org/rfc/rfc2396.txt>

[...]

> <http://www.ietf.org/rfc/rfc1738.txt>
>
> Anyway, like most/all readers here, I strongly encourage people to use angle
> brackets for URLs, especially in newsletters and other business
>correspondence.
> I can't count the number of times I've had a 404 error page simply because
> clicking a link also grabbed the period at the end of a sentence; easily
>avoided
> by 'quoting' the URL properly.

Indeed.

Btw, there appears to be a bug in Mail.app (or seemingly in
WebKit/Core/whatever) that will sometimes break angle-bracketed URLs anyway,
by gratuitously inserting a space at linebreaks.


--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Lewis Butler (apparently) - Feb 10, 2006 3:27 pm (#2 Total: 5)  

Reply to this message
via email  

Photo of Author
Posts: 930
Re: Angle brackets and URLs

On 10 Feb 2006, at 06:11 , Charlie Garrison wrote:
> Although it's not part of the URL specification, using angle
> brackets to protect URLs in email and Usenet news has long been
> recommended by the W3C
>
> So, it doesn't say only angle brackets are accepted, but it
> certainly suggests
> and encourages using them as part of the standard.

RECOMMENDED means they are RECOMMENDED. "Part of the URL
specification" would mean they were REQUIRED.

Also, note that the recommendation in at least 1738 is

<URL:http://theurl.tld>

NOT

<http://theurl.tld>

Though I don't think anyone ever seriously used that form.

--
My little brother got his arm stuck in the microwave. So my mom had
to take him to the hospital. My grandma dropped acid this morning,
and she freaked out. She hijacked a busload of penguins. So it's sort
of a family crisis. Bye!


brians548 (apparently) - Feb 12, 2006 11:13 pm (#3 Total: 5)  

Reply to this message
via email  

Photo of Author
Posts: 24
Re: Angle brackets and URLs

I've had documents an e-mails get transformed in transmission from one
person to another into html-styled documents in which the angle brackets are
treated as delimiting code containing a comment not to be displayed. The
result was that when I passed on a link in angle brackets it was rendered
invisible to the reader. I haven't encountered this lately, so maybe modern
e-mail programs, etc. don't do this; but I tend to avoid the angle brackets
for that reason.

I used to have lots of trouble with novices including the period at the end
of a sentence which concluded with a URL, rendering it inoperable, and took
to not putting punctuation at the end of of the sentence and setting the URL
off clearly like this:

http://www.whatever.com

[As typed, that URL does *not* have angle brackets. -Andrew ]

Not elegant, but clear. However, as more and more people are used to Web
conventions, it's less and less a problem.


Paul Brians
Professor of English
Director of Undergraduate Studies
Department of English
Washington State University
Pullman, WA 99164-2050
http://www.wsu.edu/~brians/


vfrspencer - Feb 14, 2006 4:13 pm (#4 Total: 5)  

Reply to this message
 

Photo of Author
Posts: 2
Re: Angle brackets and URLs

Yes, I've noticed the same bug/feature/problem with Mail.app -- that it will break lines as it sees fit and usually break URLs even in brackets.

Does anyone know a fix for this? Or even better, does anyone know a way to disable the auto-linebreaks? In my favorite Unix mail reader/editor (Emacs), you can toggle that feature trivially.

Spencer

j-beda (apparently) - Feb 23, 2006 2:29 pm (#5 Total: 5)  

Reply to this message
via email  

Photo of Author
Posts: 150
Re: Angle brackets and URLs

At 10:13 PM -0800 2/12/06, Paul Brians wrote:
>http://www.whatever.com
>
>[As typed, that URL does *not* have angle brackets. -Andrew ]
>
>Not elegant, but clear. However, as more and more people are used to Web
>conventions, it's less and less a problem.

        You missed the trailing "/", but virtually all web browsers will
add it for you... :-)

--
* Johann Beda - contact link: <http://public.xdi.org/=j-beda> *
* Johann's MostlyMac Computer Consulting - <http://mmcc.beda.ca/> *



  OutlineAll MessagesOlder MessagesOldest MessagesNewest MessagesNewer Messages


 [F] TidBITS  / TidBITS  / TidBITS Talk  / Angle brackets and URLs




Add a message

To add a message to this discussion, you must be a registered user. Enter your email address below. If you have an account associated with the email address you enter, you will be prompted for your password. If not, you'll be able to create a new account with no fuss.

Enter your email address:

Submit