Thread: ePUB Optimizer
View Single Post
Old 12-31-2017, 03:03 PM   #113
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,691
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DaBear78 View Post
Every time I try to use your plugin (v0.7.2, Sigil 0.9.9) I get this error:
The author must have accidentally uploaded an older version, because in the downloaded version one commented-out line causes this error.

You might be able to fix this yourself:

1. Locate the ePubOptimizer plugin folder in the Sigil plugins folder (Edit > Preferences > Open Preferences Location)

2. Open plugin.py with a text editor and change the following line from:

Code:
    #result = OptiWrapper(*args)
to

Code:
    result = OptiWrapper(*args)
(I.e. remove the # sign.)

3. (Optional) open plugin.xml and insert the following line:

Code:
<autostart>true</autostart>
after:

Code:
<name>ePUBOptimizer</name>
(This'll automatically start the plugin.)

If this doesn't fix your problem, current Calibre versions offer font subsetting and image optimization features via the Polish ePub tool.
Doitsu is offline   Reply With Quote