Sigil has in the past had its own resolve routine in xhtml source for epub2 which assumed a simple macro-like substitution approach with no other expansion.
I will most probably handle this in epub2 xhtml by commenting out the custom entity definition and leaving the resulting named entities in place for the user to decide if they want to resolve it manually or not. Seems like the simplest and safest approach.
I have seen very very few epub2's with custom entity declarations outside of the dtd supplied ones in the wild.
Thanks
|