03-01-2012, 02:23 PM | #1 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2012
Device: Sony PRS T1
|
Fixed additional CSS to all of recipes ?
Hello,
I'm using Sony T1 reader. The reader not offer polish national characters inside default fonts. To avoid changing fonts set from default to others I added bellowed script to common part of Calibre converter settings. There I also disabled bulit-in fonts in EPUB file. Such solution works well ! but only in case of books. I need similar solution for recipes products (news). I know that I can add command Code:
extra_css="" Best, Filo. Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G.otf); } @font-face { font-family: serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-Italic.otf); } @font-face { font-family: serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/AmasisMTW1G-Bold.otf); } @font-face { font-family: serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/AmasisMTW1G-BoldItalic.otf); } body, div, p { font-family: serif; } .calibre { font-family: serif; } |
03-04-2012, 01:31 AM | #2 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not without editing the source.
|
03-04-2012, 07:01 PM | #3 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2012
Device: Sony PRS T1
|
Thanks.
Please, straight my way to target and shortly describe retaliation-ships between fetching news, conversion, settings code parts (files .py). I'm partly identified that files (GUI action - fetch_news.py, conversion.py, widget "LookAndFeelWidget' with extra_css= options for books conversion) but with such map will be much easier to me. Best, Filo. Last edited by Filo; 03-04-2012 at 07:04 PM. |
03-05-2012, 03:39 AM | #4 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look in gui2/tools.y change the fetch_scheduled_recipe function to pass in extra_css that you want.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fixed recipes: weblogssl & elperiodicodearagon [ES] | desUBIKado | Recipes | 0 | 11-14-2011 02:00 PM |
Fixed recipes [pl] | fenuks | Recipes | 0 | 11-13-2011 05:51 PM |
Help:how to add CSS additional data by converting books | Nick_1964 | Calibre | 14 | 10-26-2010 09:47 AM |
Additional CSS for conversion | LARdT | Calibre | 6 | 02-18-2010 07:52 PM |
ADDITIONAL CSS | LARdT | Calibre | 1 | 02-04-2010 08:02 PM |