View Single Post
Old 05-15-2015, 04:34 PM   #1
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Clarity: Font De-Obfuscation Tool

In the course of making some eBook files, particularly for Kindle, I found that I needed to de-obfuscate some fonts in my file. If you generate an ePub from ID, the fonts are obfuscated by default with the IDPF method. When passing said ePub to KindleGen, you lose any embedded fonts because KG doesn't recognize the obfuscated fonts.

I'm aware that Sigil has some method of de-obfuscating fonts, and possibly Calibre as well. However, I wanted to have a method of de-obfuscating the fonts in an ePub that I knew for sure had no side effects.

Thus, I made a simple command-line utility called Clarity that de-obfuscates fonts that are obfuscated with the IDPF method. (No support yet for the older Adobe method, but that could be added.)

Clarity is open-source and available here on github.

The included executable file was compiled on OSX 10.10, but with Go 1.4 or later, anyone can easily compile an executable for Windows or Linux. If detailed instructions on this are needed, I can provide them.

Perhaps this tool is redundant in the face of some other software or plugin, in which case feel free to let me know, but perhaps it will be of some use to others.
mattmc is offline   Reply With Quote