Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2008, 03: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, 06: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: 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]
kovidgoyal is online now   Reply With Quote
Advert
Old 07-17-2008, 08: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, 11: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: 44,564
Karma: 24495948
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


Forum Jump

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 &nbsp 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


All times are GMT -4. The time now is 09:27 AM.


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