🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
61 messages
61 total messages Page 2 of 2 Started by Jeff-Relf.Me Sun, 26 May 2013 22:40
Page 2 of 2 • 61 total messages
Re: Attn: John E. Davis [JED, slrn, S-Lang] 
#255090
Author: Whiskers
Date: Wed, 19 Jun 2013 12:49
61 lines
4222 bytes
On 2013-06-19, »Q« <boxcars@gmx.net> wrote:
> On Tue, 18 Jun 2013 23:16:59 +0100
> Whiskers <catwheezel@operamail.com> wrote:
>
>> On 2013-06-18, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
>> > In message
>> > <slrnkrhr3b.8ns.catwheezel@ID-107770.user.individual.net> Whiskers
>> > <catwheezel@operamail.com> wrote:
>> >> On 2013-06-12, Jeff-Relf.Me <> wrote:
>> 
>> [...]
>> 
>> >> Usenet is 'text/plain' by definition.  If you want to play with
>> >> HTML coding, use web forums - there are plenty to choose from.
>> >
>> > Does text/plain include UTF-8?
>> 
>> Yes; that's a character encoding for plain text.
>> 
>> >> Slrn users don't need any hyperlink tags; slrn, in common with all
>> >> the newsreader programs I've ever used, recognises correctly
>> >> constructed URLs within the plain text article body and makes it
>> >> easy for the user to follow any or all of them if required.  Even
>> >> those which you enclose within your "tags".
>> >
>> > Well, slrn doesn't ignore white space wiithin a URL as the spec
>> > says. For example, this should work:
>> >
>> > Just go to the http://www.example.
>> > com/text.html page.
>> >
>> > OTOH, even though the spec clearly says that should be parsed
>> > correctly, practically nothing does.
>> 
>> There's no "white space" in that split-line URL; there is a LF, or
>> new-line, which has no place in a URL.
>
> See RFC 3986, Appendix C.  Excerpt: 
>
>   In some cases, extra whitespace (spaces, line-breaks, tabs, etc.) may
>   have to be added to break a long URI across lines.  The whitespace
>   should be ignored when the URI is extracted.

So "whitespace" has a wider meaning.  

Given the sometimes huge URLs that some web sites generate, I can see the
attraction of being able to break those into several lines but still have
user software able to correctly recognise which characters don't belong in
the URL but don't signify the end of the URL.  That's a lot more complex
than 'look for a chunk of text that starts with http and ends with a space
or a LF'; in fact, it's hard to work out how the end of a URL could be
detected at all, unless some particular character is reserved for that
purpose - such as the traditional 'angle quotes' <>.

I have found a Perl script called "extract_url" which looks promising
<http://www.memoryhole.net/~kyle/extract_url/>; I'll play with it later.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255089
Author: Shmuel Metz
Date: Wed, 19 Jun 2013 14:20
22 lines
2864 bytes
In <slrnks1n2r.18v.catwheezel@ID-107770.user.individual.net>, on
06/18/2013
   at 11:16 PM, Whiskers <catwheezel@operamail.com> said:

>There's no "white space" in that split-line URL; there is a LF, or
>new-line, which has no place in a URL.

CR and LF *are* whitespace. From Uniform Resource Identifier (URI):
Generic Syntax, RFC 3986, Appendix C.  Delimiting a URI in Context:

   In some cases, extra whitespace (spaces, line-breaks, tabs,
   etc.) may have to be added to break a long URI across lines.
   The whitespace should be ignored when the URI is extracted.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255091
Author: Shmuel Metz
Date: Wed, 19 Jun 2013 23:52
27 lines
2878 bytes
In <slrnks3a7h.141.catwheezel@ID-107770.user.individual.net>, on
06/19/2013
   at 01:49 PM, Whiskers <catwheezel@operamail.com> said:

>So "whitespace" has a wider meaning. 

Wider than what? It appears to match FWS in RFC 5322. Certainly RFC
2396 and RFC 3986 explicitly list line breaks as white space.

>in fact, it's hard to work out how the end of a URL could be
>detected at all, unless some particular character is reserved for
>that purpose

