View Single Post
Old 11-15-2016, 08:15 AM   #8
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,746
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slowsmile View Post
That's the weird thing. I implemented your import code into the plugin as shown above.
Don't just test the import lines, create a new edit plugin in a bs4test folder with the following plugin.xml code.

Spoiler:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<name>bs4test</name>
<type>edit</type>
<author>Doitsu</author>
<autostart>true</autostart>
<description>bs4test</description>
<engine>python3.4</engine>
<version>0.1</version>
<oslist>unx,win,osx</oslist>
</plugin>


and the plugin.py code that I already posted. Then create a epub2 book, add some attributes to tags in Section0001.xhtml and run the test plugin with Used Bundled Python enabled and disabled.
You should get the same results, except for the different Python version numbers.

Do you use a portable version of Sigil by any chance? If so install the regular version.
Doitsu is offline   Reply With Quote