Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2016, 10:00 PM   #1
kevin_y
Member
kevin_y began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Mar 2016
Device: Galaxy Note 3
Chinese ebook conversion problem

I have a HTML document in Chinese that I input into Calibre to create EPUB and MOBI ebooks. The resulting ebooks can be read on my desktop Windows PC: both the Windows Kindle software and Calibre's built-in EPUB reader display the Chinese font properly. Then I send the MOBI to the Android Kindle reader on my Galaxy Note 3 smartphone, and it, too, displays the Chinese font correctly. Now, here is the problem. When I send the EPUB file to the Android "Aldiko" epub reader on my Galaxy Note 3, it shows "squares" instead of Chinese font. Now, before you think this is Aldiko's problem, here is the thing. If I extract the HTML files inside the EPUB, open them up with a text editor in Windows, and change the HTML tag from this:

<html xmlns="http://www.w3.org/1999/xhtml">

to this:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN">

THEN ALDIKO WILL DISPLAY THE CHINESE FONT PROPERLY!!

So here is my question. Can I configure Calibre in such a way that it will create the HTML tag accordingly in the EPUB file? Is this a Calibre problem at all? Or should I talk to the Aldiko developer instead?

Thanks in advance to all!
kevin_y is offline   Reply With Quote
Old 03-18-2016, 11:53 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to talk to the aldiko developer. EPUB reading system need to use the language spedified in the opf file when it is not specified in the html file.

In any case if you want to have that attribute in the epub file, you can either add the lang attribute to the input html file, or just open the epub file in the calibre editor and add the lang attribute yourself.

You can also use the search and replace feature in the conversion dialog to replace

<html

by

<html lang="whatever"
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chinese conversion glitch mbuser Amazon Kindle 6 10-10-2011 07:51 PM
Issues with Chinese text file conversion dm15441 Conversion 1 08-06-2011 10:53 AM
Chinese Font Problem dm15441 Conversion 3 08-05-2011 11:17 AM
Chinese PDF Problem newbie5 Sony Reader 7 05-21-2011 07:02 PM


All times are GMT -4. The time now is 10:50 AM.


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