Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2010, 09:01 AM   #1
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Problem with Chinese news feeds on Kindle 3

Calibre is really fantastic. My gratitude to the developers for such a wonderful program.

I have some problem with news feeds in Chinese. I tried all the Chinese news receipts that comes with Calibre (version 0.7.23). The content of the news read fine but the lists of the news (the screen with the news titles and short summaries) are scrambled. The font is not displayed properly. I suspect this has something to do with the language coding and country settings. I tried several configurations but couldn’t get it work. I attached the news receipt from the built-in BBC Chinese. Any help will be highly appreciated.

BTW, I am using Kindle 3 (wifi) and I changed my locale to zh-CN as discussed in this thread (https://www.mobileread.com/forums/showthread.php?t=99078).

Built-in BBC Chinese news receipt:

from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1277443634(BasicNewsRecipe):
title = u'BBC Chinese zh-CN'
oldest_article = 7
max_articles_per_feed = 100
feeds = [
(u'\u4e3b\u9875', u'http://www.bbc.co.uk/zhongwen/simp/index.xml'),
(u'\u56fd\u9645\u65b0\u95fb', u'http://www.bbc.co.uk/zhongwen/simp/world/index.xml'),
(u'\u4e24\u5cb8\u4e09\u5730', u'http://www.bbc.co.uk/zhongwen/simp/china/index.xml'),
(u'\u91d1\u878d\u8d22\u7ecf', u'http://www.bbc.co.uk/zhongwen/simp/business/index.xml'),
(u'\u7f51\u4e0a\u4e92\u52a8', u'http://www.bbc.co.uk/zhongwen/simp/interactive/index.xml'),
(u'\u97f3\u89c6\u56fe\u7247', u'http://www.bbc.co.uk/zhongwen/simp/multimedia/index.xml'),
(u'\u5206\u6790\u8bc4\u8bba', u'http://www.bbc.co.uk/zhongwen/simp/indepth/index.xml')
]

extra_css = '''
@font-face {font-family: "DroidFont", serif, sans-serif; src: url(res:///system/fonts/DroidSansFallback.ttf); }\n
body {margin-right: 8pt; font-family: 'DroidFont', serif;}\n
h1 {font-family: 'DroidFont', serif;}\n
.articledescription {font-family: 'DroidFont', serif;}
'''

__author__ = 'rty'
__version__ = '1.0'
language = 'zh-CN'
pubisher = 'British Broadcasting Corporation'
description = 'BBC news in Chinese'
category = 'News, Chinese'

remove_javascript = True
use_embedded_content = False
no_stylesheets = True
encoding = 'UTF-8'
conversion_options = {'linearize_tables':True}
masthead_url = 'http://wscdn.bbc.co.uk/zhongwen/simp/images/1024/brand.jpg'
keep_only_tags = [
dict(name='h1'),
dict(name='p', attrs={'class':['primary-topic','summary']}),
dict(name='div', attrs={'class':['bodytext','datestamp']}),
]
spaceniuzai is offline   Reply With Quote
Old 10-13-2010, 10:34 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by spaceniuzai View Post
I have some problem with news feeds in Chinese. ...
BTW, I am using Kindle 3
Does the same problem appear when viewing the recipe in the Calibre viewer, or only on the K3?
Starson17 is offline   Reply With Quote
Old 10-13-2010, 10:42 AM   #3
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by Starson17 View Post
Does the same problem appear when viewing the recipe in the Calibre viewer, or only on the K3?
The problem only appears on the K3. The default mobi viewer on my computer (Windows Vista Home) is Amazon Kindle PC and they all look fine. I haven't checked it on Calibre viewer but I expect it should be fine too. Thanks.
spaceniuzai is offline   Reply With Quote
Old 10-13-2010, 10:55 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by spaceniuzai View Post
The problem only appears on the K3. The default mobi viewer on my computer (Windows Vista Home) is Amazon Kindle PC and they all look fine. I haven't checked it on Calibre viewer but I expect it should be fine too. Thanks.
This sounds like a Kindle problem, then.
Edit: I didn't mean for this to sound dismissive, but it appears that your Kindle is using different fonts for the content and the area where you are having problems. I'd start off by trying to find out if it's possible to display Chinese characters in the problem area. If not, there's no workaround and you'll have to get the fix from Amazon.

Last edited by Starson17; 10-13-2010 at 11:16 AM.
Starson17 is offline   Reply With Quote
Old 10-13-2010, 11:26 AM   #5
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by Starson17 View Post
This sounds like a Kindle problem, then.
Edit: I didn't mean for this to sound dismissive, but it appears that your Kindle is using different fonts for the content and the area where you are having problems. I'd start off by trying to find out if it's possible to display Chinese characters in the problem area. If not, there's no workaround and you'll have to get the fix from Amazon.
So, when Calibre fetches news feeds, it uses the same font/display/etc for both the summary page and the content page, right? If it is the case, then I agree with you the problem may be more likely to be on Kindle's side.
spaceniuzai is offline   Reply With Quote
Old 10-13-2010, 12:50 PM   #6
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre encodes all content in MOBI files in the UTF-8 encoding, including the section lists. Apparently the kindle's section list font doesn't support east asian character sets. You should look into installing the unicode font hack for your Kindle.
kovidgoyal is online now   Reply With Quote
Old 10-13-2010, 01:16 PM   #7
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
calibre encodes all content in MOBI files in the UTF-8 encoding, including the section lists. Apparently the kindle's section list font doesn't support east asian character sets. You should look into installing the unicode font hack for your Kindle.
Kovidgoyal: thank you for the wonderful program. Salute to you!

Thanks for the clarification. I did a quick google search for Kindle unicode font hack, but it seems there is no hack for K3 yet

Another minor question: when we need to set the encoding, is it correct to use "utf-8" or "uft8"? Or are they the same? Thanks.
spaceniuzai is offline   Reply With Quote
Old 10-13-2010, 01:18 PM   #8
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
they both work the same.
kovidgoyal is online now   Reply With Quote
Old 10-13-2010, 02:34 PM   #9
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by kovidgoyal View Post
they both work the same.
Thanks. Appreciate the help.
spaceniuzai is offline   Reply With Quote
Old 02-20-2011, 05:08 PM   #10
tylau0
Connoisseur
tylau0 began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Oct 2010
Device: Kindle
Update your Kindle firmware to 3.1 appears to fix most of those problems.
tylau0 is offline   Reply With Quote
Old 02-22-2011, 08:40 AM   #11
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
I updated my kindle using firmware 3.1 and i still have the problem with strange characters in Subscription Title.

For screenshoot with same newspaper on Kindle with firmware 3.0.3 see this thread .
Attached Thumbnails
Click image for larger version

Name:	kindle 3.1 - diacritics in title.png
Views:	329
Size:	46.4 KB
ID:	67118  

Last edited by sorin; 02-22-2011 at 08:44 AM.
sorin is offline   Reply With Quote
Old 02-22-2011, 11:56 AM   #12
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by tylau0 View Post
Update your Kindle firmware to 3.1 appears to fix most of those problems.
You are right! The new firmware does fix most of the display problems for newspaper in Chinese. Thanks for the heads-up!
spaceniuzai is offline   Reply With Quote
Old 02-22-2011, 11:59 AM   #13
spaceniuzai
Junior Member
spaceniuzai began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by sorin View Post
I updated my kindle using firmware 3.1 and i still have the problem with strange characters in Subscription Title.

For screenshoot with same newspaper on Kindle with firmware 3.0.3 see this thread .
Have you tried to change the locale of your kindle? I don't recognize the language you are using, but maybe you can give it a shot. Google";debugOn"
spaceniuzai is offline   Reply With Quote
Old 02-23-2011, 04:00 AM   #14
sorin
Connoisseur
sorin began at the beginning.
 
Posts: 73
Karma: 44
Join Date: Sep 2010
Device: kindle 3
The title is wrong after is created with Calibre and it looks the same even in Mobipocket Reader so i don't think changing locale in Kindle will show the right characters.
sorin is offline   Reply With Quote
Old 02-26-2011, 07:50 AM   #15
tylau0
Connoisseur
tylau0 began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Oct 2010
Device: Kindle
Just find that the same problem occurs if the periodical title is in Chinese. So I think it is the problem of the Kindle firmware. I would suggest you write to Amazon so they are aware of the issue.
tylau0 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
News feeds and Kindle collections poloman Calibre 2 09-03-2010 03:28 AM
Problems with news feeds and Kindle 2 oksahmof2 Calibre 0 08-28-2010 12:32 AM
Kindle 2 and News Feeds Bookworm88 Calibre 18 09-02-2009 07:48 PM
Problem with News Feeds Sydney's Mom Calibre 10 03-07-2009 02:54 PM
Kindle Newbie working with RSS news feeds Junior94 Introduce Yourself 2 01-02-2009 09:14 AM


All times are GMT -4. The time now is 08:40 PM.


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