🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250189

presentational vs. structural markup

#250189
From: Ivan Shmakov
Date: Fri, 04 May 2012 14:21
64 lines
3942 bytes
>>>>> Anton Shepelev <anton.txt@g{oogle}mail.com> writes:
>>>>> Shmuel (Seymour J.) Metz:

	[Cross-posting to news:comp.text, and dropping news:news.misc
	from Followup-To:.]

 >> Eric Raymond's DocBook into:

 >>> In a structural-markup language, you would tell the formatter to
 >>> emphasize the word:

 >>>     All your base <emphasis>are</emphasis> belong to us!

 >> No; that's still marking up the text for presentation.  With
 >> structural markup you tag the text to indicate its semantics, e. g.,
 >> ":title.Return of the foo".  That might cause emphasis, quoting or
 >> something else.  It might cause automatic indexing.  It might do
 >> something else.  And it might do different things depending on the
 >> context.

 > I think you are nitpicking here, because the tag <emphasis> may be
 > endowed with any meaning by means of a style sheet.  Similarly you
 > could have a <title> tag.

	There's one more issue with the TeX approach, which is not as
	much of structural vs. presentational kind, as it's of code
	vs. data one.

	Namely, while it's possible to parse DocBook, documents in
	TeX-based markup are essentially /unparsable/.  For instance,
	while it's possible to extract all the section headings from a
	DocBook document, it's impossible to do so, in general, for a
	LaTeX one, as the LaTeX document in question can introduce its
	own commands all along the way.  Consider, e. g.:

\let \sec=\section

	The same applies to *roff, and it's precisely the reason that
	various *roff "viewers" have to either rely on an implementation
	of the language (such as GNU Troff), or support only a
	particular macro package (as in the case of Emacs' M-x woman.)

	On the contrary, the software working with DocBook documents
	doesn't have to rely upon, say, the DocBook XSL stylesheets.

[...]

 >>> the interface of a macro package corresponds to a structured markup
 >>> language

 >> Some macro packages are strictly presentational.

 > Yes.  Structural mark-up is an abstraction from the lower-level
 > presentational mark-up.  For example, TeX is presentational and LaTeX
 > is strutural.

	Actually, LaTeX is structural, plain TeX is presentational, and
	TeX is the macro processing language in which both of them are
	implemented (as are, e. g., ConTeXt and certain GNU Texinfo
	"conversions.")

-- 
FSF associate member #7257
Technical Details
Message-ID: <86zk9o2fin.fsf_-_@gray.siamics.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.text.mbox.zip!h15ni198054bkw.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!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> <jnn2ni$8tm$1@dont-email.me> <86bom568bc.fsf@gray.siamics.net> <20120503182848.b522c931809e08a984cc1962@g{oogle}mail.com> <4fa2b8de$8$fuzhry+tra$mr2ice@news.patriot.net> <20120504174425.c5e899cd27c5cb2b6895f69a@g{oogle}mail.com>

Show Full Headers
Complete Article Headers
Message-ID: <86zk9o2fin.fsf_-_@gray.siamics.net>
Subject: presentational vs. structural markup
Date: Fri, 04 May 2012 21:21:36 +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> <86bom568bc.fsf@gray.siamics.net> <20120503182848.b522c931809e08a984cc1962@g{oogle}mail.com> <4fa2b8de$8$fuzhry+tra$mr2ice@news.patriot.net> <20120504174425.c5e899cd27c5cb2b6895f69a@g{oogle}mail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.text.mbox.zip!h15ni198054bkw.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail
Received: by 10.204.152.217 with SMTP id h25mr805763bkw.3.1336141299190;
Newsgroups: comp.text,news.misc,news.software.readers
Followup-To: comp.text,news.software.readers
Organization: Aioe.org NNTP Server
Lines: 63
NNTP-Posting-Host: FtDGZaUx6k7Bzdiv4MgYAg.user.speranza.aioe.org
Mime-Version: 1.0
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:kt+S0rZwbOzf3G2qdsOhKVZDtZU=
Content-Type: text/plain; charset=us-ascii