Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-20-2016, 07:29 PM   #1
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,580
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Audit Trail

Is there any way to get a session audit trail of changes - perhaps via a command line switch ?

I know I can do a before after compare - but that wont tell what did what, i.e. was it me, was it Sigil, was it a plugin...

BR

Last edited by BetterRed; 03-20-2016 at 07:31 PM.
BetterRed is online now   Reply With Quote
Old 03-20-2016, 08:39 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Are you thinking of an equivalent to calibre's checkpoint feature?

Anyway, Sigil doesn't do a lot of history saving. AFAIK, the only history anywhere is the internal undo/redo of the text editing widgets themselves (which will be trampled by plugins, I think).

Audit trails are at least currently the biggest distinguishing factor between Sigil and calibre.

...

There are no command line switches, although you can at least pass the name of the file it should open with.

Last edited by eschwartz; 03-20-2016 at 08:42 PM.
eschwartz is offline   Reply With Quote
Advert
Old 03-20-2016, 08:54 PM   #3
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: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
No Sigil is not a concurrent versioning system. Simple whitespace changes and xml order of attributes would be enough to overload most cvs systems with a sea of meaningless changes making what you want hard to find at best. Plugins changes would generate similar reams of meaningless changes.

So exactly what are you trying to track down and why? If reverting changes is important then I would place my epub unpacked into a revision tracker (cvs) and use plugins for import, output, and commit and let the version system track the changes. Just be willing to dig through simple whitespace and order of attribute nonsense when trying to find a specific change.

KevinH
KevinH is online now   Reply With Quote
Old 03-20-2016, 09:07 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Using calibre's checkpoints feature, you can get a pretty good idea of what parts of the EPUB got touched by a plugin.
You can also gloss over the ToC, opf, and other xml-heavy things that probably don't have the changes you are looking for.

It's not quite concurrent versioning, but it is pretty darn handy to see the points where the editor or a plugin changed things, and what they changed. It's not even about reverting -- checkpoints are also an easy way to just run a global replace and confirm the changes, rather than slowly step through each instance.
Or even just seeing the checkpoint titles tells you what tools or plugins have been used!

...

Yes, there is a utility to be found in having such a system (and there are multiple ways to leverage it). Whether everyone needs that, or Sigil needs to focus on providing that, I cannot say.

Last edited by eschwartz; 03-20-2016 at 09:09 PM.
eschwartz is offline   Reply With Quote
Old 03-20-2016, 09:34 PM   #5
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: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
No real interest there on my part. Sigil can be used with a cvs or version tracker with a plugin interface if necessary, but it certainly is not going to provide internal checkpointing short of full file save as. Calibre makes use of its own versions of html5lib with changes to use ordered dictionaries to help prevent meaningless attribute order changes. Sigil does not have that option and makes heavy use of QHash which is not order preserving. We could of course build something similar by combining containers (an ordered list of keys alongside the hash) but it simply isn't something I worry about, given a commit plugin could easily handle the insertion and updating into git or any other cvs based system easy enough behind the scenes so to speak, effectively creating book wide versioning.
KevinH is online now   Reply With Quote
Advert
Old 03-20-2016, 09:45 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
And that is perfectly fair. Different priorities and all that. Sigil has its own strengths (like EPUB3 support).

That's why I said right off the bat, Sigil has no ability to follow changes.
eschwartz is offline   Reply With Quote
Old 03-20-2016, 09:45 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,580
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Calibres checkpointing won't work in Sigil any more than it'll work in VideoDub. Besides it leaves no 'document' for a green eye-shade wearing 'auditor' wielding a purple pen to pour over in the middle of the night.

Version control will tell me what changed but it wont tell me who dunnit (unless I tell it) - was it me, was it Mend on Open, was it Epub Tidy, some dodgy dude, or smarty pant suited lady.

I was thinking of something like a debug trace - if its not there then not to worry.

BR

Last edited by BetterRed; 03-20-2016 at 09:52 PM.
BetterRed is online now   Reply With Quote
Old 03-20-2016, 10:35 PM   #8
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: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
The only way I think to achieve that is to combine some sort of revision storage with an automatic Sigil command logging function of some sort to provide the reason (culprit ) behind each change.

Even With a plugin and git/rcs/cvs system behind it, since these is no automatic sigil command logging, the user would still have to manually make a commit with a commit message explaining what commands caused the changes. So not what you want either.

Sorry.

KevinH
KevinH is online now   Reply With Quote
Old 03-21-2016, 12:15 AM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,580
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Kevin - don't worry about it mate.

I wondered if there might be an undocumented command line switch, or build time option. Not the sort of thing that can be easily retrofitted.

BR
BetterRed is online now   Reply With Quote
Old 03-21-2016, 03:58 AM   #10
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
@KevinH: How about adding the user name to the epub metadata section each time the dirty bit is set?

In Python you could easily get the user name via:

Code:
import getpass
print getpass.getuser()
and the plugin runner code knows the name of the plugin, which would be used instead of the user name.

This way BetterRed could at least check who last updated an ePub.

Of course, this should be an optional feature.

Alternatively, you could have Sigil users define their user name or another custom metadata entry in the settings dialog, which will be added each time a book is saved.
Doitsu is offline   Reply With Quote
Old 03-21-2016, 04:49 AM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,580
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Doitsu View Post
@KevinH: How about adding the user name to the epub metadata section each time the dirty bit is set?
...
@Doitsu - my 'who changed it' was me being tongue-in-cheek facetious (shady characters, smarty pants suit etc). I would only really be interested in 'what changed it'.

But, I don't expect (want) anyone to spend development effort on this on my account - if its not available 'out of the box' I can easily live without it.

I do appreciate your interest though - thanks

BR
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How wide would a trail be VydorScope Writers' Corner 21 07-29-2013 02:09 AM
Strange E-Mail from B&N Sales Audit Dept. NCTricia Barnes & Noble NOOK 2 08-29-2011 09:41 PM
The Camel Trail [a novel] peterjmerrigan Self-Promotions by Authors and Publishers 0 06-09-2011 01:10 PM
Western Reid, Mayne: The War Trail mtravellerh IMP Books 0 03-04-2009 04:30 AM
Western Reid, Mayne: The War Trail mtravellerh Kindle Books 0 03-04-2009 04:24 AM


All times are GMT -4. The time now is 10:49 PM.


MobileRead.com is a privately owned, operated and funded community.