Hi
I'd like to use Sphinx to create an improved TeX/CTAN catalogue. You
can see the current version at
http://texcatalogue.sarovar.org/
The sources for the catalog are XML files, such as below. What I'd
like to do is to directly convert these source files into pickled
files that the sphinx build process can use, rather then generated a
whole bunch of restructured text files.
So, roughly speaking, I'd like to parse the XML files (as below) into
restructured text trees or the like.
I've had a look at the documents on extensions, but don't see how to
proceed. Can anyone help? Is there a good route from XML to pickled
trees that does not proceed via rst?
It would be much appreciated (particularly, I hope, by future users of
the TeX Catalogue).
Here's the XML file for Donald Knuth's TeX program.
===
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE entry SYSTEM 'catalogue.dtd'>
<entry datestamp='$Date: 2009-11-09 23:58:07 +0000 (Mon, 09 Nov 2009)
$' modifier='$Author: robin $' id='tex'>
<name>TeX</name>
<caption>A sophisticated typesetting engine.</caption>
<authorref id="auth:knuth"/>
<copyright owner="D. E. Knuth" year='1982'/>
<license type='knuth'/>
<version number='3.1415926'/>
<description>
TeX is a typesetting system that incorporates a macro processor.
A TeX source document specifies or incorporates a number of macro
definitions that instruct the TeX engine how to typeset the
document. The TeX engine also uses font metrics generated by
<xref refid='metafont'>MetaFont</xref>, or by any of several other
mechanisms that incorporate fonts from other sources into an
environment suitable for TeX.
<p/>
TeX has been, and continues, a basis and an inspiration for
several other programs, including <xref refid='etex'>e-TeX</xref>
and <xref refid='pdftex'>PDFTeX</xref>.
<p/>
The distribution includes the source of Knuth’s
<em>TeX book</em>; this source is there to read, as an
example of writing TeX — it should not be processed
without Knuth’s direct permission.
</description>
<ctan path='/systems/knuth/dist/tex'/>
<miktex location='miktex-tex-bin-2.8'/>
<texlive location='tex'/>
</entry>
===
Many thanks
Jonathan
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.