Hi,
I have fixed bugs regarding RESC section processing. Three bugs are fixed as follows:
- In 'kindleunpack.py', RESC section extraction failure (reported before) is fixed.
- In 'mobi_opf.py', potential confliction of item ids between the id generated in and extracted one from RESC is fixed.
- In 'mobi_resc.py', modified to make possible to process multi-line comments in RESC.
Attached files are as follows,
- kindleUnpack_diff_v65a.zip: updated files (kindleunpack.py, mobi_opf.py and mobi_resc.py)
- kindleunpack_v65a.patch.txt: patch file version of the update (changes are identical to kindleUnpack_diff_v65a.zip)
- Illformed_RESC_exmaple.mobi and example4_src.zip: the example to comfirm fixes 2 and 3. It is made to conflict id intentionally and including multi-line comments in an opf file.
Thanks,
tkeo