![]() |
#31 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jun 2014
Device: samsung galaxy s2
|
Quote:
Unfortunately the viewer is not realy up to the task of showing differences in multiple files quickly... The best alternative i can think of currently is extracting both books then using a tool like winmerge, to show differences then selecting the book to keep... winmerge also allows eding side by side which is handy... |
|
![]() |
![]() |
![]() |
#32 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well I'm afraid designing a tool for multiple uses is too smart for poor old me.
> /dev/null |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Hi Kovid,
I just do some translations and I check the diff tool from command line. The translation string gives an example: calibre-debug --diff file2 fiel1 Instead of: calibre-debug --diff -- "file 2.epub" "file 1.epub" The User Guide for Command Line Interface has sometimes problems with --. There is shown sometimes a – instead of --. Example for calibre-debug: In general description and for commands like this (and for some other): --diff Run the calibre diff tool. For example: calibre-debug –diff – file1 file2 An additional point: I often recognize that users came in trouble because they don't know how to use an option correctly. Most commonly are missing quotation marks because of a file name with spaces or/and missing file extensions like "book 1" -> "book 1.epub". Path names are also a point. Maybe it is a good idea to put this as an explanation in the first place of chapter Command Line Interface Finally, I recognize a different behavior at the bottom of the window for the information line (pls. see picture, first part is via command line and below part is via editor).You show the information about which files are part of the comparison if I open the diff tool from the editor. This is missing if I open the tool via command line. Last edited by Divingduck; 06-17-2014 at 06:55 AM. |
![]() |
![]() |
![]() |
#34 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The diff tool does not work only for epubs, but for all file types. I even use it as my primary code diff tool for developing calibre. The necessity for adding -- before the filenames is actually a bug, which has been fixed for the next release, which is why the translation string changed.
And the help for all the command line tools (except for a couple) has a note about enclosing file arguments in quotes. See for example here: http://manual.calibre-ebook.com/cli/ebook-convert.html As for the double hyphen to mdash problem that is a limitation of the documentation generation system calibre uses. |
![]() |
![]() |
![]() |
#35 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This commit should help fix the problem of -- becoming an em-dash
https://github.com/kovidgoyal/calibr...d0bb00840ea125 |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Thanks for your quick answer.
I need to make a correction in the translation, because I add it again. Good to know, will be remove within then next hour. I just recognize you are experimenting with the double hyphen ![]() To the file name, it was only an example to use the epub ext. Maybe "file.ext" is a better description. My intension was mainly to let you know this is a question I become quite often if a normal user try to start with command line. Edit: You was much faster and you add a remark. Very nice ![]() Thanks a lot! Last edited by Divingduck; 06-17-2014 at 09:11 AM. |
![]() |
![]() |
![]() |
#37 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jun 2014
Device: samsung galaxy s2
|
|
![]() |
![]() |
![]() |
#38 |
Connoisseur
![]() Posts: 70
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
|
Option request
Just stumbled across this, really like it. I know this is an old thread but I couldn't find anything more recent.
Are there any options (maybe undocumented and already there)? I would like to see: Beautify as part of CLI Hide all meta and show text only (what you would see in E-book viewer) also CLI Also some way to save a comparison to file. Thanks for your consideration. |
![]() |
![]() |
![]() |
#39 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
convert to txt and diff that using a regular diff tool, that will get you all your feature requests except beautify.
|
![]() |
![]() |
![]() |
#40 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,604
Karma: 7511185
Join Date: Sep 2020
Device: none
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=350421 |
|
![]() |
![]() |
![]() |
#41 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,604
Karma: 7511185
Join Date: Sep 2020
Device: none
|
|
![]() |
![]() |
![]() |
#42 | |
Connoisseur
![]() Posts: 70
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
|
Quote:
What I like on this is that this is CLI and epubs do not need to be in the Calibre library. Right now I made a bat file with the appropriate code and all I have to do is drag two (2) epubs on the bat file and voila I get my comparison. One Step! Except any text diffs are well hidden. Last edited by julo; 05-08-2025 at 09:35 AM. |
|
![]() |
![]() |
![]() |
#43 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,242
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
So make a bat file and run
ebook-convert $1 a.txt && ebook-convert $2 b.txt diff a.txt b.txt rm a.txt b.txt |
![]() |
![]() |
![]() |
#44 |
Connoisseur
![]() Posts: 70
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
|
I mentioned in my earlier post I like to compare what I see in E-book viewer. I consider text like in bold, italics, etc. also changes and while E-book viewer shows it comparing via strictly txt loses that.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comparing epubs after using Regex | Gregg Bell | Sigil | 3 | 08-02-2013 10:22 PM |
Comparing epubs | DrChiper | Sigil | 10 | 05-01-2013 01:45 PM |
OnLive on the Kindle Fire - WOW WOW WOW WOW WOW! | Jessica Lares | Kindle Fire | 13 | 12-12-2011 03:47 PM |
Wow Hardback books are HUGE!! | =X= | General Discussions | 32 | 12-14-2010 12:13 PM |
help comparing 600 and 900 | intelfail | Sony Reader | 0 | 06-14-2010 01:06 PM |