Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2009, 01:12 PM   #1
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
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}'
Do you have any plans to add RTL language support to the racipe infrastructure to avoid all this css hassle?

Here is the recipe in question:
Attached Files
File Type: zip hebrewblog.zip (1.0 KB, 390 views)
kiklop74 is offline   Reply With Quote
Old 04-07-2009, 02:12 PM   #2
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,851
Karma: 22666666
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-07-2009, 03:14 PM   #3
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by kovidgoyal View Post
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?
I mean it is being ignored in this case by both adobe software and sony reader.
kiklop74 is offline   Reply With Quote
Old 04-07-2009, 03:21 PM   #4
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,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm strange, OK I'll look into it, can you open a ticket.
kovidgoyal is offline   Reply With Quote
Old 04-07-2009, 03:41 PM   #5
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
http://calibre.kovidgoyal.net/ticket/2238
kiklop74 is offline   Reply With Quote
Advert
Old 04-10-2009, 10:20 AM   #6
prs700
Member
prs700 began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Apr 2009
Device: SONY PRS-700
Quote:
Originally Posted by kiklop74 View Post
@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}'
Do you have any plans to add RTL language support to the racipe infrastructure to avoid all this css hassle?

Here is the recipe in question:

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
prs700 is offline   Reply With Quote
Old 04-10-2009, 11:49 AM   #7
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,851
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When converting books in calibre add it to the override css field
kovidgoyal is offline   Reply With Quote
Old 04-11-2009, 02:02 PM   #8
prs700
Member
prs700 began at the beginning.
 
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
prs700 is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:00 PM.


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