🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #257400

Re: Common HTML/XML misconceptions

#257400
From: Michael Baeuerle
Date: Thu, 24 Apr 2014 15:39
143 lines
8279 bytes
Whiskers wrote:
> Michael Baeuerle wrote:
> > Jeff-Relf.Me wrote:
> > > 
> > > Micha,  In practice, in the -real- world, 
> > > flowed text and a proportional font are the default.
> > 
> > If you want it, you can have it. I try to create an example:
> > 
> > This paragraph contains flowed text 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> > 123456789. 
> 
> Sadly, it is 'format=flowed' with the width (for use by software that
> doesn't use 'format=flowed') set to 189 characters.  A width in the low
> 70s would be conventional, and more considerate and legible.

I have done this intentionally (to make it obvious whether the
newsreader can decode RFC3676 encoded flowed text or not). Using
line length greater than 72 characters is explicitly not recommended
by RFC3676. Therefore this first example is the *wrong* way to use
it and for demonstration only.

> > The newsreader should rewrap it to the window width and may use
> > a proportional font.
> 
> Some reading software may automatically wrap to the screen width or some
> other setting, some may do so if the user sends the appropriate command;
> using a particular 'font' is probably a matter of the design of the
> software and/or user settings or commands.  No "should"!

If the content type contain the parameter "format=flowed" the
newsreader really *should* rewrap to his needs (but only the
paragraphs that contain "flowed lines" in the sense of RFC3676).
This enables the sender to indicate "rewrapping is allowed here
but but not there".

If the newsreader don't support flowed text it should ignore the
"format" parameter and never rewrap. An option to do this manually
is fine (e.g. to read Google postings), but it should not be the
default.
I know that some newsreaders don't follow this rule, but it didn't
care in this case (because if the newsreader always rewrap on its
own, you have no chance at all and such things as the table always
become crippled). Note that it is broken the same way in this case
if you label it "format=fixed" or omit the label completely.
Therefore the newsreader never should rewrap on his own but only
on user request or where "format=flowed" allows it.

> > This paragraph contains flowed text 123456789 123456789 123456789 
> > 123456789 123456789 123456789 123456789 123456789 123456789 123456789 
> > 123456789 123456789 123456789 123456789 123456789 123456789. The 
> > newsreader should rewrap it to the window width and may use a 
> > proportional font.
> > 
> > Both variants should display identically. 
> 
> Only if the user's software and settings make that happen by
> coincidence.  

If you have a newsreader that can decode RFC3676 both examples
should look the same. The newsreader should rewrap both to the
width matching its needs.

Your slrn seems to have no support for this and show it "as is" in
fixed format. If one follow the recommendation in RFC3676, like
I have done in the second example, it nevertheless is readable and
looks like a "normal" posting in fixed format for you.

> > The second one use RFC3676 
> > compliant line wrap and should look good even without any decoding.
> 
> Certainly the 'width' set there for non-format=flowed software is a
> considerate 72 or thereabouts.

This is the intention of RFC3676. Format it readable "as is" and add
invisible marks that indicate where rewrapping is allowed for clients
that support flowed text (or want to use proportional fonts).
                             ^^^^^^^^^^^

> > [...]
> > Nevertheless such things can be mixed with fixed text in one article. 
> > This is a long line in fixed format (that should not be wrapped 
> > and displayed with a monospaced font):
> > aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm nnn ooo ppp qqq rrr sss ttt uuu vvv www xxx yyy zzz
> 
> That line doesn't wrap in my reader unless I want it to.

And that is exactly what I have intended (remember the table) and
what RFC3676 allows you side by side with flowed text paragraphs
(that your slrn should show in the preformatted native width if
it don't support flowed text).

> There are no
> 'proportional fonts' in any usenet articles I read - all text is in
> 'Liberation Mono 12-point'.  Nothing the person sending the article does
> can have any effect on that.

Yes. And if slrn don't support flowed text this is the correct
behaviour. Even if a newsreader support flowed text, nobody specify
the font to use. The look and feel is still completely controlled by
the client side.

flnews rewrap flowed text, but always use a monospaced font too.
But if people really feel need for proportional fonts (as Jeff has
mentioned) they are free to use it for the flowed paragraphs if they
like - without crippling things like the table.

> Note that format=flowed was intended to help users of small-screen
> devices such as the PDAs popular in the 1990s, which typically had a
> display width of 40 characters or even less.  It is doubtless still of
> use to people using 'feature phones' or 'smart phones' for reading
> email (although user software is now quite capable of handling text
> wrapping and quoting with or without format=flowed being set by the
> sender).

If you want to hear my opinion:
I don't need flowed text for USENET, therefore I have not implemented
support into flnews to compose it (the example was hand crafted).

But RFC3676 is a proposed internet standard and some people may find
it useful (Google is an example, they seem to want exactly what is
specified there, but don't label it correctly). Therefore I have
implemented decoding support for it into flnews.

> There are technically better ways of handling usenet articles containing
> text which the sender doesn't want the reader's software to 'format' or
> 'parse' or 'fold' or otherwise mess about with.  Slrn and a few other
> newsreaders, for example, recognise the 'verbatim' marks (#v+ on the
> line before and #v- on the line after) to identify lines which are to be
> displayed exactly as sent - such as programing code or wide 'tables' or
> mathematical formulas.

I think this is not technically better - because the marks are visible
if the newsreader have no support for them and the header don't
indicate whether special processing is required.
And none of them are defined in a standard like RFC3676.

What I want to show is that there is no need for HTML. An official
plain text solution for the fixed/flowed problem exists.
And if there are more than one option to avoid HTML - even better.


Micha
Technical Details
Message-ID: <AABTWTAyX3MAAAfu.A1.flnews@WStation2.stz-e.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <8g63l9demqhl8sph9lajaqethqrc75br43@4ax.com> <AABTUkWJR7UAAFrw.A1.flnews@WStation4.micha.freeshell.org> <Jeff-Relf.Me@Apr.19{10.34.Seattle.2014}> <AABTVjFOo5kAAAPP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@Apr.22{10.46.Seattle.2014}> <AABTV4J0apYAAAJZ.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@Apr.23{8.40.Seattle.2014}> <AABTWOaRFgIAAANa.A1.flnews@WStation2.stz-e.de> <slrnllibfk.h67.catwheezel@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABTWTAyX3MAAAfu.A1.flnews@WStation2.stz-e.de>
Subject: Re: Common HTML/XML misconceptions
Date: Thu, 24 Apr 2014 15:39:30 +0000
From: Michael Baeuerle <michael.baeuerle@stz-e.de>
References: <8g63l9demqhl8sph9lajaqethqrc75br43@4ax.com> <AABTUkWJR7UAAFrw.A1.flnews@WStation4.micha.freeshell.org> <Jeff-Relf.Me@Apr.19{10.34.Seattle.2014}> <AABTVjFOo5kAAAPP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@Apr.22{10.46.Seattle.2014}> <AABTV4J0apYAAAJZ.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@Apr.23{8.40.Seattle.2014}> <AABTWOaRFgIAAANa.A1.flnews@WStation2.stz-e.de> <slrnllibfk.h67.catwheezel@ID-107770.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 143
Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
X-Trace: individual.net +6J/ErjMxpSbG6Vg7fIoUAA4tPfO3cC+RMQ2d9sH6+Cs1DnTEQ
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:P6jzvVPoUB+SIT/caS8XetmcXik=
Injection-Date: 24 Apr 2014 15:39:30 -0000
User-Agent: flnews/0.7pre8 (for NetBSD)
X-Original-Bytes: 8011