View Single Post
Old 11-18-2019, 08:22 AM   #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,873
Karma: 6120478
Join Date: Nov 2009
Device: many
Sigil 0.9.991 is not struggling with character entities. Remember the goal of Sigil 0.9.991 is to load any epub "as-is", in other words make no changes. What you are seeing is how that epub currently handles its entities.

So as long as the xhtml files are well-formed (or do not have mend on open set), Sigil will not touch the files. The Preserve Entities are only used by Mend on Sigil as the gumbo parser that Sigil uses to mend, removes all entities and converts them to their character equivalent. After mending, your Preserve Entities settings are used to determine which ones should be converted back to entities.

So all of this is expected/desired behaviour ... in other words we do not want Sigil to touch or alter valid html source code. So if you want to only use your entities set, just run Mend as you discovered.

Mend is also run to update xhtml links, so any rename or move, will effectively do the same thing. As will Standardizing to Sigil norm.

Hope this helps,

Kevin
KevinH is online now   Reply With Quote