View Single Post
Old 07-30-2014, 10:14 AM   #34
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: 8,911
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,
After thinking about it last night, I probably need a way to access all of the non-manifested files for reading and writing through the wrapper in bookcontainer.py . You would need something like this to deal with encrypted fonts for example. Perhaps an iterator for non-manifested files returning their unique path relative to the ebook root. Alternatively we could just provide a full book relative path iterator.

I would like to add an xml.etree parser as well for dom access and xpath. Since this is an external python interpreter, we don't know if they will have external python packages like lxml, Qt, html5lib, etc, so we are limited in what we can do.

For output scripts, I would like Sigil to generate an ask folder style gui element and pass the result to the output script to use.

Similarly, for input scripts, I would like Sigil to generate a file dialog and pass the path to the selected item to the script. Somehow, we will need to figure out a way to set file type filters for it, but I am not sure how yet.

Instead, we could assume that the installed version of python has some basic GUI widgets kit like Tk and let the target script deal with all of that.

Please let me know what you think about those ideas.

KevinH
KevinH is offline   Reply With Quote