Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-07-2011, 02:36 PM   #1
LGN
Connoisseur
LGN is on a distinguished road
 
Posts: 88
Karma: 60
Join Date: Oct 2010
Device: ProMedia eReader, Sony PRS-600
Question Show difference between ePUB files

While working on some ePUB files I started wondering if there is a way to show changes between 2 versions of an ePUB, maybe with the possibility to merge them. Also a connection to a version control system like SVN or even CVS would be useful in an production enviroment.

Is there a way to hook Sigil up to a SVN repository and show differences between versions to, somehow, manage an ePUB file during production?

In a related question, is it possible to have some sort of pre-processor linked to Sigil so with a few variables a different version of an ePUB can be saved?

I know these wishes are normally used in the production of software but it would be useful to be able to use it while producing an ePUB.

I ask this because I sometimes work on an ePUB and would like to have the possibility of someone editing an slightly older version and be able to merge the changes, check where the chances are made to re-view the underlying code.

Idially in the future I like others be able to get the newest version of an ePUB directly from an online repository to work together on the 'same' ePUB.

This goes probably fay beyond the intended use of Sigil at this time but it might be useful in an enviroment where multiple people work on one ePUB.

Also FlightCrew will be included in Sigil soon, I like to have a way to 'hook' other checkers like ePubCheck and ePubPreFlight to ensure I checked with at least ePubCheck as that is what publishers use. (Although if FlightCrew says it's ok, it's probably valid for the other checkers, but just to be sure

What are your thoughts about this? Is it something other people find useful? Is it maybe possible already (through, I don't know, command line?)

Thanks.
LGN is offline   Reply With Quote
Old 01-08-2011, 06:24 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by LGN View Post
While working on some ePUB files I started wondering if there is a way to show changes between 2 versions of an ePUB, maybe with the possibility to merge them. Also a connection to a version control system like SVN or even CVS would be useful in an production enviroment.
An epub file is just a ZIP archive of various text-based content files. If you want to version these, just store the un-archived version of your epub inside a history-tracking repository like SVN.

Quote:
Originally Posted by LGN View Post
Is there a way to hook Sigil up to a SVN repository and show differences between versions to, somehow, manage an ePUB file during production?
No, see above.

Quote:
Originally Posted by LGN View Post
In a related question, is it possible to have some sort of pre-processor linked to Sigil so with a few variables a different version of an ePUB can be saved?
No. This sounds like a pink bidet.

Quote:
Originally Posted by LGN View Post
Also FlightCrew will be included in Sigil soon, I like to have a way to 'hook' other checkers like ePubCheck and ePubPreFlight to ensure I checked with at least ePubCheck as that is what publishers use. (Although if FlightCrew says it's ok, it's probably valid for the other checkers, but just to be sure
Currently, no; in the future, perhaps when I add scripting abilities to Sigil. You should be able to do it then.
Valloric is offline   Reply With Quote
Advert
Old 01-08-2011, 01:01 PM   #3
LGN
Connoisseur
LGN is on a distinguished road
 
Posts: 88
Karma: 60
Join Date: Oct 2010
Device: ProMedia eReader, Sony PRS-600
Thanks for your response Valloric.
I understand I could add the unzipped epub to SVN, but the problem would be that I then have to save the epub, unzip it, add to svn and when starting an edit visa versa.
Maybe I could make some kind of custom start shortcut which before Sigil starts gets update from svn, start Sigil and wait till it closes and after closing Sigil, adds epub to SVN. Maybe with the steps to zip/unzip. The problem with this would be maybe the issue of having the whole repository handled on open and close, not just one epub. With one ePUB I whould have to change the name everytime.
Maybe in the future when scripting gets implemented I can try hooking up SVN through script.

The preprocessing, well maybe that can be done through scripting too, although I probably want to avoid the need to make different versions altogether.

Anyway, for now I keep saving each ePUB version with a different number, just in case, and send it though email.

Thanks
LGN is offline   Reply With Quote
Old 01-08-2011, 04:25 PM   #4
alexandrul.ct
Junior Member
alexandrul.ct began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: none
+1 for editing unzipped epubs (maybe using a single epub per folder).

SVN is not really good at merging, but think about how easy can be merging various contributions using Mercurial/Git. This option can enable distributed epub editing/translating (very very helpful for teams), and is not supported by any other epub editor.
alexandrul.ct is offline   Reply With Quote
Old 01-10-2011, 07:36 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by alexandrul.ct View Post
+1 for editing unzipped epubs (maybe using a single epub per folder).
What is an unzipped epub? An epub IS a zipfile with specific specs. If you unzip it, it is no longer an epub, but just a bunch of files.
Toxaris is offline   Reply With Quote
Advert
Old 01-11-2011, 06:31 PM   #6
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Toxaris View Post
What is an unzipped epub? An epub IS a zipfile with specific specs. If you unzip it, it is no longer an epub, but just a bunch of files.
That is true, but it is a special bunch of files. This is what ePUB Reader does. It builds a file structure of the ePUB contents and then views it on a web browser.

Dale
DaleDe is offline   Reply With Quote
Old 01-16-2011, 04:29 AM   #7
alexandrul.ct
Junior Member
alexandrul.ct began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: none
Quote:
Originally Posted by Toxaris View Post
What is an unzipped epub? An epub IS a zipfile with specific specs. If you unzip it, it is no longer an epub, but just a bunch of files.
That bunch of files can be put in a DVCS (Mercurial or Git) and can make team work a reality, like Sphinx [1] is for documentation. And, at any moment, the files can be zipped to a valid epub.

[1]: http://sphinx.pocoo.org/
alexandrul.ct is offline   Reply With Quote
Old 01-16-2011, 05:41 PM   #8
LGN
Connoisseur
LGN is on a distinguished road
 
Posts: 88
Karma: 60
Join Date: Oct 2010
Device: ProMedia eReader, Sony PRS-600
Apriciated, but my goal was to use sigil for editing. Unzipping, adding to repository and then back again is not the ideal way.
LGN is offline   Reply With Quote
Old 12-31-2013, 01:07 PM   #9
bernhard-r
Junior Member
bernhard-r began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2013
Device: iPad / Sony Libre
A tool that might be useful

I face the issues regarding the source versioning, too. I created a small python script to convert ePub to other forms that are more conducive to use version control (I use Bazzar).

The script requires Python 2.7 and should run on any platform supported by Python.

Script can be found at http://launchpad.net/epubtools

Hope this helps somebody...
bernhard-r is offline   Reply With Quote
Old 12-31-2013, 01:43 PM   #10
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by bernhard-r View Post
I face the issues regarding the source versioning, too. I created a small python script to convert ePub to other forms that are more conducive to use version control (I use Bazzar).

The script requires Python 2.7 and should run on any platform supported by Python.

Script can be found at http://launchpad.net/epubtools

Hope this helps somebody...
What and where is Bazzar?

Dale
DaleDe is offline   Reply With Quote
Old 12-31-2013, 02:06 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I think they meant Bazaar. Just a different version control system like subversion, git, mercurial and the like. I believe Calibre used Bazaar up until fairly recently. Launchpad is where the projects are hosted.

http://bazaar.canonical.com
DiapDealer is online now   Reply With Quote
Old 01-02-2014, 03:19 AM   #12
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Can you not just expand the epub/zip file and put the contents into a version control system? Then the only special 'tool' needed would be zip/unzip.
rkomar is online now   Reply With Quote
Old 01-02-2014, 10:32 AM   #13
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by rkomar View Post
Can you not just expand the epub/zip file and put the contents into a version control system? Then the only special 'tool' needed would be zip/unzip.
I would think that if you expand the ePub the diff command (available automatically in Linux and mac and via download in Windows) could be used to recursively check the contents. A VCS is really a special tool itself and only provides a way to document versions.

Dale
DaleDe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Difference Between ePUB and LRF? EatingPie Sony Reader 7 05-14-2010 05:32 PM
Pdf Files don't show Kraut55 Amazon Kindle 4 12-28-2009 11:10 AM
Files on SD card do not show up Sylpher Sony Reader 4 04-11-2009 09:46 PM
Hi, Can someone take photo to show me some files displayed in V3,BEBook or Ez Reader alxwang HanLin eBook 15 04-07-2009 01:43 PM
Files won't show up in reader wsu99999 Calibre 5 01-20-2009 06:04 PM


All times are GMT -4. The time now is 12:33 PM.


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