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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2016, 08:32 AM   #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
Edit book/Check book/Parsing failed: Inconsistencies in counting



Aim is an uniform (unbold) endnotes format.

Click image for larger version

Name:	<sup><b>95.png
Views:	277
Size:	136.5 KB
ID:	149116
<sup>94</sup> vs. <sup><b>95</b></sup>

My relevant regex skills are still basic, so simple F&R and Replace all.
Click image for larger version

Name:	Searching done_Replaced 75 occurrences.png
Views:	277
Size:	68.3 KB
ID:	149117
Searching done_Replaced 75 occurrences

Subsequently, in a second step, the rest would then done.
Find: </b></sup>
Replace: </sup>

Previously, indeterminate motives let me run Check book.
Click image for larger version

Name:	Check book_Parsing failed: Opening and ending tag mismatch.png
Views:	274
Size:	60.0 KB
ID:	149118
Check book_Parsing failed: Opening and ending tag mismatch ... as it was to be expected. But not only in 3 cases, but in 75.

Why Check book shows only 3 errors?

Run: Try to correct all fixable errors automatically
Run Check book again: No problems found

Control:
Find: </b></sup> Result: No matches were found for </b></sup>

This means Check book had corrected all 75 occurrences, but showed only 3. Whether these were the 3 first ones (left to right procedure), I can not say for sure.

Does that have to do with smart settings !? This should be a joke!

Interna: Conze (DAudV)

Last edited by chaot; 06-02-2016 at 10:15 AM. Reason: add Interna
chaot is offline   Reply With Quote
Old 06-02-2016, 08:35 AM   #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: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Once again, because when a parsing error occurs, check book is aborted. It's a simple concept, when there is parsing error, no further checks can be performed, because the HTML cannot be parsed reliably.
kovidgoyal is offline   Reply With Quote
Advert
Old 06-02-2016, 10:29 AM   #3
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
Reference (presumably): Because when a parsing error occurrs, all further error checking is aborted.

No concept without rule/s. Otherwise it's arbitrary.

If I understand correctly, no other types of errors, mistakes etc. may be displayed upon the occurrence of parsing errors. In the present case, however, only exist parsing errors, altogether 75.

Why are only 3 displayed? Why these 3?

By no means I want to annoy with pedantic questions. But a satisfactory answer I need for my understanding of the matter.
chaot is offline   Reply With Quote
Old 06-02-2016, 10:43 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by chaot View Post
Reference (presumably): Because when a parsing error occurrs, all further error checking is aborted.

No concept without rule/s. Otherwise it's arbitrary.

If I understand correctly, no other types of errors, mistakes etc. may be displayed upon the occurrence of parsing errors. In the present case, however, only exist parsing errors, altogether 75.

Why are only 3 displayed? Why these 3?

By no means I want to annoy with pedantic questions. But a satisfactory answer I need for my understanding of the matter.
Because, that is the way it works
Many cleaning programs require multiple 'passes' to find and expose the 'next error' after a repair.

It keeps things simpler, just to stop when it hits a Parse error, rather than figure what it would take to MEANINGFULLY continue

I have been using computers from before the IBM PC. It has always been a standard debug technique to:
run, fix, run
until the compiler finishes without error (PS I have lots of BUG creation and fixing practice )
theducks is offline   Reply With Quote
Old 06-02-2016, 11:20 AM   #5
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
OK, that should suffice as an explanation.

Conclusion: It is necessary to know and take into account the special features regarding the treatment of parsing errors in calibre.
chaot is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit book: Inconsistencies in Check Book chaot Editor 1 05-18-2016 11:16 PM
Calibre:Book Cover size in Book Details side pane & Edit Metadata Individually window Volfer Calibre 3 01-05-2016 01:56 PM
Default Edit Book Edit Window Font? lhuxley Editor 2 03-26-2015 11:11 PM
A too strict decision? - Check Book with parsing errors arspr Editor 2 08-08-2014 06:11 PM
[Check Book] shows previous book phossler Editor 1 07-30-2014 11:19 PM


All times are GMT -4. The time now is 02:55 PM.


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