07-16-2008, 03:53 PM | #1 |
Member
Posts: 23
Karma: 10
Join Date: Jul 2008
Device: Sony PRS 505, iPad
|
CSS & regex for chapter titles
Hello,
this post contains two questions 1. why seem css styles in HTML not been applied: there's no bold or italic, no different font sizes in my lrf books which I created from HTML. 2. What is the regex for chapter titles if I want ALL h1-6 been found? Thanks in advance Hans-Peter |
07-16-2008, 06:37 PM | #2 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1) you need to attacha test case demonstrating the problem
2) h[1-6] |
Advert | |
|
07-17-2008, 08:25 AM | #3 |
Member
Posts: 23
Karma: 10
Join Date: Jul 2008
Device: Sony PRS 505, iPad
|
Problem resolved
Sorry, I wasn't specific enough. In the meanwhile I found the solution:
a) I have to use html2lrf from the command line, using option --override-css b) I found the regex [a-zA-Z0-9] working (the question concerned the contents of headings) Best regards Hans-Peter |
07-17-2008, 11:13 AM | #4 |
creator of calibre
Posts: 44,564
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can specify override css in the GUI as well
|
Tags |
calibre, css, lrf, regex |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue with Sigil and chapter titles (Heading 2) | AprilHare | Sigil | 18 | 02-05-2020 09:14 PM |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 07:35 AM |
Chapter detection when only digits - regex needed | Perkin | Calibre | 15 | 09-20-2010 07:25 PM |
Specify indent in css, not with   | James_Wilde | Calibre | 7 | 09-13-2010 10:48 PM |
CSS wacky p indent post-chapter split? | Hitch | Sigil | 0 | 06-17-2010 09:59 PM |