12-11-2009, 07:20 PM | #16 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Did you look inside to see what might be different. (Open a file in notepad.) In particular check the font statement in the <head> element to see how it is defined. If may be that there is a difference. You could edit it to match the working one and see what difference it might make.
Dale |
12-11-2009, 07:51 PM | #17 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Dec 2009
Device: Astak PP
|
For the non working feed:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>仕事場探訪:ガラスデスクとMacは相性良し : ライフハッカー[日本版], 仕事も生活も上手くこなすライフハック情報満載のブログ・メディア</title> <meta name="keywords" content="APPLE, MICROSOFT, WEBツール, お役立ちアイテム, フリーソフト, ブラウザ, 仕事術, 恋愛術, 豆知識 などなど"/> For the working one: <?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Style-Type" content="text/css"/> <meta http-equiv="Content-Script-Type" content="text/javascript"/> <meta name="articleID" content="20091212-OYT1T00113"/> <!--// title_start //--> Last edited by megabadd; 12-11-2009 at 07:55 PM. |
Advert | |
|
12-11-2009, 07:56 PM | #18 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Even in the good one? How did html browser determine what font to use? you must have your default set to Japanese I guess. Look in the CSS file to see what font it points to.
At some point the ePUB has to be told the font to use, it will not figure that out on its own. Dale |
12-11-2009, 08:00 PM | #19 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Dec 2009
Device: Astak PP
|
Quote:
|
|
12-11-2009, 08:06 PM | #20 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Dec 2009
Device: Astak PP
|
Ah, so it's not adding the language being japanese to my feeds. I tried manually adding "langauge = 'ja'" just now and it still doesn't show up in the finished file...
|
Advert | |
|
12-11-2009, 08:07 PM | #21 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
<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 |
|
12-11-2009, 08:17 PM | #22 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Note that if you don't see a CSS file check for a Style section and statements in the head section of the good file. This information is the same as a CSS file.
Dale |
12-11-2009, 08:23 PM | #23 | |
Enthusiast
Posts: 25
Karma: 10
Join Date: Dec 2009
Device: Astak PP
|
Quote:
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' |
|
12-11-2009, 08:37 PM | #24 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PROBLEMS WITH THE FIX FOR FOREIGN LANGUAGES | musteman | iRex | 3 | 04-03-2010 06:55 AM |
Calibre, Astak Pocket Pro, and foreign languages. Help! | megabadd | Calibre | 13 | 12-12-2009 03:01 PM |
Calibre support for Right-to-Left languages | kiklop74 | Calibre | 7 | 04-11-2009 02:02 PM |
Foreign languages support? | ToxicAngel | Sony Reader | 15 | 11-21-2006 10:20 AM |