View Single Post
Old 09-19-2010, 04:47 PM   #1
tecgeo
Junior Member
tecgeo began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2009
Location: Vancouver, Canada
Device: iphone, iPad, kindle3, Kobo Clara
ToC generation issue

I did some conversions recently and then imported the resultant HTML file into Calibre. Converting to epub was fine on several but a few had trouble identifying the Chapter headers. When I look at the HTML source the h1 tags do not contain any text but instead have a title attribute ="xxxxx" value between the tags. I can tediously type in the corresponding text between the h1 tags but this puts that Chapter Title text in the ebook when only a chapter break image existed previously. If I use the ToC filter assistant in calibre and specify h1 for the tag, title for the attribute and leave the value blank it generates the ToC with Unnamed for each of the Chapter names.

Does anyone know if there a filter value entry or Chapter detection Xpath expression to insert the actual text value of each h1 tag's title attribute so that the correct value shows up in the generated ToC and thereby keep the output clean and not introduce new text chapter headings?
tecgeo is offline   Reply With Quote