Search the web
Sign In
New User? Sign Up
d20-xml · Discussion of XML for d20
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[OT] SRD in LaTeX?   Message List  
Reply | Forward Message #2435 of 2466 |
Re: [d20-xml] [OT] SRD in LaTeX?

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. :-(

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.
:-)

> Something aimed strictly at the SRD might not take as long as something
> more generic, but it depends a good bit on how consistent the
> formatting is from file to file. I've not looked at all the SRD docs in
> raw format to really figure it out.

There's consistency, and extractability. Not sure how much magic I
want to apply to guessing whether something is a spell name or
whatever.

> The SRD has been converted to docbook, and I'm pretty sure you could
> easily convert the docbook to TeX. I've been thinking of using the
> docbook to HTML conversion to have something more portable than RTF.

Would that be Andargor's version? Just took a look at the Docbook for
that; the tools I have don't seem to like it; the XInclude isn't
getting processed. (Using docbook2pdf on Ubuntu Linux, which claims
not to support XML anyway.)

I think DocBook would be fine for me if I had decent tools, and a
better clue about creating/modifying stylesheets, but LaTeX is what I
already know.


-Fred

--
Fred L. Drake, Jr. <fdrake at gmail.com>
"Don't let schooling interfere with your education." -- Mark Twain



Mon May 1, 2006 3:10 pm

pythondocs
Offline Offline
Send Email Send Email

Forward
Message #2435 of 2466 |
Expand Messages Author Sort by Date

This is a little off-topic, but this seems as reasonable a place to ask as I'm aware of. Does anyone know of a version of the SRD in LaTeX format, instead of ...
Fred Drake
pythondocs
Offline Send Email
Apr 30, 2006
7:00 pm

... As far as I know, there is no LaTeX-version, but IIRC one could use XeTeX for transforming XML into LaTeX. But I'm not sure which XML formats XeTeX works...
Johannes Luber
verequus
Offline Send Email
Apr 30, 2006
8:54 pm

... 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...
Jason
desade_ky
Offline Send Email
May 1, 2006
2:20 pm

... 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...
Fred Drake
pythondocs
Offline Send Email
May 1, 2006
3:11 pm

... RTF doesn't look all that difficult to parse, but I'd need to play with a bit to make any sort of judgment on that. I've also found some free RTF parser...
Jason
desade_ky
Offline Send Email
May 1, 2006
4:57 pm

... It's not all that bad, but not interesting enough by itself to write a parser for if you already have one. ... Table-driven replacements would be trivial,...
Fred Drake
pythondocs
Offline Send Email
May 1, 2006
8:27 pm

... 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...
Keith Davies
jdk_kjdavies
Offline Send Email
May 1, 2006
11:29 pm

... This is very much something I'd like to avoid doing in a word processor of any sort. I can get by doing very basic in MS Word and OpenOffice (including...
Fred Drake
pythondocs
Offline Send Email
May 2, 2006
4:32 am

... I agree entirely. This step took a number of hours -- I could have done it in a single day if I'd had everything set up ahead of time. I wasn't trying to...
Keith Davies
jdk_kjdavies
Offline Send Email
May 2, 2006
9:10 am

... [Snipped for brevity.] ... I was hoping for some consistency in the RTF of the SRD so I could just look at it and not what stylistic changes signal...
Jason
desade_ky
Offline Send Email
May 2, 2006
1:09 pm

... XSLT can easily output to any text based file format. I have generated RTF from XML using XSLT before, you just need to be careful about whitespace and...
frugal@...
frugal10191
Offline Send Email
May 2, 2006
1:37 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help