mobi-rs
mobi-rs copied to clipboard
huff/cdic support
LZ77 is great, but the majority of my purchased Mobi/AZW3 files are huff/cdic compressed.
I have some documentation on the format I managed to put together.
I’m definitely interested in seeing this implemented in this crate. I will dig into the topic once I have some free time.
~~Do you by any chance have some samples of eBooks that are huff compressed and you could share with me? It would definitely make the testing easier.~~
Thanks for the sample!
For reference implementation: https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/mobi/huffcdic.py
Also: https://github.com/bfabiszewski/libmobi/blob/public/src/compression.c
Nice, C implementation will be much closer to what we are looking for.
This is currently in the making thanks to a PR from @philippeitis - #29. Will have to work some issues out but there is light on the horizon :)