03-25-2008, 05:08 PM | #1 |
Retired & reading more!
Posts: 2,764
Karma: 1884247
Join Date: Sep 2006
Location: North Alabama, USA
Device: Kindle 1, iPad Air 2, iPhone 6S+, Kobo Aura One
|
Does anyone know the Mobipocket compression?
Does anyone know the Mobipocket compression algorithms, or are they proprietary? Im interested in compression methods. If you don't know them, do you know where to find documentation on them?
|
03-25-2008, 05:52 PM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
MobiPockect's highest level of compression isn't formally documented anywhere, but the python programs mobi2oeb and mobihuff.py decompress DRM-free MOBI books.
|
Advert | |
|
03-25-2008, 08:29 PM | #3 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
|
|
03-26-2008, 06:49 AM | #4 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Python is not that hard to read
|
03-26-2008, 11:08 AM | #5 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
No. The hard part is to get a mathematical description of the method. I would like to do a clean room implementation since I am a bit unsure of the legal status of Python code and the legal status of an implementation based in the Python code. Also it would be much easier to re-implement it in Perl from a more high level description.
|
Advert | |
|
03-26-2008, 01:55 PM | #6 |
creator of calibre
Posts: 44,337
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's just huffman coding, a public domain algorithm, with a few implementation winkles. Frankly, I don't see any difference between "a mathematical description" and a "source code description" since both use a language to describe an algorithm.
|
03-26-2008, 01:59 PM | #7 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
A mathematical description from which I do an implementation were I do not look at existsing copyrighted code is definitely unproblematic. |
|
03-26-2008, 02:06 PM | #8 |
creator of calibre
Posts: 44,337
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You're assuming the python code was written looking at copyrighted code rather than reverse engineering? On what basis? For a mathematical description, just google huffman coding.
|
03-29-2010, 11:38 PM | #9 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: Kindle
|
Compressing to Mobi or PRC
Thanks for the good start on decompression. I am kind of new to these algorithms and compression in general. My language of choice is C#. If I wanted to learn how to create a .mobi or .prc from original HTML/images/etc. in C# does anyone here have advice on how to begin?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover Image Compression. | Ichi | Calibre | 3 | 01-04-2010 06:38 AM |
Unsupported Compression Method on the jetBook? | Dr. Drib | Ectaco jetBook | 6 | 08-24-2009 02:12 AM |
MOBI Output Compression? | sirbruce | Calibre | 6 | 06-14-2009 07:10 PM |
MOBI Output Compression? | sirbruce | Calibre | 4 | 03-27-2009 10:51 AM |
ePub compression | gonzule | ePub | 3 | 10-25-2008 03:35 PM |