Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2016, 01:31 PM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Differences between books - Markings (2)



Prelude

Maybe I lack the necessary working routine. Anyway, the new example seems me the more likely to be not smart, but colorful - and confusing!

Click image for larger version

Name:	Searching done_Replaced 329 occurences.png
Views:	292
Size:	114.9 KB
ID:	149131
Searching done Replaced 329 occurences of [0-9]+</p>\s+<p class="calibre2">

Click image for larger version

Name:	Differences between books.png
Views:	300
Size:	105.7 KB
ID:	149132
Differences between books I consider (left side) only the characters which get eliminate, so 7</p> and <p class="calibre2"> should be highlighted in red.
Consequently, the yellow highlightings (right side) would be superfluous.

EDIT Without (much) words!

Click image for larger version

Name:	Differences between books (red_green).png
Views:	280
Size:	116.3 KB
ID:	149134
Differences between books (red/green)

Click image for larger version

Name:	Differences between books (only red).png
Views:	294
Size:	95.7 KB
ID:	149135
Differences between books (only red) That looks smart. For me!
However, the display is insofar incorrect: It should not get eliminated <p class="calibre2">9</p> but 9</p>*blanc spaces*<p class="calibre2"> - even the result is the same (correct).

Interna: Bedürftig (AHdAb)

Last edited by chaot; 06-03-2016 at 06:29 AM. Reason: add interna, add EDIT, minor correction
chaot is offline   Reply With Quote
Old 06-02-2016, 11:06 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,341
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sigh. I suggest you go read up on how diffing algorithms work. Google patience diff algorithm. No diffing algorithm can ever match what you think has "changed" in all situations. There are literally infinite ways to go from document A to document B. Any diffing algorithm simply has to guess which of those ways was actually used. Every diffing algorithm will get it wrong from time to time.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-02-2016, 11:56 PM   #3
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,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
IMHO that is actually the correct way anyway.

The code tags are part of the changes, are they not?
eschwartz is offline   Reply With Quote
Old 06-03-2016, 05:47 AM   #4
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by kovidgoyal View Post
Sigh. I suggest you go read up on how diffing algorithms work. ...
I leave it to you to know about. And even if it looks like criticism and such is, I would like to express my (great) admiration for your work.

Quote:
Originally Posted by eschwartz View Post
IMHO that is actually the correct way anyway.
There are 3 different forms of presentation of the workup of a regex in the same book. Since one can hardly speak of the correct way anyway.


The benevolent readiness with alleged (or supposed) conspicuousnesses, by me gladly referred to as inconsistencies, I take for granted for all those involved.

I will get in touch with you again about that topic (presentation of changes in Differences of books).

"Good things can become even better."

Last edited by chaot; 06-03-2016 at 06:47 AM. Reason: correct statement
chaot is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Book: Inconsistency in Differences between books chaot Editor 8 06-02-2016 11:07 AM
HDX differences between doc and books backgrounds stumped Kindle Fire 1 06-01-2016 04:05 AM
Differences between books - Markings chaot Editor 6 05-26-2016 11:19 AM
Differences between books - Color of markers chaot Calibre 4 05-19-2016 01:09 PM
[Differences between books] Running clock, although result exist chaot Editor 3 10-29-2015 01:06 PM


All times are GMT -4. The time now is 03:40 AM.


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