View Single Post
Old 12-26-2017, 09:12 AM   #18
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: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
One other question:

How should embedded fonts be handled if saving to a folder or reading from a folder when it comes to obfuscating the fonts.

Fonts are stored un-obfuscated when an epub is being edited inside Sigil and obfuscated with either the idpf or adobe obfuscation algos when output as an epub (as controlled by the encryption.xml file).

If this tool is meant to be used with git or other content management systems and the main book id is ever changed outside of Sigil, if fonts are stored as obfuscated, they will be lost.

So I am leaning toward storing to a folder and reading from a folder to assume any embedded fonts are stored unobfuscated along with an encryption.xml file that explains how the user wants them to be obfuscated if ever written out to an actual epub.

Alternatively, fonts could be stored and loaded as obfuscated if specified by the encryption.xml file, but then the user must be very very careful in editing the opf or trying to change or edit the fonts when outside Sigil.

What would be the best approach?
KevinH is offline   Reply With Quote