Article View: news.software.readers
Article #250141Re: HTML (XHTML) in netnews
From: Ivan Shmakov
Date: Thu, 03 May 2012 07:19
Date: Thu, 03 May 2012 07:19
282 lines
12614 bytes
12614 bytes
>>>>> Anton Shepelev <anton.txt@gmail.com> writes:
>>>>> Ivan Shmakov:
[This one got too long, so I'm splitting it into two parts. In
this, second, part, I'm focusing on why what benefits XHTML has
when formatting more complex Usenet and e-mail messages,
including those with images, tables, formulae, and the like.]
[âŚ]
>>> 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 interpreted on the
> readerâs side. They are OK as they are.
Why, would the people ask, they have to learn that slashes mean
italics? Why can't the computer just display the italics?
Being a long time fan of VGA text modes (indeed, I'm using an
80Ă30 one right now), I'd accept the argument of âcomplexityâ of
displaying the italics. But I wonder if the âcommon peopleâ
will find such an argument plausible.
>>> 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.
> But the mediums of eâmail and Usenet are quite different from that of
> printed publications.
Indeed, I agree with that, but not with the specific points
presented below, which I deem rather superficial. My comments
on them are therefore /not/ to be taken too seriosly.
> The latter has the following great drawbacks:
> a. The need to use heavy and nonâeditable formats, like PDF and
It was my understanding that the /printed/ publications use
/paper/ as the media and the format. Its heaviness depends
primarily on the density of the paper, the number of pages, and
the particular format (i. e., paper size) chosen.
Indeed, these formats are mostly non-editable.
> PostScript.
Unlike PDF, PostScript is not quite a file format. Rather, it's
a programming language, much like ECMAScript and Java, which is
the reason to recommend /against/ any of these three on the Web.
One of my favorite hacks in PostScript is the one drawing the
Mandelbrot set, BTW.
Unfortunately, a forgot the URI, but then I've found this one:
http://www.physics.uq.edu.au/people/foster/postscript.html
> b. Great effort and special software required to produce a
> wellâtypeset document, which on the reader side necessiates heavy and
> more complicated software and results in higher latency and lesser
> efficiency of communication.
Agreed.
> HTML, as a compromise solution, has the drawbacks of both
> typographical and plainâtext mediums. For example, it is looses the
> simplicity and transparency,
⌠for certain definitions thereof.
> 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.
No, it doesn't. In particular, there're different monospace
fonts, and different meanings associated with the ASCII HT (AKA
âTABâ, \t, \x9) code. (I'd mention also the different
conventions to represent line breaks, or boldface and underline
conventions, but by this time these are mostly irrelevant.)
Anyway, being such a âcompromiseâ, HTML gives the reader (and
not the platform, BTW) /more/ freedom in choosing the
presentation than PDF and, arguably, plain text.
For instance, it isn't that trivial to change the base font size
(so to solve accessibility issues, for instance) or paper size
(say, A4 to A5 or vice versa) of a PDF document, irrespective of
how âwellâ it's typeset. This way, PDF gives the author way too
much control over the presentation, while HTML provides a useful
âcompromise.â
>> 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.
> Such functions and conventions were introduced a long time ago,
It's not an argument. The question is: how widely they're
known, especially among the audience without strong âcomputing
backgroundâ?
> and everybody with basic math and computer knowledge will understand
> them.
So, the basic computer knowledge includes the Fortran notation
these days? (Or is it basic math?)
> They are few and easy to learn and remember. Unicode math symbols
> allow to write only very, very sort formulas.
s/short/simple/, perhaps?
> Even e^(sin x) is impossible.
And that'd be one more reason to use MathML. (Note, however,
that since âexpâ is widely used in mathematical texts, this
specific example could be written as exp (sin x) just as well.)
>>> and graphics should be converted to ASCIIâart,
>> What for?
> In order to make it transmittable in plainâtext, of course.
SVG is plain text, as well as are certain varieties of the PNM
raster graphics format.
The question is, are we solving a technical issue here, or?
Representing graphics with glyphs of a monospace font was
justified when this was pretty much the least common denominator
of the computing systems in use. (And it may still be justified
for those preferring VGA text modes.) Nowadays, it doesn't
worth the effort.
> Bear in mind that with simple diagrams and schematics this conversion
> is very easy and the result is quite pleasant.
So simple that it could be performed automatically with
software? Which one you'd recommend, then? (I'd use it to
complement Lynx.)
>>> 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.
> I was pointing out ways to cope with images in plainâtext. Of
> course, in HTML it is more straightforward.
That's the point.
> One could also create a page on the web and link it, or typeset a
> nice PDF and attach it,
PDF is not an alternative to HTML precisely because it puts way
too much control over the final presentation in the hands of the
author.
> 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 problem, and the advantages offered by HTML are
> not worth its overhead.
What overhead is in question here?
Well-authored HTML gives little overhead when it comes to the
bandwidth, and neither does it require any âadditionalâ
software, beyond those already available on most of the
âdesktopâ (âlaptopâ, âpalmtopâ, etc.) systems nowadays.
And, authoring HTML isn't much overhead, either, at least not a
tiny bit more than *roff, precisely because the latter could be
automatically converted into the former. (Although I'd prefer
Markdown here, with <http://example.org/> for the links.)
For precisely the same reason, MathML implies no more overhead
than the LaTeX notation, as there're existing tools to convert
(a subset of) the LaTeX math language into MathML.
[âŚ]
>>> 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
Did you note that the table was quoted the wrong way, BTW?
That's one of the issues that HTML would've helped to avoid.
>> 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.
Copying a plain-text table from a message to a non-plain text
document would imply some non-trivial parsing; HTML makes this
task easier.
> If a table is intended for parsing, it is meet to post it as tabâ or
> commaâseparated, either in the body of the message or as an
> attachement.
This would put extra burden on the reader (copying CSV into a
file to open with a spreadsheet software, scrolling or switching
between the windows showing the text and the table.)
> 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 ââ
Two HYPHENs (U+2010) don't add up to a proper EM DASH (U+2014),
BTW.
> a regular linear structure, which is easier parsed from plainâtext
> (CSV) than from HTML.
Actually, CSV isn't much easier to parse than XHTML, so it
warrants using a library for that. Then, there isn't much
difference in using an XML library vs. a CSV one.
Consider, e. g., the following single-row, three-column CSV
dataset:
1,"a","well, ""hello, world"", as an example"
This issue was recently discussed in news:fido7.ru.unix.bsd [1].
[1] news:1187446717@ddt.demos.su
http://groups.google.com/group/fido7.ru.unix.bsd/browse_thread/thread/ee7bdde4f5241891/0378d3455ffa4046
[âŚ]
> As for the XML tools you mentioned, I am afraid every 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.
I've provided some counterexamples in the other part, but here's
two more arguments.
First of all, the HTML "table" elements have well-defined
structured meaning, and while the location (in the DOM tree) of
a particular table may vary between documents, it'd likely be
only a matter of changing an XPath expression to âadaptâ the
code from one document to the other.
For the second argument, I'd refer to Eric Raymond's âDocBook
Demystification HOWTOâ:
--cut: http://tldp.org/HOWTO/DocBook-Demystification-HOWTO/intro.html --
[âŚ] The advocates of XML-based âstructural markupâ (as opposed to
the older style of âpresentation markupâ exemplified by troff, Tex,
and Texinfo) seem to have won the theoretical battle. [âŚ]
--cut: http://tldp.org/HOWTO/DocBook-Demystification-HOWTO/intro.html --
[âŚ]
--
FSF associate member #7257
Technical Details
Message-ID:
<86bom568bc.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!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!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> <86pqap93c8.fsf_-_@gray.siamics.net> <jnn2ni$8tm$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <86bom568bc.fsf@gray.siamics.net>
Subject: Re: HTML (XHTML) in netnews
Date: Thu, 03 May 2012 14:19:03 +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> <86pqap93c8.fsf_-_@gray.siamics.net> <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.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!zen.net.uk!dedekind.zen.co.uk!aioe.org!.POSTED!not-for-mail
Newsgroups: news.misc,news.software.readers
Organization: Aioe.org NNTP Server
Lines: 282
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
Summary: It's argued that while various work-arounds may be employed to
represent images, tables, mathematical formulae, and the like,
in "pure" plain text, XHTML gives a more straight-forward solution.
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:PbYw5o6gUgpaNb/XidOW2SqKH/8=
X-Original-Bytes: 12255