View Single Post
Old 02-03-2010, 12:10 PM   #8
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by MerLock View Post
I recently opened an epub book with Sigil in the hopes of just editing the Meta data. After resaving the ebook, the ebook looses paragraph indents.
The book probably had some flow-specific CSS. This is currently removed, but will be preserved from 0.2.0 onwards.

Quote:
Originally Posted by MerLock View Post
I encounted an unrelated problem with another epub. The original epub has a TOC but after doing the samething as above, changing the metadata and resaving, the TOC no longer exists.
Sigil rebuilds the TOC after the book is loaded. The original NCX file is not preserved, and currently can't be for technical reasons. I don't think it's possible to preserve the original NCX and still have an intuitive TOC Editor, since the NCX deals with XHTML filenames and fragment identifiers. A TOC editor that would preserve the whole expressiveness of the syntax would require from the user advanced knowledge of the NCX specification, URL's, identifiers and XML.

It's precisely why I've gone with the standard practice of a TOC that follows the heading elements in the OPS docs. It's simple, user-friendly, easily understandable and I dare say intuitive.

But it does require that the original TOC be discarded. In the vast majority of the cases, this is not a problem since the original TOC usually follows the headings as well.

I plan on giving this matter more thought after 0.2.0 (but much later, there are more pressing matters). Maybe I can come up with something better, but I just don't see it now.

Last edited by Valloric; 02-03-2010 at 12:37 PM. Reason: typo
Valloric is offline   Reply With Quote