| 
			
			 | 
		#31 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470 
				Karma: 13095790 
				Join Date: Aug 2007 
				Location: Grass Valley, CA 
				
				
				Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Dale  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#32 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Has anyone tried asking Mobi for a specification of the compression format?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#33 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'd guess it would be some kind of huffman code, since that's optimal for data on which you have a good prior. See http://en.wikipedia.org/wiki/Huffman_coding
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#34 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 12 
				Karma: 636 
				Join Date: Feb 2008 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Mobipocket HuffDic compression
			 
			
			
			If someone can provide me with mobipocket files that use the HuffDic compression scheme, I could attempt to write a decoder, assuming the compression format isn't too complicated and/or it would take too much time to figure out how it works.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#35 | 
| 
			
			
			
			 Avid reader 
			
			![]() ![]() Posts: 262 
				Karma: 132 
				Join Date: Mar 2005 
				Location: The Netherlands 
				
				
				Device: HTC Touch Diamond, iLiad Book Edition 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			If you want to do such a thing then the easiest thing you can do is to get the free mobipocket creator from their website, generate a miniature book and compress it with various kinds including the c2 option so you can check how it proceeds from raw uncompressed to compressed state. Really, all you need you can download for free already.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#36 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452 
				Karma: 7185064 
				Join Date: Oct 2007 
				Location: Linköpng, Sweden 
				
				
				Device: Kindle Voyage, Nexus 5, Kindle PW 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 http://www.mobipocket.com/forum/view...=decompressing by DMcCunney but no answer.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#37 | 
| 
			
			
			
			 New York Editor 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,384 
				Karma: 16540415 
				Join Date: Aug 2007 
				
				
				
				Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#38 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452 
				Karma: 7185064 
				Join Date: Oct 2007 
				Location: Linköpng, Sweden 
				
				
				Device: Kindle Voyage, Nexus 5, Kindle PW 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#39 | 
| 
			
			
			
			 Kindlephilia 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,017 
				Karma: 1139255 
				Join Date: Nov 2007 
				Location: Snowpacolypse 2010 
				
				
				Device: Too many to count 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank-you, DarkNinja for liberating my DRMed books! Even with the flu I feel like dancing!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#40 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 12 
				Karma: 636 
				Join Date: Feb 2008 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I wrote a decompressor for the new huffdic compressed files. Maybe this code can be incorporated into mobiperl? 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Note. This program does not break any DRM encryption, so it's not illegal. It just decompresses files compressed with the new compression into a raw html file. Thanks to Igor Skochinsky for the valuable assistance. http://pastebin.com/m656dfbda Last edited by darkninja; 02-12-2008 at 06:51 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#41 | 
| 
			
			
			
			 Reticulator of Tharn 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618 
				Karma: 400000 
				Join Date: Jan 2007 
				Location: EST 
				
				
				Device: Sony PRS-505 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Nice!  However for the one from-the-wild compressed mobipocket book I have the trailing data-entries size calculation is obviously spurious (e.g. values like 251929435 bytes), which results in significant quantities of clipped text.  Any chance you could take a second look at your algorithm / post details of how you derived the algorithm you do have?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#42 | |
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 37 
				Karma: 11 
				Join Date: Jun 2007 
				
				
				
				
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   Ironically for MobiPocket, this development would just result in more business from me as I would be less hesitant in buying more buying more Mobi books from now on.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#43 | 
| 
			
			
			
			 Member 
			
			![]() ![]() ![]() ![]() ![]() ![]() Posts: 12 
				Karma: 636 
				Join Date: Feb 2008 
				
				
				
				Device: none 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#44 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,574 
				Karma: 64462893 
				Join Date: Jan 2008 
				Location: Harrisburg outskirts 
				
				
				Device: Palms, K1-4s, iPads, iPhones, KV, KO1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Oooo - I see on your blog that you've also got an eReader to html converter.  THAT one I'll have to go try!  I have a *bunch* of eReader books, that I haven't all read yet and want to read on my Kindle.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#45 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 834 
				Karma: 102419 
				Join Date: Sep 2007 
				Location: Vienna, Austria 
				
				
				Device: iPhone 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			hmmmmmm ... what about protected eReader books? 
		
	
		
		
		
		
		
		
		
		
		
		
		
			There's a book I *really* want to read, but it's only available in pbook or eReader format. Could I buy it from eReader and then convert it to html? *ohpleaseohpleaseohplease* EDIT: as I can see in another thread, your tool will do just that! excellent! Last edited by mores; 02-13-2008 at 05:55 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| conversion, drm, formatting, mobipocket | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| New Epub/Mobipocket creation tool: Jutoh | Julian Smart | ePub | 78 | 03-28-2014 08:28 AM | 
| eReader Decoder Tool | wallcraft | Workshop | 177 | 09-27-2009 09:46 PM | 
| Secure Mobipocket Decoder | ebookfab | Kindle Formats | 3 | 12-09-2008 09:50 PM | 
| Secure Mobipocket Decoder v0.3 | Aenea | Kindle Formats | 74 | 07-10-2008 10:57 AM | 
| Secure Mobipocket Decoder is no more... | Aenea | Kindle Formats | 26 | 04-12-2008 10:53 AM |