07-05-2019, 02:35 AM | #1 |
Member
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
|
--extra-css not working
I have added a path to my extra.css:
"--extra-css=os.path.join(Xslt.xslt_dir, self.uid, 'extra.css')", When I paste this css into the GUI the css has the intendent effect, but when adding it in the command line it has no effect. I get some error indications in the Python log file: Spoiler:
Last edited by theducks; 07-05-2019 at 08:57 AM. Reason: add spoiler tags |
07-05-2019, 10:27 AM | #2 |
Member
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
|
The extra.css attached
Attached is the extra.css
|
Advert | |
|
07-05-2019, 10:51 AM | #3 |
creator of calibre
Posts: 44,006
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As is noted in the documentation for the --extra-css option it has to either be actual CSS or the path to an extra css file. Not a python expression.
|
07-06-2019, 02:59 AM | #4 |
Member
Posts: 22
Karma: 10
Join Date: Apr 2019
Device: edge
|
What about python variables
I also extract the Language metadata from the epub-file to put it into the docx via a Python variable:
"--language="+language, is that not allowed either? |
07-06-2019, 08:20 AM | #5 |
creator of calibre
Posts: 44,006
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No there are no python variables allowed. language metadata will be preserved from the input to the output automatically
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
--extra-css argument ignored | paipa | Conversion | 10 | 09-05-2014 10:50 AM |
Extra CSS and class renaming | fenuks | Recipes | 4 | 01-26-2014 05:24 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
a few extra css questions | marbs | Recipes | 12 | 11-20-2010 10:15 AM |