in reply to Help translating into HTML

Hi,
I may be prepared to have a go but there is a condition!
Have you given all the possible format variations? The last time you started off with a fairly straight forward question and I came up with a simple algorithm (the table) as a starting point.
You then proceeded to drip feed more permutations which I tried to incorporate. As you noticed, I gave up in the end.
Sometimes, rather than trying to code yourself out of a problem, it is best to start again. This may be one of those occasions. I'd still go the table route but change the structure.
So, three questions: Have you given all the permutations? Have you given all the permutations? Have you given all the permutations?
Sorry to be sarcastic but last time was a bit exasperating. Formatting
Updated: Fixed typo

Replies are listed 'Best First'.
Re^2: Help translating into HTML
by mrxg4 (Initiate) on Jul 17, 2004 at 16:01 UTC
    Alright, you're right, I haven't mentioned a few, but here we go.

    First of all, lines that begin with C or M are ignored (but in the case of C it specifies the beginning of the block, so in that case everything after the C should be ignored and finally written as <c>)

    Then, lines that begin with S, are written as: <set name="temant"> </set>, after the <t>.

    The # are comments, and should be written as <!-- whatever -->, but this is already done, as you probably noticed.

    One more thing, sometimes, a block entry might have many K's (or 1, doesn't matter), but no S or T (and then R's). Please note that S and T are *rarely* within the same block, if there is no T then theres usually an S instead. I've done all this successfully in the last code I sent you, so you can check that from there.

    Hope this is clear and thanks for all the help you've given so far :)

    Kind Regards,
    Marcos