Page 1 of 1

Packet Parser

Posted: Sun Dec 26, 2010 5:53 am
by Alejandro
I wrote a program that takes packets saved as Microsoft Word doc files and translate them into a QBBot-formatted packet, QBML, or HTML. You can get it here. Looking over the readme file is recommended.
I would appreciate any feedback on the parser. Let me know if it has any problems translating a properly formatted packet.

Re: Packet Parser

Posted: Sun Dec 26, 2010 4:49 pm
by Duncan Idaho
The link seems to be broken.

Re: Packet Parser

Posted: Sun Dec 26, 2010 5:12 pm
by Mike Bentley
What do you do with questions that have answer lines like:

ANSWER: Marriages of Elizabeth Taylor [accept stuff like Weddings, Espousals, Nuptials, or Matrimony in place of the first underlined part of the answer]

You'd have to be really smart about your replacement policy to correctly parse this.

Re: Packet Parser

Posted: Mon Dec 27, 2010 4:32 am
by Alejandro
Ben Cole wrote:The link seems to be broken.
I forgot that our college is undergoing power tests for the next few days, so server access will be sporadic.
What do you do with questions that have answer lines like:

ANSWER: Marriages of Elizabeth Taylor [accept stuff like Weddings, Espousals, Nuptials, or Matrimony in place of the first underlined part of the answer]
For right now it leaves all of that information in, so removing (or manually adding) the alternative answers are necessary. In the future I might try and parse it for special cases.

Also, the original program did not recognize doc files in some systems. I've changed the way the parser recognizes doc files to only go by the file extension, so be sure that all of the .doc files that you are translating are actual Microsoft Word documents.

Re: Packet Parser

Posted: Wed Jan 12, 2011 12:15 am
by sportfreak1881
I am having problems with format that isn't covered in the readme
What are possible problems in an answer line that reads
ANSWER: James Franco

Re: Packet Parser

Posted: Wed Jan 12, 2011 3:26 am
by Alejandro
sportfreak1881 wrote:I am having problems with format that isn't covered in the readme
What are possible problems in an answer line that reads
ANSWER: James Franco
Nothing looks wrong there. Can you send me the doc file with that answer?

Re: Packet Parser

Posted: Wed Jan 12, 2011 11:19 pm
by sportfreak1881

Re: Packet Parser

Posted: Thu Jan 13, 2011 12:01 am
by Alejandro
sportfreak1881 wrote:Sure, at [email protected]?
Yes please.