🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250056

Re: HTML (XHTML) in netnews

#250056
From: Anton Shepelev
Date: Mon, 30 Apr 2012 22:12
149 lines
12710 bytes
Ivan Shmakov:

> > I  have  never seen an HTML e‐mail that wouldn’t
> > have become better  by  rewriting  it  in  plain
> > text.
>
> What’s wrong with, e. g.,
> news:86haxbpufp.fsf@gray.siamics.net or
> news:86r4wacg2h.fsf@gray.siamics.net?

Sorry,  I counln’t find them.  Those are MessageIDs,
right?

> > People that use HTML in e‐mail tend  to  be  un‐
> > aware of the underlying medium of all "them fan‐
> > cy formatting features" and abuse them badly and
> > without taste.  They paste lists and tables into
> > Outlook directly from  MS  Word  and  are  happy
> > about it, while the result it outright horrible.
> > Preformatted text viewed in a monospace font  is
> > always better than that.
>
> As  I’ve said before, there’re many different ways
> to author “poor” HTML.  It doesn’t mean  that  any
> HTML is /necessarily/ bad.

Agree,  but  I wanted to show you the corelation and
that plain‐text stops people from abusing HTML.

> > As you have shown, it is possible  to  highlight
> > words in plain text.
>
> Yes,  but  then my Gnus shows /foo/ as highlighted
> foo, because it thinks that slashes  mean  slanted
> text  here, not the Unix directory separators they
> in fact are.

I didn’t mean that the those symbols should  be  in‐
terpreted on the reader’s side.  They are OK as they
are.

> > Formulas can expressed like they are in program‐
> > ming languages or LaTeX source,
>
> I disagree.
>
> Would LaTeX code be a preferable form of presenta‐
> tion, I guess we’d see a lot of  scientific  jour‐
> nals switching to it from the now‐ubiquitous math‐
> ematic notation.

But the mediums of e‐mail and Usenet are quite  dif‐
ferent  from that of printed publications.  The lat‐
ter has the following great drawbacks:

  a.  The need to use heavy  and  non‐editable  for‐
      mats, like PDF and PostScript.

  b.  Great  effort and special software required to
      produce a well‐typeset document, which on  the
      reader side necessiates heavy and more compli‐
      cated software and results in  higher  latency
      and lesser efficiency of communication.

HTML, as a compromise solution, has the drawbacks of
both typographical and plain‐text mediums.  For  ex‐
ample, it is looses the simplicity and transparency,
yet its presentation is platoform‐dependent, meaning
that  that the author does not have control over how
his work will  look  in  different  programs,  while
plain text viewed in a monospace font _always_ looks
the same.

> Using * to mean ⋅ or ×, or introducing “new” func‐
> tions, such as abs, expt, pow, sqrt, etc., doesn’t
> seem sane, either.
>
> That being said, Unicode‐based  plain‐text  allows
> ❘x❘, x¹²³, and even √x̅.  However, I don’t know of
> any  easy  way  to  author  such  formulae,  while
> there’re  a few translators from a subset of LaTeX
> to MathML.

Such functions and  conventions  were  introduced  a
long  time  ago,  and  everybody with basic math and
computer knowledge will understand them.   They  are
few  and  easy  to learn and remember.  Unicode math
symbols allow to write only very, very  sort  formu‐
las.  Even e^(sin x) is impossible.

> > and graphics should be converted to ASCII‐art,
>
> What for?

In  order to make it transmittable in plain‐text, of
course.  Bear in mind that with simple diagrams  and
schematics  this conversion is very easy and the re‐
sult is quite pleasant.

> > linked, or attached, depending  on  the  circum‐
> > stances.
>
> The graphics, both linked and provided as separate
> MIME parts, could be presented in a specific place
> of  an  HTML‐based message referencing it.  Not so
> for a message based on plain‐text.

I was pointing out  ways  to  cope  with  images  in
plain‐text.  Of course, in HTML it is more straight‐
forward.  One could also create a page  on  the  web
and  link  it,  or typeset a nice PDF and attach it,
but 99% percent of Usenet or e‐mail messages are  so
far  from  being  book‐long  that the inclusion of a
couple of links or binary attachments is not a prob‐
lem,  and  the  advantages  offered  by HTML are not
worth its overhead.

Taking into account that about 1‐5% of messages ref‐
erence a file or a picture, the number of plain‐text
messages that would benefit from multipart/HTML han‐
dling of attachments is second order (o(x^2)) infin‐
itesimal.

> > Apart from the aesthetic reasons, I  like  plain
> > text for it’s utter simplicity, transparecy, and
> > suitabilty for automated searching and  process‐
> > ing.
>
> I  disagree.   None  of the automated formatters I
> know can handle hyphenated text, and none of  them
> could  discern  “verbatim”  text (such as a source
> code fragment, or ASCII art)  from  the  “normal”,
> formatted text.
>
> Or  think  of  the slanted (or bold) face examples
> above.  What if I wish to  drop  all  the  slanted
> face markup, while leaving Unix absolute filenames
> alone?

