View Single Post
Old 10-04-2016, 02:52 AM   #4
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slowsmile View Post
Some background. I've written a python app(as a Windows exe) that converts a Word filtered HTML file directly to epub.
I'm a big fan of Sigl plugins, however, before you re-invent the wheel, you might want to consider using (or customizing) existing solutions such as Toxaris's e-PUB Tools word plugin or DiapDealer's DOCXImport plugin. If you're not happy with either solution, you could even run the command line version of Calibre to convert a DOCX file to an epub and then import it to Sigil.

Quote:
Originally Posted by slowsmile View Post
The plugin itself will have somewhat reduced functionality -- for instance it will not be able to convert html to Kindle mobi.
You could recycle parts of my KindleGen plugin code for that or use the command line version of the Calibre converter.

Quote:
Originally Posted by slowsmile View Post
The reason the windowing app is so big is because I used Tkinter for all the window components -- but the MainWindow won't be needed for the plugin.
BTW, the Sigil plugin runner code has a built-in preferences handler that allows you to automatically read JSON preferences with bk.getPrefs().
Doitsu is offline   Reply With Quote