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 04-26-2013, 04:43 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Comparing epubs

I just upgraded to Sigil 7.2 and fetched the accompanying new Sigil manual. Then I wondered: what are the differences between manual version 7.1 and 7.2?
Which leads to my question: Is there actually a clean method to compare 2 epubs with each other to spot differences in text? Layout differences would be a nice-2-have too, but seems to me rather difficult to realize and of limited use (but I might be wrong, as I have demonstrated before )
DrChiper is offline   Reply With Quote
Old 04-26-2013, 06:26 AM   #2
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
No, that feature does not exist. You can compare two XHTML files of course, but not automatic.
It can actually be quite complicated to do.
Toxaris is offline   Reply With Quote
Advert
Old 04-26-2013, 07:13 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Would be a nice feature though. For the moment I can try comparing by using BeyondCompare (highly recommended), but unfortunately file by file ...

Perhaps new user manual versions could include change marks to indicate the changed/added/removed segments?
DrChiper is offline   Reply With Quote
Old 04-26-2013, 10:03 AM   #4
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
You can also check the release notes of Sigil. That should tell you what topics were changed.
Toxaris is offline   Reply With Quote
Old 04-27-2013, 02:06 AM   #5
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
If I do understand correctly, I wonder: wouldn't it be possible to merge all files in the epub and then open it with a good text editor, save the file as html (or whatever), redo it for the next one and compare? It is not a comparaison from ebub to epub, but not to far away (and styles classes are also there).
Arios is offline   Reply With Quote
Advert
Old 04-27-2013, 06:16 AM   #6
OddCosine
Connoisseur
OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.
 
OddCosine's Avatar
 
Posts: 91
Karma: 1186533
Join Date: Jan 2012
Device: Kindle
Quote:
Originally Posted by DrChiper View Post
Would be a nice feature though. For the moment I can try comparing by using BeyondCompare (highly recommended), but unfortunately file by file ...
You can tell BeyondCompare (yes, great tool) to treat epubs as zip archives, and it will give you essentially a folder compare of the contents of two epubs. Often useful, but maybe not so much for what you're trying to do.
OddCosine is offline   Reply With Quote
Old 04-27-2013, 07:25 AM   #7
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,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
ComponentSoftware's free CSDiff file comparison tool will also compare epubs, if you change the file extension to .zip.
You'll need to run CSDiff once and change the Analyze option to Folder. You'll also need to enable the two check boxes. (Once you're done, click OK and close the app.)
After you've changed these options, all you have to do is select two renamed epubs and drag & drop them on the CSDiff shortcut.
Doitsu is offline   Reply With Quote
Old 04-27-2013, 02:31 PM   #8
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
@OddCosine: You do not even have to "fake" the file extension for BeyondCompare, just add "*.epub" to Tools->Settings->General (Archive Associations) and BC will know from then on how to handle epubs.
Attached Thumbnails
Click image for larger version

Name:	BC.png
Views:	248
Size:	33.9 KB
ID:	105048  
DrChiper is offline   Reply With Quote
Old 04-27-2013, 07:25 PM   #9
OddCosine
Connoisseur
OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.OddCosine ought to be getting tired of karma fortunes by now.
 
OddCosine's Avatar
 
Posts: 91
Karma: 1186533
Join Date: Jan 2012
Device: Kindle
Quote:
Originally Posted by DrChiper View Post
@OddCosine: You do not even have to "fake" the file extension for BeyondCompare, just add "*.epub" to Tools->Settings->General (Archive Associations) and BC will know from then on how to handle epubs.
That's actually what I meant, but I see you already know how to do it. Mine is set a little differently though - it looks like we have different versions of BC (I have 3.3.7).
Attached Thumbnails
Click image for larger version

Name:	Clipboard Image.png
Views:	232
Size:	44.2 KB
ID:	105057  
OddCosine is offline   Reply With Quote
Old 04-28-2013, 10:53 AM   #10
Man Eating Duck
Addict
Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.
 
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
Quote:
Originally Posted by DrChiper View Post
Is there actually a clean method to compare 2 epubs with each other to spot differences in text? Layout differences would be a nice-2-have too, but seems to me rather difficult to realize and of limited use (but I might be wrong, as I have demonstrated before )
I use the free (and excellent) tool WinMerge. It will not compare your epubs as-is, but if you unpack them with winrar it will compare all folderse recursively. You could also convert both epubs to text with calibre, and compare those. Text files are a bit easier to work with. Both of these options can be automated and integrated with Explorer or Nautilus using a suitable shell script, this enables you to work with epubs outside of calibre by using the command line ebook-convert. I use this to check over corrections I've made in ebooks I've read, and it works fine. For best results, open and save the epub in Sigil before making a copy for editing.

None of these methods will work well if you try to compare epubs with significant differences, such as two different editions of the same book. A comparison of the Feedbook and Gutenberg versions of the same book will show *a lot* of differences, some because of different titlepages and layout, but also in the body text due to "irrelevant things" like differing dashes, quotation marks and so on.

Good luck, and if you find a brilliant solution to this problem, please post it here
Man Eating Duck is offline   Reply With Quote
Old 05-01-2013, 01:45 PM   #11
varlog
actually it is /var/log
varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.varlog ought to be getting tired of karma fortunes by now.
 
varlog's Avatar
 
Posts: 341
Karma: 2994236
Join Date: Sep 2012
Location: usually Europa
Device: prs t1
Quick solution for single .(x)html file would be to use Sigil feature "Open With". You have to open two Sigils with books to compare, right click in both of them the section you want to compare and open with something like this script:
Code:
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")

if [ -e "$HOME/.CmpFiles" ] 
then
  echo -e "${1}\n">>$HOME/.CmpFiles
  files=`cat $HOME/.CmpFiles`
  xxdiff $files
  rm $HOME/.CmpFiles
 else
 echo -e "${1}\n">$HOME/.CmpFiles
fi

IFS=$SAVEIFS
Instead of xxdiff you could use program of your choice.
This is for Linux of course but must be doable in Windows too.
varlog 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
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-02-2011 11:32 PM
Comparing eBook library software chyron8472 Calibre 6 01-29-2011 11:41 AM
PRS-300 Contrast level comparing to Kobo hahahut Sony Reader 3 08-15-2010 08:39 AM
help comparing 600 and 900 intelfail Sony Reader 0 06-14-2010 01:06 PM


All times are GMT -4. The time now is 04:31 PM.


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