04-07-2009, 01:12 PM | #1 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Calibre support for Right-to-Left languages
@Kovid
I was trying to do some recipes for some sites in Hebrew and was not successful in all cases. For example newspaper Haaretz passed just fine whie one Blog in Hebrew was outside of my powers. I added this in extra_css to force rtl language but it is ignored in the final result. Code:
extra_css = '@font-face {font-family: "serif0";src:url(res:///Data/FONT/serif0.ttf)} body{direction: rtl; font-family: serif0, serif} .article_description{direction: rtl; font-family: serif0, serif} a.article{direction: rtl; font-family: serif0, serif} .calibre_feed_title{direction: rtl; font-family: serif0, serif} .calibre_feed_list{direction: rtl; font-family: serif0, serif} .calibre_feed_description{direction: rtl; font-family: serif0, serif} .feed{direction: rtl} .calibre_class_0{direction: rtl}' Here is the recipe in question: |
04-07-2009, 02:12 PM | #2 |
creator of calibre
Posts: 44,391
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When you say it is ignored in the output you mean it's not present? Or that it is present and the SONY is ignoring it?
As for special support for RTL languages, all that should be needed is extra_css="body {direction: rtl;}" since IIRC direction is inherited. |
Advert | |
|
04-07-2009, 03:14 PM | #3 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
04-07-2009, 03:21 PM | #4 |
creator of calibre
Posts: 44,391
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm strange, OK I'll look into it, can you open a ticket.
|
04-07-2009, 03:41 PM | #5 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
Advert | |
|
04-10-2009, 10:20 AM | #6 | |
Member
Posts: 24
Karma: 10
Join Date: Apr 2009
Device: SONY PRS-700
|
Quote:
Hi, I want to make use of the RTL support, but I am confused, what is CSS and where can I add it if you don't mind? at Calibre or at the device? thanks PRS 700 |
|
04-10-2009, 11:49 AM | #7 |
creator of calibre
Posts: 44,391
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
When converting books in calibre add it to the override css field
|
04-11-2009, 02:02 PM | #8 |
Member
Posts: 24
Karma: 10
Join Date: Apr 2009
Device: SONY PRS-700
|
thanks for a great software,
But hope you can help me with this issue https://www.mobileread.com/forums/showthread.php?t=44608 PRS 700 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Astak's Mentor Ereader multi-languages support? | dkarale | Astak EZReader | 8 | 01-11-2010 03:39 PM |
Support for non-western languages? | quillaja | Sony Reader | 8 | 09-14-2009 10:49 AM |
Support for other languages? | Matth3w | Calibre | 8 | 04-15-2009 02:25 AM |
PRS-500 Can you support other languages? | PeterO | Sony Reader Dev Corner | 1 | 10-23-2007 06:35 AM |
Foreign languages support? | ToxicAngel | Sony Reader | 15 | 11-21-2006 10:20 AM |