On Mon, May 01, 2006 at 11:10:49AM -0400, Fred Drake wrote:
> On 5/1/06, Jason <desade_ky@...> wrote:
> > I'd like the same thing myself. I've downloaded the latest RTF specs
> > and was thinking of taking a weekend or two to hammer out a RTF to TeX
> > converter. (I prefer plain TeX with my own macro packages over LaTex,
> > but I could do either.)
>
> I've got an RTF parser (in Python, of course!), but can't share that
> code since it belongs to my employer. I'd be much more interested in
> highly semantic markup than something general; that could then be
> styled in interesting ways.
>
> Non-LaTeX would still be interesting to me if the markup is semantic.
> If we had a definition of the markup we wanted, we could share the
> encoding labor. I expect the conversion might be substantially manual
> for a sufficiently interesting markup. :-(
I took a run at this a year or two ago. My first step was to go through
the entire RSRD in Word, applying styles consistently (and adding styles
to mark 'monster', 'feat', etc. beginnings). I dumped this to WordML,
ran it through a preliminary XSLT filter to strip and collapse things
(removing all the 'spelling errors', for example), then had XSLT go
through and peel off the various game elements.
Yep, pain in the ass... but it's doable. I just haven't *finished*
doing it.
> What I'd hope to have in the end would be a Subversion repository with
> 3.5 SRD as the trunk, and create branches for individual projects.
> :-)
This is a possibility, especially since it makes it nominally easier to
merge changes to the RSRD into the rest of the system.
Keith
--
Keith Davies "Always code as if the guy who ends up
keith.davies@... maintaining your code is a psychopath
keith.davies@... who knows where you live."
http://www.kjdavies.org/ -- Damian Conway