Article View: news.software.readers
Article #250042HTML (XHTML) in netnews
From: Ivan Shmakov
Date: Mon, 30 Apr 2012 05:49
Date: Mon, 30 Apr 2012 05:49
107 lines
5324 bytes
5324 bytes
>>>>> Anton Shepelev <anton.txt@gmail.com> writes:
>>>>> Ivan Shmakov:
[Cross-posting to news:news.misc, for the discussion is not
quite about the newsreading software.]
[…]
>> Actually, I tend advocate /for/ the use of HTML (or, rather, XHTML)
>> in e-mail in news, despite that my user agent of choice has poor
>> support for it. (And I think of it as an opportunity to improve the
>> latter.)
>> At the very least, it allows one to avoid such an ad-hockery as
>> /slashes/ /for/ /slanted/, and *stars* *for* *bold*. Not to mention
>> "proper" tables, formatted vs. "preformatted" text distinction, and
>> inline MathML formulae and SVG graphics.
> 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?
> People that use HTML in e-mail tend to be unaware of the underlying
> medium of all "them fancy 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.
> 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.
> Formulas can expressed like they are in programming languages or
> LaTeX source,
I disagree.
Would LaTeX code be a preferable form of presentation, I guess
we'd see a lot of scientific journals switching to it from the
now-ubiquitous mathematic notation.
Using * to mean ⋅ or ×, or introducing “new” functions, 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.
> and graphics should be converted to ASCII-art,
What for?
> linked, or attached, depending on the circumstances.
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.
> Apart from the aesthetic reasons, I like plain text for it's utter
> simplicity, transparecy, and suitabilty for automated searching and
> processing.
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?
> 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
(If that's not hard enough, consider adding various 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 table 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 processing. Consider,
e. g., XPath, XQuery, XSLT, xmlstarlet(1), etc.
[…]
--
FSF associate member #7257
Technical Details
Message-ID:
<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.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!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>Show Full Headers
Complete Article Headers
Message-ID: <86pqap93c8.fsf_-_@gray.siamics.net>
Subject: HTML (XHTML) in netnews
Date: Mon, 30 Apr 2012 12:49:11 +0700
From: Ivan Shmakov <oneingray@gmail.com>
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>
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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail
Newsgroups: news.misc,news.software.readers
Organization: Aioe.org NNTP Server
Lines: 107
NNTP-Posting-Host: FtDGZaUx6k7Bzdiv4MgYAg.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)
X-Notice: Filtered by postfilter v. 0.8.2
Cancel-Lock: sha1:qXW/l8l9MEArUbDr4VX2iYrGlFc=
X-Original-Bytes: 5120