Not reserved, but suggested:

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

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255088
Author: Frank Slootweg
Date: Fri, 21 Jun 2013 14:10
63 lines
3616 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> In message <20130620145726.49874af0@fuchsia.remarqs.net> 
>   »Q« <boxcars@gmx.net> wrote:
[...]
> > That problem, along with the fact that people are never going to stop
> > using whitespace as delimiters, means it will always be bad practice to
> > post URLs with unencoded whitespace.
> 
> Even if they are otherwise delimited, slrn (and most everything else)
> doesn't do the right thing.
> 
> <http://example.com/
> document.html>
> 
> <http://example.com/    document.html>
> 
> <http://example.com/
>         document.html>
> 
> In all those cases, the white space should be ignored. If I paste those
> into the address bar of Chrome or Safari, the second and third break,
> but the first one works.

[First see my other response.]

  The first and third should work, because they contain *line-breaking*
whitespace (which indeed should be ignored).

  AFAIK, the second is just a bad URL, because it contains embedded
unencoded whitespace, which is outside the 'unreserved' set of allowed
characters[1].

[1]
[RFC3986:]
"2.3.  Unreserved Characters

    Characters that are allowed in a URI but do not have a reserved
    purpose are called unreserved.  These include uppercase and lowercase
    letters, decimal digits, hyphen, period, underscore, and tilde.

       unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"

[...]

 Appendix A.  Collected ABNF for URI

[...]

 URI           = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

 hier-part     = "//" authority path-abempty

[...]

 path-abempty  = *( "/" segment )

[...]

 segment       = *pchar
 pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
 unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
 sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
               / "*" / "+" / "," / ";" / "="
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255092
Author: Shmuel Metz
Date: Fri, 21 Jun 2013 15:51
19 lines
2678 bytes
In <b2j390Fs4huU1@mid.individual.net>, on 06/21/2013
   at 01:37 PM, Frank Slootweg <this@ddress.is.invalid> said:

>Moral: URLs with embedded, non-encoded, spaces are A Bad Thing(TM)!

ITYM that breaking up a URL with spaces is a bad thing; an RFC 3896
compliant URL does not have any white space. It's the text from which
the URL is to be extracted that may have white space. Putting framing
<> or "" around the text will at least partially alleviate the
problem, although some clients will still barf.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255093
Author: »Q«
Date: Fri, 21 Jun 2013 20:20
55 lines
4055 bytes
On Fri, 21 Jun 2013 02:23:56 +0000 (UTC)
Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:

> In message <20130620145726.49874af0@fuchsia.remarqs.net> 
>   »Q« <boxcars@gmx.net> wrote:
> > On Thu, 20 Jun 2013 14:47:43 +0100
> > Whiskers <catwheezel@operamail.com> wrote:
> 
> >> On 2013-06-20, Shmuel Metz <spamtrap@library.lspace.org.invalid>
> >> wrote:
> >> > In <slrnks3a7h.141.catwheezel@ID-107770.user.individual.net>, on
> >> > 06/19/2013
> >> >    at 01:49 PM, Whiskers <catwheezel@operamail.com> said:
> >> >  
> >> >>So "whitespace" has a wider meaning.   
> >> >
> >> > Wider than what? It appears to match FWS in RFC 5322. Certainly
> >> > RFC 2396 and RFC 3986 explicitly list line breaks as white space.
> >> >  
> >> >>in fact, it's hard to work out how the end of a URL could be
> >> >>detected at all, unless some particular character is reserved for
> >> >>that purpose  
> >> >
> >> > Not reserved, but suggested:
> >> >
> >> >    In practice, URIs are delimited in a variety of ways, but
> >> >    usually within double-quotes "http://example.com/", angle
> >> >    brackets <http://example.com/>, or just by using whitespace:  
> >> 
> >> ... and there's the rub; what makes "whitespace" that delimits a
> >> URL different from "whitespace" that merely intrudes somewhere in
> >> the middle of the URL?
> 
> > That problem, along with the fact that people are never going to
> > stop using whitespace as delimiters, means it will always be bad
> > practice to post URLs with unencoded whitespace.
> 
> Even if they are otherwise delimited, slrn (and most everything else)
> doesn't do the right thing.
> 
> <http://example.com/
> document.html>
> 
> <http://example.com/    document.html>
> 
> <http://example.com/
>         document.html>
> 
> In all those cases, the white space should be ignored. If I paste
> those into the address bar of Chrome or Safari, the second and third
> break, but the first one works.

