View Single Post
Old 11-22-2009, 09:02 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,807
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi,

I think I found the problem, or at least part of it. The html file was created from a pml file which used the \C0="The Chapter Title" tag and not the \X nor \x tags. Under ereader pml \C* tag contents should not be visible in the file (they are kinda-like navpoints) and the visible title of the chapter which generally followed it used no special tags to indicate it was in any way a chapter title.

When converted to html the converter program translated these \C0, \C1, ... \C4 tags to html comments with embedded hr tags to preserve the depth information as follows:

<!-- <h1>The Chapter Title</h1> --> for \C0="The Chapter Title"
...
<!-- <h5>The Sub Chapter Title</h5> --> for \C4="The SubChapter Title"

The thing that messed me up is that Sigil nicely found these <h1></h1> through <h5></h5> tags that were embedded into html comments (which made them invisible as the pml spec said they should be) and the TOC was nicely automatically filled in for me so I thought great.

However, when converted to epub, these tags embedded in the comments somehow freaked out Sigil and it resulted in empty content src="" tags in the toc.ncx (although everything else was properly found.

I manually removed one of these and hand edited the html to add the <h1></h1> tags and removed that comment and regenerated the epub and the content src= tag in toc.ncx was correctly generated.

The problem is this file has over 125 chapters in it that are all nicely and invisibly (since embedded in html comments) marked nav points, so I would have to literally search for and edit things 125 times.

Is there any way you can make Sigil handle <h1></h1> style tags embedded in comments? They are already recognized by the ToC editor and properly exist there, They are just not being added to toc.ncx content src line properly.

Thanks,

Kevin
KevinH is offline   Reply With Quote