Yes, I  was  talking  about  the  simplest  case  of
ragged‐right  and unhyphenated.  Several programs go
a step futher and treat everything that has  an  in‐
dent  as  verbatim.   And  with reading/searching my
statement holds even for preformatted text.

Besides, I think I am the only one who uses  hyphen‐
ation  in e‐mail and Usenet, and I keep groff source
of important articles.  Being a  typeseting  system,
it  has a language much lighter and more comfortable
than HTML, so I can easily strip the bare text  from
it or use groff to typeset a message as PDF or HTML,
if need be.  groff’s code is  also  much  easier  to
read than HTML.

> > One  doesn’t have to use a parser to comfortably
> > read and operate plain‐text files.
>
> I disagree.  Think of parsing a  formatted  table,
> like:
>
> Column 1                    Columns 2, 3
> Column 2    Column 3
>
> Whatever there is           1       Foo bar
> And here’s the other        2         Baz

You are right again, but it is only 1‐2% of messages
that must have tables, and even more  rare  are  the
cases  when  one needs to parse them.  If a table is
intended for parsing, it is meet to post it as  tab‐
or  comma‐separated,  either in the body of the mes‐
sage or as an attachement.

Such complicated tables are rare,  even  rarer  does
one  need  to automatically parse them.  Most of the
time it is a set of key‐value paris or n‐tuples ‐‐ a
regular  linear  structure,  which  is easier parsed
from plain‐text (CSV) than from HTML.

> (If that’s not hard enough, consider adding  vari‐
> ous box drawing characters to the formatting, like
> it was common for the DOS‐era plain text.)
>
> While it’s easy to convert (or format) an HTML ta‐
> ble  to  a  plain‐text presentation like the above
> (think of Lynx or html2text), it’s much harder the
> other way around.
>
> XML  is  much more suitable for automated process‐
> ing.  Consider, e. g., XPath, XQuery,  XSLT,  xml‐
> starlet(1), etc.

Human‐oriented  and  machine‐oriented content should
be formatted differently.   In  my  own  expedience,
most  of  the time I posted tables for viewing, so I
used groff’s tbl to typeset them.

As for the XML tools you mentioned, I am afraid  ev‐
ery  HTML  message  will require a special script to
process it, becuase HTML is  not  strucured  in  the
sense  that  instead  of defining the funciton of an
element (like, it is a list, it is a header, and  so
on),  it  defines  its appearance, and the former is
not easily inferred from the latter!  On  the  other
hand, *roff and LaTeX use structured approach.

Anton

P.S.: Several  times  I  have appealed to the infre‐
      quency of various  situations  you  have  men‐
      tioned.   I  find  it a valid argument because
      changing the whole medium in order to  satisfy
      several  percent  of posters at the expense of
      imparting overload unto the heads of  the  re‐
      maining 99 perceint would be wrong.

‐‐
()  ascii ribbon campaign ‐ against html e‐mail
/\  www.asciiribbon.org   ‐ against proprietary attachments
Technical Details
Message-ID: <jnn2ni$8tm$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.misc.(3886).mbox.7z!not-for-mail
References: <jncak8$cla$2@dont-email.me> <86pqatbycz.fsf@gray.siamics.net> <20120428114426.6b653c88434e8c4d2afa8761@g{oogle}mail.com> <864ns2abjk.fsf@gray.siamics.net> <jnk989$hki$1@dont-email.me> <86pqap93c8.fsf_-_@gray.siamics.net>

Show Full Headers
Complete Article Headers
Message-ID: <jnn2ni$8tm$1@dont-email.me>
Subject: Re: HTML (XHTML) in netnews
Date: Mon, 30 Apr 2012 22:12:02 +0000
From: anton.txt@gmail.com (Anton Shepelev)
References: <jncak8$cla$2@dont-email.me> <86pqatbycz.fsf@gray.siamics.net> <20120428114426.6b653c88434e8c4d2afa8761@g{oogle}mail.com> <864ns2abjk.fsf@gray.siamics.net> <jnk989$hki$1@dont-email.me> <86pqap93c8.fsf_-_@gray.siamics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.misc.(3886).mbox.7z!not-for-mail
Newsgroups: news.misc,news.software.readers
Organization: A noiseless patient Spider
Lines: 147
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64
Injection-Date: Mon, 30 Apr 2012 22:12:02 +0000 (UTC)
Injection-Info: mx04.eternal-september.org; posting-host="mMf3vm/2vfRyZmV8USMh7g";
 logging-data="9142"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7l8Sgg7oQe6KK52KWXCAQQeSUEoP51dg="
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Darwin/10.8.0 (i386))
Cancel-Lock: sha1:hTGO+JKapfDIDGiGYTdKCauTwxU=