All three work for me if I paste into the address bar of Firefox, but
Claws doesn't make them clickable links.
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255094
Author: Frank Slootweg
Date: Fri, 21 Jun 2013 20:28
21 lines
2682 bytes
Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid> wrote:
> In <b2j390Fs4huU1@mid.individual.net>, on 06/21/2013
>    at 01:37 PM, Frank Slootweg <this@ddress.is.invalid> said:
> 
> >Moral: URLs with embedded, non-encoded, spaces are A Bad Thing(TM)!
> 
> ITYM that breaking up a URL with spaces is a bad thing; an RFC 3896
> compliant URL does not have any white space.

  No, I meant what I wrote, for the exact reason you mention.

  Lewis' example did contain embedded, non-encoded, spaces, which, as
you say, is not RFC 3896 compliant. My "... are A Bad Thing(TM)!" is
just a 'nice' way of saying they're not RFC 3896 compliant.

  I don't know what Lewis expects a parser to do with these embedded,
non-encoded, spaces. Ignore (i.e. strip) them? Or consider them as
significant (i.e. as if they were %-encoded)? I don't think that RFC
3896 says what a parser 'should' do in this case, other than perhaps
declaring the URL as 'bad' *if* it can determine the beginning and end
of the URL (which, as I explained, is impossible for Lewis' example).
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255095
Author: Lewis
Date: Sat, 22 Jun 2013 03:39
17 lines
2381 bytes
In message <b2j390Fs4huU1@mid.individual.net> 
  Frank Slootweg <this@ddress.is.invalid> wrote:
> Lewis <g.kreme@gmail.com.dontsendmecopies> wrote:
> [...]
>> A LF is white space, and the spec shows that as an example that should
>> be processed as a URL, ignoring the white space.
>> 
>> http://www.example.com/this is a test/file.html should work as well.

>   Nope, *line-breaking* whitespace is to be ignored:

Yes, you're right. I got carried away.

-- 
'Never build a dungeon you wouldn't be happy to spend the night in
yourself,' said the Patrician (...). 'The world would be a happier place
if more people remembered that.' --Guards! Guards!
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255099
Author: Shmuel Metz
Date: Mon, 24 Jun 2013 13:46
25 lines
3195 bytes
In <b2jrbnF2r91U1@mid.individual.net>, on 06/21/2013
   at 08:28 PM, Frank Slootweg <this@ddress.is.invalid> said:

>No, I meant what I wrote,

What you wrote makes no sense, since a string of characters with
imbedded white space does not match the syntax of a URL.

>My "... are A Bad Thing(TM)!" is
>just a 'nice' way of saying they're not RFC 3896 compliant.

There are many things that are RFC compliant but still bad.

Note: the RFC addresses programs that extract an RFC from text;it does
not say that if you manual cut and paste a string into a browser that
the *browser* is expected to do anything about imbedded white space.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Attn: John E. Davis [JED, slrn, S-Lang]
#255108
Author: Shmuel Metz
Date: Fri, 28 Jun 2013 19:08
26 lines
2919 bytes
In <slrnks7ejk.ndv.g.kreme@mbp55.local>, on 06/21/2013
   at 02:23 AM, Lewis <g.kreme@gmail.com.dontsendmecopies> said:

><http://example.com/
>document.html>

><http://example.com/    document.html>

><http://example.com/
>        document.html>

>In all those cases, the white space should be ignored. If I paste
>those into the address bar of Chrome or Safari, the second and third
>break, but the first one works.

All three work for me. Of course, I didn't use cut; I used appropriate
features of my news client.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Page 2 of 2 • 61 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads