Douglas Milewski (dacuteturtle) wrote,
Douglas Milewski
dacuteturtle

Rewriting

I've been rewriting my perl code YET AGAIN for the D&D Wiki. This time, I started by converting tables directly into wiki format. To do that, I sucked up all the text into a single variable and did all the operations on that variable. The idea of sucking 100 pages of text into a single variable, mangling it, then returning it in 1 second still apalls me. The results of this, however, have been grand. I am producing the cleanest output text yet, and autolinking a large number of terms. Best of all, this should also be the most portable version of the script, better able to handle the wide variety of formats.

I still have many problems to solve with the new script, the biggest being categories and some entry dividers. Last time, I used a fluke of the html formatting to tell where I was in a table. This time, I must be more clever.

We spent a little time downtown today. A friend of Jen's was through, so we had an early dinner at Kramer's books. I snapped a few, fun pics, too.
Subscribe

  • Moving to DreamWidth

    For those heading to DreamWidth, I've created an account. I'm dmilewski.

  • Prostitution as a Means of Family Planning

    Does prostitution constitute a method of family planning? If a man doesn't want more children, then instead of having sex with his wife, he has sex…

  • The Swordbearer (1982)

    The Swordbearer (1982) by Glen Cook is the dark fantasy version of a YA novel. If you know Glen's writing style, you'll recognize the disaster about…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments