07-19-2017, 06:44 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2017
Device: Nexus7, Nokia
|
CSS rules
First of all, a big thank you for the development of Calibre. It is a tremedous tool. If I were not starving right now, I'd send you money. I have been playing with it for only alittle while, and am still discovering functionalty, so please forgive me if my questions are 'newby-ish'.
But secondly, some questions about the way Calibre handles CSS.
Keep up the good work! |
07-19-2017, 07:25 AM | #2 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You dont specify fonts to embed via @font-face rules. You simply specify the font-families and use the embed all fonts setting. And you want to match on new lines/other invisible characters in regex use the escaped form for the characters. There are many different escaped forms you can use (calibre uses the python regex engine). For example to match newlines, use
\n @viewport is not a valid CSS 2.1 or 3 rule. |
Advert | |
|
Tags |
css, search & replace, viewport |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inconsistencies in Remove unused CSS rules!? | chaot | Editor | 8 | 04-28-2016 12:38 PM |
Remove unused CSS Rules | Divingduck | Editor | 2 | 06-21-2014 07:51 AM |
In an ePub reader, what are the rules for processing styles/CSS? | mattcurtis | ePub | 1 | 04-05-2013 11:11 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |
Conditional CSS rules | Jellby | ePub | 10 | 01-20-2009 08:32 AM |