I have a lot of pdb files not recognised by CoolReader ("Error while loading document").
These files have sligtly different PalmDOC preamble. They have non zero upper byte of "compression" flag (0x01 there). Otherwise they are perfectly OK.
Could the pdbfmt.cpp (line 71 and forward - struct PalmDocPreamble) be adjusted to ignore upper byte of compression flag? E.g. something like compression&=0xff
Could you please provide sample file for testing?
sure - can you give me email adress (by PM)? I do not want to post it publicly.
You can see soulution by calibre https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/pdb/palmdoc/reader.py in function def decompress_text(self, number):
e.g. compression flag 2 and 258 are same