|  04-26-2013, 04:43 AM | #1 | 
| Bookish            Posts: 1,049 Karma: 2006208 Join Date: Jun 2011 Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, 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  ) | 
|   |   | 
|  04-26-2013, 06:26 AM | #2 | 
| Wizard            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. | 
|   |   | 
|  04-26-2013, 07:13 AM | #3 | 
| Bookish            Posts: 1,049 Karma: 2006208 Join Date: Jun 2011 Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, 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?   | 
|   |   | 
|  04-26-2013, 10:03 AM | #4 | 
| Wizard            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.
		 | 
|   |   | 
|  04-27-2013, 02:06 AM | #5 | 
| A curiosus lector!            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).
		 | 
|   |   | 
|  04-27-2013, 06:16 AM | #6 | 
| Connoisseur            Posts: 91 Karma: 1186533 Join Date: Jan 2012 Device: Kindle | 
			
			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.
		 | 
|   |   | 
|  04-27-2013, 07:25 AM | #7 | 
| Grand Sorcerer            Posts: 5,763 Karma: 24088559 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. | 
|   |   | 
|  04-27-2013, 02:31 PM | #8 | 
| Bookish            Posts: 1,049 Karma: 2006208 Join Date: Jun 2011 Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, 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.
		 | 
|   |   | 
|  04-27-2013, 07:25 PM | #9 | |
| Connoisseur            Posts: 91 Karma: 1186533 Join Date: Jan 2012 Device: Kindle | Quote: 
  Mine is set a little differently though - it looks like we have different versions of BC (I have 3.3.7). | |
|   |   | 
|  04-28-2013, 10:53 AM | #10 | |
| Addict            Posts: 254 Karma: 69786 Join Date: May 2006 Location: Oslo, Norway Device: Kobo Aura, Sony PRS-650 | Quote: 
 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   | |
|   |   | 
|  05-01-2013, 01:45 PM | #11 | 
| actually it is /var/log            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=$SAVEIFSThis is for Linux of course but must be doable in Windows too. | 
|   |   | 
|  | 
| 
 | 
|  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 |