Hi Doitsu,
Indentation is critical in python, so if a line is indented too much it will actually change what the code means.
Please verify that the code immediately after the piece we have been working on
tagMap = getTagMap(controlByteCount, tagTable, data, startPos+1+textLength, endPos)
is indented to the exact same amount as the very beginning of the line:
if hordt2 is not None:
If it is indented further it will be included in the if statement when in fact we want it after the if. Your other dictionaries worked because they used ORDT tables but the two that failed do not which means the working ones took the if path but that tagMap line should be run by both ( ie. not part of the if )
That leads me to believe the indentation of that tagMap line may have been messed up during editing.
Please verify if that is the case.
If so,when I get a free moment I will clean up the code and include a new mobi_dict in the next release. I am heading out of town for a few days so I hope this does the trick. Otherwise, I will look at it when I am back and have some free time.
Take care,
KevinH
Last edited by KevinH; 08-31-2014 at 08:08 PM.
|