[Pydotorg-redesign] Logo question
Walter Dörwald
walter at livinglogic.de
Sat Aug 2 00:20:23 EDT 2003
Fred L. Drake, Jr. wrote:
> [...]
> > > I hope you'll still be using the .ht as the source format, otherwise
> > > life as we know it will end before we're ready!
> >
> > Sure, I'm not planning to introduce new tools right now. And I'm not
> > planning to check in anything major without a review.
>
> Sounds good.
>
> Another thing to consider for document-centric content is to rework it
> to use reStructuredText; Andrew Kuchling updated HT2HTML to support
> that a few days ago, and I just converted doc/Summary.ht to use that;
> much nicer than dealing with markup in text!
But is reST rich enough and extensible enough?
> > My tools don't validate the generated XHTML either, but they make sure
> > that the result is well-formed XML and only the elements and attributes
> > existing in XHTML are present. E.g. a <p> nested inside a <p> isn't
>
> My htwf.py well-formedness checker for .ht files now checks for this
> particular case (well, any block tag inside and open <p>).
Good!
> Automating
> the check via a validator is probably a good idea and not too
> difficult.
Should I find the time, I guess I could try an xmlproc based
validator.
> > OK, I'll post a patch once the bugtracker is in place (and the patch
> > is finished ;))
>
> More interesting may be the conversion tool. ;-)
OK, my first try of a conversion tool is finished. A version
of the Python site build from your download tar can be found at:
http://styx.livinglogic.de/~walter/www.python.org-xhtmlified/
All .ht were transformed with the conversion tool:
http://styx.livinglogic.de/~walter/www.python.org-xhtmlified/ht2xht.py
To run this script, XIST is required
(http://www.livinglogic.de/Python/xist/)
scripts/ht2html/HTParser.py must be copied to the root directory,
and the patch
http://styx.livinglogic.de/~walter/www.python.org-converted/diff.txt
has to be applied to fix the bugs that even tidy can't fix.
Bye,
Walter Dörwald
More information about the Pydotorg-redesign
mailing list