View Single Post
Old 12-11-2009, 08:23 PM   #23
megabadd
Enthusiast
megabadd began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Dec 2009
Device: Astak PP
Quote:
Originally Posted by DaleDe View Post
Interesting, they did it different than I expected anyway. Try replacing the html line in the bad file with the good file
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

This should tell the language in use and somehow this gets translated into the fonts to use I guess.

Once you have made the substitution then rezip the changed files into the epub file and try it.

In Calibre there may be a way to hard code the html. I know there is for CSS. You may have to ask in the Calibre forum.

You may also want to compare the CSS file. Perhaps it can be fixed there. Note the good file references a css file but the bad one does not. This may also be a good way to fix it by forcing this entry.


Dale
YES!

Just adding xml:lang="ja" lang="ja" to the head of the other html file and then re-zipping in worked. However, in my recipe I have the language = 'ja' but after it finished pulling it had lang = 'en'
megabadd is offline   Reply With Quote