Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2008, 02:53 PM   #1
hpstricker
Member
hpstricker began at the beginning.
 
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
hpstricker is offline   Reply With Quote
Old 07-16-2008, 05:37 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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1) you need to attacha test case demonstrating the problem

2) h[1-6]
kovidgoyal is online now   Reply With Quote
Old 07-17-2008, 07:25 AM   #3
hpstricker
Member
hpstricker began at the beginning.
 
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
hpstricker is offline   Reply With Quote
Old 07-17-2008, 10:13 AM   #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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can specify override css in the GUI as well
kovidgoyal is online now   Reply With Quote
Reply

Tags
calibre, css, lrf, regex

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Sigil and chapter titles (Heading 2) AprilHare Sigil 11 11-15-2011 09:49 AM
Ebook chapter titles: with or without chapter number? amoroso Writers' Corner 16 06-14-2011 06:35 AM
Chapter detection when only digits - regex needed Perkin Calibre 15 09-20-2010 06:25 PM
Specify indent in css, not with &nbsp James_Wilde Calibre 7 09-13-2010 09:48 PM
CSS wacky p indent post-chapter split? Hitch Sigil 0 06-17-2010 08:59 PM


All times are GMT -4. The time now is 11:26 AM.


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