Thread: Troubleshooting K3 chinese font support spotty?
View Single Post
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