9 May 2002 wwwwolf   » (Journeyer)

Random coding idea I'm trying to make reality: Since I sometimes subtitle stuff, it'd be nice to make transcripts of the subtitled things. I use SubStation Alpha, a pretty nice subtitling program that has an easy to parse textual format. The format stores start/end times of each dialogue line, and also it's possible to save the name of the character who said the line to the event.

Now, assuming the script has the names of the character everywhere, all I need to do is to read the file, sort the events by start time, merge all lines from same character that fall withing specified time (for example, in case of the thing I'm subtitling now - Sniper Wolf's death scene in MGS - it's about 3 seconds), and dump out the dialogue in HTML.

Easy as pie in Perl, but I need to tell more later on - It's pretty late here... (2002-05-10T02:10)

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!