Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2010, 12:34 AM   #16
yejun
Junior Member
yejun began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2010
Device: kindle3
Quote:
Originally Posted by belem View Post
Press any keys in Home UI, then it will show Search box.

1. Type ;debugOn , press Enter key
2. Type ~changeLocale zh-CN , press Enter key
3. Restart Kindle in Settings

Should be fine to show simplified Chinese.
This works.

But date doesn't display correctly in some places.
yejun is offline   Reply With Quote
Old 01-05-2011, 09:37 AM   #17
tao
Book Lover
tao began at the beginning.
 
tao's Avatar
 
Posts: 30
Karma: 10
Join Date: Mar 2009
Location: New York City
Device: Sony PRS-505; Kindle 3
How to add locale in Calibre?

Quote:
Originally Posted by Kanru View Post
OK. I think the myth is busted.

According to https://wiki.mobileread.com/wiki/MOBI there is a “locale” field in the mobi header record. By default if the metadata doesn't specify the locale, it is set to “0x0009”. But a .mobi created by Amazon or Mobipocket the field is set to “0x0404” correctly for Traditional Chinese (zh-tw), or “0x0804” for Simplified Chinese (zh-cn).

I have tried to make Calibre output the correct locale and it works! Try add a metadata <dc:language>zh-tw</dc:language> to the epub file then convert again.
Kanru, thank you for the very important elucidation. Would you please specify how to add the locale field in Calibre for mobi?

Say, If I have a text file, I need to convert it into a mobi with the correct locale metadata, do I have to convert it to ePub first? Where can I specify the locale line <dc:language>zh-tw</dc:language>?

Thank you.
tao is offline   Reply With Quote
Advert
Old 01-07-2011, 01:21 AM   #18
Kanru
Member
Kanru began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Sep 2010
Device: Kindle DXG, Kindle 3w
Cool

Quote:
Originally Posted by tao View Post
Kanru, thank you for the very important elucidation. Would you please specify how to add the locale field in Calibre for mobi?

Say, If I have a text file, I need to convert it into a mobi with the correct locale metadata, do I have to convert it to ePub first? Where can I specify the locale line <dc:language>zh-tw</dc:language>?

Thank you.
You can convert it to a opf directory structure first using `ebook-convert <textfile> <dir>' then modify the opf file.

Calibre also set the tag depends on your GUI language preference. It seems the GUI language preference may override whatever you put inside the opf file, but I did generate a correct mobi file then.

NOTE: Although I said the myth is busted but some user still reports that the square font issue seems random and still occur. I don't have a kindle3 so cant really confirm this fix works.
Kanru is offline   Reply With Quote
Old 01-07-2011, 01:40 PM   #19
tao
Book Lover
tao began at the beginning.
 
tao's Avatar
 
Posts: 30
Karma: 10
Join Date: Mar 2009
Location: New York City
Device: Sony PRS-505; Kindle 3
Quote:
Originally Posted by Kanru View Post
You can convert it to a opf directory structure first using `ebook-convert <textfile> <dir>' then modify the opf file.

Calibre also set the tag depends on your GUI language preference. It seems the GUI language preference may override whatever you put inside the opf file, but I did generate a correct mobi file then.

NOTE: Although I said the myth is busted but some user still reports that the square font issue seems random and still occur. I don't have a kindle3 so cant really confirm this fix works.
I did some testing last night. I used Mobi Creator Publisher edition. I filled in all the related metadata, language, locale, etc. Still, after I transfer the books to Kindle, I still see squares, :-(

It seems the
Code:
;debugOn
~changeLocale zh-cn
;debugOff
is the only valid way to make Kindle 3 display Chinese properly, regardless of the locale settings of the mobi file itself. I even tried use HEX editor to change the 0x0009 to 0x0804, didn't help.

Last edited by tao; 01-07-2011 at 01:47 PM.
tao is offline   Reply With Quote
Old 01-08-2011, 05:36 PM   #20
tao
Book Lover
tao began at the beginning.
 
tao's Avatar
 
Posts: 30
Karma: 10
Join Date: Mar 2009
Location: New York City
Device: Sony PRS-505; Kindle 3
Red face A correction

Quote:
Originally Posted by tao View Post
I did some testing last night. I used Mobi Creator Publisher edition. I filled in all the related metadata, language, locale, etc. Still, after I transfer the books to Kindle, I still see squares, :-(

It seems the
Code:
;debugOn
~changeLocale zh-cn
;debugOff
is the only valid way to make Kindle 3 display Chinese properly, regardless of the locale settings of the mobi file itself. I even tried use HEX editor to change the 0x0009 to 0x0804, didn't help.
I was wrong. I made a mistake while testing the Mobi Creator Publisher Edition v4.2. Actually, if everything is done right (filling in the right language and encoding, and click the Update button), the resultant prc file will have the correct locale information, and it will be correctly displayed in Kindle 3, even the device default locale is set to us-en.

The first time, I was testing the Mobipocket Creator in the middle of night, my brain must have been frazzled then.

Sorry for my mis-information in my previous post. So Kanru is right, if the locale is set correct in the mobi file, the device will display Chinese correctly, even the device's default locale is not Chinese.
tao is offline   Reply With Quote
Advert
Old 08-03-2011, 10:51 AM   #21
jlick
Junior Member
jlick has a complete set of Star Wars action figures.jlick has a complete set of Star Wars action figures.jlick has a complete set of Star Wars action figures.jlick has a complete set of Star Wars action figures.jlick has a complete set of Star Wars action figures.
 
Posts: 3
Karma: 452
Join Date: Mar 2009
Device: Kindle 2
Hi, I ran into this problem with some Chinese Traditional documents also. There is an easy fix for the language tag using Mobiperl. If you have Mobiperl you can just run this command without having to edit and rebuild the document:

mobi2mobi --outfile fixed.mobi --language 1028 original.mobi
jlick is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classic help with linking chinese font adrian783 Barnes & Noble NOOK 1 07-05-2010 11:02 PM
DR800 Chinese Font Support Problem overdrunk iRex 17 04-09-2010 12:15 PM
Chinese Support : book name & fetching chinese webs tnzshn Calibre 12 05-02-2009 01:21 AM
Chinese font ? Dedale Bookeen 9 02-24-2009 03:06 AM
Chinese Support Hanson iRex 2 07-11-2007 08:41 AM


All times are GMT -4. The time now is 03:44 PM.


MobileRead.com is a privately owned, operated and funded community.