View Single Post
Old 07-31-2014, 05:00 PM   #39
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,809
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi varlog,

Quote:
Originally Posted by varlog View Post
Have you actually tried to run DGSM? All those things are already there - well, not the red ones, the green one I've added now.
I am jut passing along ideas from user_none that I thought might be good and that were not part of what we talked about yet.

Quote:
[Manifest Id error was my mistake. I do test outside of Sigil but grabbed the files from it - and did it too early in this case.
Glad to hear it

Quote:
I tried to groak your wrapper but alas: not enough python between my ears. Which brings me to one of my second thoughts. I was able, using guesses and stackoverflow, to write some things in python which did something I set out to do. I'm not able to do it with your wrapper in between. It is probably for the best - one should really learn the language first and than write scripts.
That is exactly how I feel about gui widgets in Qt C++!

Quote:
But what remains is:
1. your wrapper needs proper documentation.
2. the call to execute script will depend on interpreter (or on: do we have wrapper for this interpreter?).
The entire interface is laid out in bookcontainer.py These are the iterators and functions used by any script to safely access files from within Sigil. The OPF is currently not modifiable directly, but only in pieces. That is easily changed but it is safest as the opf has to maintain consistency across the addition and removal of files, changing spine order, etcc.

Everything else such as checking to see which files are modified, and building the xml result file is handled in the wrapper and the user should be protected from all of that. We of course have yet to implement handling the response XML and taking the modifications and changes listed there and having Sigil apply all of those changes and things on its own.

Quote:
Before writing proper documentation could you implement New UUID/Smarten
it just for me to have something to lean on?
If I need to change bookcontainer.py to make it easier, I will send you that and the new one.

I should have something for you by this evening.

Kevin
KevinH is offline   Reply With Quote