View Single Post
Old 10-30-2009, 04:11 AM   #29
LucasCorso
Enthusiast
LucasCorso doesn't litterLucasCorso doesn't litterLucasCorso doesn't litter
 
LucasCorso's Avatar
 
Posts: 48
Karma: 239
Join Date: May 2009
Location: Belgium
Device: Kindle DX
Quote:
Originally Posted by alterego View Post
I am temporarly using this dictionary, but if someone can help me to change this metadata in the mobi dictionary i have i would appreciate it soooooo much. As i said i don't know much about this format and i don't know the tools all of you use. If someone knows a fast way to do this it would be great.
I made a quick and dirty Windows application to patch a mobi file to the language I need. Of course, I'm not at home now so it will have to wait until tonight. But if you understand how to work with a hex editor it's very easy to change the language code yourself.
I will post a screen capture as an example.
Usually you can recognize a dictionary because of a smaller number of FF in the header. In my example it's 28 (a book usually has 40). But search with a hex editor for 20 FFs lets say. After the last FF in that group, ignore the next 12 bytes (I don't know what they are), and the next 12 bytes you need to modify, each group of 4 represents a language code. In the picture attached, it is 04 09, then 09, then again 09. 09 is English, 04 09 is American English. I found in my tests with dictionaries that patching these to English I don't have problems and no more error messages: "can't open the default dictionary".

I hope it helps a little.
Attached Thumbnails
Click image for larger version

Name:	mobi.jpg
Views:	1781
Size:	205.6 KB
ID:	38291  
LucasCorso is offline   Reply With Quote