Am 08.02.2012 um 00:28 schrieb don kretz:
Lots of facets to this lesson - minimal markup is best.
It's the same reason TEI looks nearly reasonable with no markup.
A lot of the refactoring from old DP html to portable html is going go be
just taking things out and remarking a few things syntactically (like
chapter headings).
Rather than inline style, you could also have just changed it to:
<chapter_heading>Chapter 1</chapter_heading>
and added to your stylesheet:
chapter_heading { display: block; plus the other css stuff to match <h2>, or anything more to your taste }
and you would have exactly the same appearance, with greater granularity of control over all the chapter headings.
And if you change the css for whatever reason, you run no risk of unintentionally messing up all the other stuff someone has called "<h2>".
I am glad you brought this up.
It shows the need for a separate mark up language.
That is do not generic features of a given language driectly, but
use the extend as much as possible.
I'm going through deformatting a project into wordpress now (not Encyclopedia Brittanica - more about this project later.) I didn't choose it because it was good or bad in any way - it's a very random project.
It's not starting out auspiciously. In the title page there's a poem. The poem resides in a table, all its own, otherwise the table is serving no purpose. I have simplified it down to:
<poem>
<attribution>poet</attribution>
</poem>
(which, yes, is 100% equivalent to <div class="poem"> and <div class="attribution">, but it's simpler, and displays just as well; and both can be mapped properly to any other markup that understands poems and attributions.)
and with simple css - nothing inline, no <br/>s, nothing - it looks much better than it does in the table - with less markup than the table has, in fact. Since it's simpler and less ambiguous, the proofer, formatter, and PPer all can have a greater sense of control over the process.
Both these cases illustrate the general principle for refactoring DP html: Identify things syntactically and remove ambiguity, and there's not nearly as much to do (and the result usually looks better).
On Tue, Feb 7, 2012 at 1:13 PM,
<Bowerbird@aol.com> wrote:
ok, greg, new versions of "pride and prejudice",
incremental improvements for the tournament.
_______________________________________________
gutvol-d mailing list
gutvol-d@lists.pglaf.org
http://lists.pglaf.org/mailman/listinfo/gutvol-d