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...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

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 #2441 of 2466 |
Re: [d20-xml] [OT] SRD in LaTeX?



--- Keith Davies <keith.davies@...> wrote:

> On Tue, May 02, 2006 at 12:31:56AM -0400, Fred Drake wrote:
> > On 5/1/06, Keith Davies <keith.davies@...> wrote:
> > > 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).
> >
> > 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 semantic marking like this), but I find it so
> > much easier in a real text editor.
>
> 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.

[Snipped for brevity.]

> And yes, it was mindnumbing and sucked. Thanks for asking.

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 transitions from one
section of text to another. Then, I could either write a custom program
to parse it and output what I want, or I could just use sed.

>
> > I spent a little time this evening thinking about a LaTeX-based
> markup
> > language for this stuff, but there are so many bits and pieces that
> > beg for markup. Making use of some of this stuff from LaTeX is
> likely
> > beyond my level of TeX-fu. I wonder if using XML does make sense
> for
> > this, and then use XSLT to generate LaTeX for typesetting.
>
> This is what I was doing, yes. While *TeX is nice for formatting, I
> find it's not really good as the base for transformations.

Yes, Keith's observation is quite true. TeX can be used as a sort of
XML-ish semantic markup, but it *is* aimed more at producing pretty
documents for output to a printing device. However, TeX is a
Turing-complete programming environment (as is PostScript) and when you
really know TeX it can be twisted to do some ineteresting stuff.

To me, just getting a prettily formatted SRD isn't that interesting,
but writing something in TeX that could generate prettily formatted
NPCs for inclusion in other TeX documents (such as my campaign modules)
is rather interesting.

After giving the subject a little more thought, it would probably be
better overall to swipe someone else's XML rendition of the SRD, or
even "steal" the Hypertext SRD, and use XSLT to output the TeX.--I
understand XSLT to be capapble of giving you any output not just a
different XML.

>
> > Whatever the metalanguage, things like this always seem to demand
> new
> > markup languages on top of the base, and that always ends up being
> A
> > Project.
> >
> > Has anyone experimented with a specialized XML language for the
> SRD?
>
> That *is* what this mailing list is about, is it not? I think a
> bunch
> of us have. We might even settle on a standard, too, if we all had
> the
> same uses for the data.

The last statement seems to be one of the unresolvable issues, isn't
it? As another recent thread made plain most of us have different goals
and ideals in mind when we're doing our own little thing with XML and
the D20.

I would personally like to see some very generic declarative/semantic
markup that can be used to encapsulate all the rules of a D20 game that
could be parsed and acted upon by a "generic" D20 game engine. This
mythic game engine could be the heart of a MUD, a NPC/PC generator, a
help system for the harried DM, an electronic tabletop, or even the
rules engine of a M?MORPG. (I'm not saying it could be all those things
at once, but it could be used in any or all of those things.) With
everything defined in XML, swapping out the rules is as easy as
pointing at a new set of files. So, one day you play D20 Fantasy, and
the next you play D20 Modern or Sci-Fi, all with the same software.

Ambitious? Yes. Possible? Yes. Crazy? Quite likely. Does that last goal
contradict my previously stated goal of having a TeX-based PC
generator? Yes, it probably does. To quote Walt Whitman:

Do I contradict myself?
Very well then, I contradict myself.
I am large. I contain multitudes!

At any rate, I also know that given the constraints on my personal
time, I'm likely never to finish such an ambitious project, so I don't
start, but there it is. I lay it out there as a challenge to myself and
to others if they care to take it up.

Well, the nasty clock on the wall is telling me that I should get to
doing my "real" work.

Cheers,
Jason

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Tue May 2, 2006 1:08 pm

desade_ky
Offline Offline
Send Email Send Email

Forward
Message #2441 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