PlasTeX is an implementation of LaTeX in Python, which supports custom rendering classes - you can provide a new class on the output end of the function which transforms something a little like DOM into XHTML or XML.
I'm thinking of using this to convert a series of novels which have been written in LaTeX into ePub.
It occurred to me that I might write a custom rendering engine to transform the book I have into all of the file-components of ePub, however it's likely that somebody else has already done this. Not wanting to re-invent the wheel, are you aware of any project (or possibly an undocumented feature of PlasTeX) which already does what I need?
A search of Google and the PlasTeX documentation suggests that I might have to actually write this thing! Please say it 'aint so!
ePub does not seem to be a particularly difficult format to master, however I am incredibly lazy and dislike repeating programming that other (possibly much better) developers have already done, so please point me in the right direction!