3

I'm working on a library to work with Mobipocket-format ebook files, and I have LZ77-style PalmDoc decompression and compression working. However, PalmDoc compression is only one of the two currently-used types of text compression being used on ebooks in the wild, the other being Dictionary Huffman aka huffcdic.

I've found a couple of implementations of the huffcdic decoding algorithm, but I'd like to be able to compress to the same format, and so far I haven't been able to find any examples of how to do that yet. Has someone else already figured this out and published the code?

clee
  • 10,943
  • 6
  • 36
  • 28
  • What do you mean, you don't want to reverse engineer that decoding algorithm?!? :D – ErikE Oct 14 '10 at 00:18
  • I think I *can*... but it'd be nice to have a reference implementation to work against :) – clee Oct 14 '10 at 00:32

1 Answers1

1

i have been trying to use http://bazaar.launchpad.net/~kovid/calibre/trunk/view/head:/src/calibre/ebooks/compression/palmdoc.c but compression doesnt produce identical results, & there are 3 - 4 descrepencies also read one related thread LZ77 compression of palmdoc

Community
  • 1
  • 1
duckduckgo
  • 1,280
  • 1
  • 18
  • 32