Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-17-2011, 04:14 AM   #1
kongzifan
Enthusiast
kongzifan began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Mar 2009
Device: Kindle, iPhone, iPad
Titles truncated for zaobao.com

As can be seen from attached photo, the article titles are truncated on the "Sections and Articles" page of zaobao.com. Take the one that is selected in the picture for example, six characters were missing from the first line, even though there is enough space left in the second line. Is this a bug in the recipe?

Also, as can be seen from the picture, the name of the newspaper is a mess (which has been discussed in a previous thread). kovidgoyal mentioned this is because the font used by calibre for this part does not support Chinese characters. Is there anyway to specify our own font that does support Chinese characters?

Thanks!
Attached Thumbnails
Click image for larger version

Name:	File 13215207002862.jpg
Views:	204
Size:	677.7 KB
ID:	79076  

Last edited by kongzifan; 11-17-2011 at 04:17 AM.
kongzifan is offline   Reply With Quote
Old 11-17-2011, 08:03 PM   #2
tylau0
Connoisseur
tylau0 began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Oct 2010
Device: Kindle
Quote:
Originally Posted by kongzifan View Post
As can be seen from attached photo, the article titles are truncated on the "Sections and Articles" page of zaobao.com. Take the one that is selected in the picture for example, six characters were missing from the first line, even though there is enough space left in the second line. Is this a bug in the recipe?
I think it is related to how kindle display titles in the "Sections and Articles" view. It happens in other CJK periodicals as well.

Quote:
Originally Posted by kongzifan View Post
Also, as can be seen from the picture, the name of the newspaper is a mess (which has been discussed in a previous thread). kovidgoyal mentioned this is because the font used by calibre for this part does not support Chinese characters. Is there anyway to specify our own font that does support Chinese characters?

Thanks!
This problem actually happens in other recipes using CJK characters as periodical title. It is because the font used by Kindle devices to display that title does not show CJK characters properly. A workaround is to set a mastheadurl in the recipe class, so it displays an image rather than text. An example is shown below.

Code:
class MPRecipe(BasicNewsRecipe):
        ....
        masthead_url = 'http://news.mingpao.com/image/portals_top_logo_news.gif'
        ....
For zaobao.com recipe, I would suggest http://www.zaobao.com/ssi/images1/zblogo_original.gif

Last edited by tylau0; 11-17-2011 at 08:05 PM.
tylau0 is offline   Reply With Quote
Advert
Old 11-18-2011, 06:21 AM   #3
kongzifan
Enthusiast
kongzifan began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Mar 2009
Device: Kindle, iPhone, iPad
Thank you. That is very helpful.
kongzifan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newspaper title is a mess for zaobao.com kongzifan Recipes 9 11-11-2011 02:27 AM
toc.ncx truncated at 100 characters garygrosso Conversion 2 03-08-2011 01:08 PM
Truncated page with some 'Fetch news' source tomsem Recipes 2 02-09-2011 11:48 AM
Truncated file crutledge Sigil 11 09-13-2010 03:37 PM
Bug - new posts being truncated mogui Feedback 4 06-11-2007 02:13 AM


All times are GMT -4. The time now is 07:15 PM.


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