View Single Post
Old 09-19-2010, 05:41 PM   #4
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by tecgeo View Post
Thanks. I get the first part but I am not a programmer by vocation. Where do I find the CSS? Is that in Calibre somewhere?
The CSS, if there is any, may be in your HTML file at the top, in the <head>...</head> section between <style>...</style> tags.

Alternatively, it may be in an external .css file (often in the same dir as the HTML file). If this is the case then there will be a link in the <head>...</head> section at the top of the HTML file looking something like
Code:
<link rel=stylesheet type="text/css" media=all href=xyz.css>

Quote:
Originally Posted by tecgeo View Post
I was hoping there was a way to grab the existing title value and stick it in the ToC.
Do you mean your HTML headings look something like this?
Code:
<h1 title="Chapter 1"></h1>
If so, there may be an easy way for Calibre to deal with them but unfortunately I don't know what it is. Maybe someone more expert will be able to help.

In the meantime, if this was my file, I would open it in a good text editor (e.g. Notepad++) and use mass Find/Replace to convert the old format to the new using simple regular expressions. But this is only an option if you're comfortable with regular expressions. I would then re-import the new HTML into Calibre and convert as usual.
jackie_w is offline   Reply With Quote