[e-lang] Convert Walnut to MediaWiki

James Graves ansible at xnet.com
Sun Nov 26 08:02:14 CST 2006


Martin Scheffler wrote:

> P.S.: I would volunteer for fixing that up and maybe chunking the
> walnut into a number of pages

Overall, the conversion does look good.  However, there are a couple
problems that I recommend be fixed with the script.


1) Title links.  If you look at the code for the section and subsection
titles, you'll see that everything points back to skyhunter.com.
However, this need to be just plain titles.

So instead of this:

===[http://www.skyhunter.com/marcs/ewalnut.html#TOC5 Why this Book? Why
not this Book?]===

We want this instead:

===Why this Book? Why not this Book?===

MediaWiki generates its own table of contents based on the section and
subsection headers.  So we can also just delete the hand-made TOC.


2) The other main problem is the code samples.  The conversion has used
BLOCKQUOTE instead of PRE tags.  That might be easy to fix in the Perl
script.


It is good that the conversion script exists at all.

James


More information about the e-lang mailing list