Article View: news.software.readers
Article #250056Re: HTML (XHTML) in netnews
From: Anton Shepelev
Date: Mon, 30 Apr 2012 22:12
Date: Mon, 30 Apr 2012 22:12
149 lines
12710 bytes
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-mailReferences:
<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=