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 05-09-2024, 02:49 PM   #16
Peter Blaise
Member
Peter Blaise began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2016
Device: mobi
"... DNSB wrote: Instead of Check Book which is a rather simplistic check, try using epubcheck. As for the re-import? You do not save a backup copy before editing? ..."


.

Two things:

1 - I'm not asking for support as much as I'm trying to present to Kovid Goyal that the various EPUB checking algorithms in the Calibre Ebook program disagree with each other: make all Calibre Ebook check routines equivalent.

2 - 'Help'-wise, yes, once I've completely edited an EPUB, I'm chagrinned that those edits are lost and I have to re-do them, hence the query if it's possible to re-import THE SUPOSEDLY OK BUT REALLY DAMAGED EPUB without it's apparently munged metadata, other wise, I either re-edit after re-importing the original, or in this case, Amazon converted it to MOBI ( and KFX ) no problem - in other words, instead of Calibre saying "I can't open this for editing", how about Calibre saying "This appears damaged, please wait a moment while I fix it".

So this thread is more of a report to Kovid Goyal than it is a request for specific EPUB repair for me, more of a general "once an EPUB becomes corrupt, in spite of the Calibre Edit book Check book saying "no problems", but then the EPUB cannot be re-opened for editing, for polishing, for converting, only for reading ( funny that ), or for sending to Amazon, who converts it just fine, no problem.

Regarding epubcheck, I presume from W3.org, do you expect that program to FIX malformatted metadata?

Thanks.

.
Peter Blaise is offline   Reply With Quote
Old 05-09-2024, 03:52 PM   #17
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,169
Karma: 145735366
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Peter Blaise View Post
Regarding epubcheck, I presume from W3.org, do you expect that program to FIX malformatted metadata?
To fix, no. To let you know that there is an issue? Yes. epubcheck, does not have a fix option, it simply lets you know where the error occurred and what it thinks the error is. Even for errors that are caught elsewhere and offer an automatic fix, I will hit fix manually. All too often, the results of an automatic fix have been unexpected, interesting and a pain to fix.

Expecting the same results from a standards compliancy checker and a renderer is a bit of a stretch. The calibre ebook-viewer is Chrome based and is very forgiving of errors as most web browsers tend to be. The calibre ebook-editor BooK Check tool is not as forgiving and epubcheck is basically that martinet who screamed at you over a misplaced comma.

I also use the W3C CSS validation service to check the CSS files for errors such as using a CSS3 (ePub3 uses that flavour) in an ePub2 (CSS 2.1 flavour). It helps to prevent unpleasant surprises for the end user.
DNSB is offline   Reply With Quote
Old 05-09-2024, 06:42 PM   #18
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,642
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Peter Blaise View Post
. . .

I'm not asking for support as much as I'm trying to present to Kovid Goyal that the various EPUB checking algorithms in the Calibre Ebook program disagree with each other: make all Calibre Ebook check routines equivalent.

. . .
Then, I suggest you report your issue as a Bug/Enhancement, see ==>> calibre - Bugs

You will get a direct response from Kovid there.

BR
BetterRed is offline   Reply With Quote
Old 05-09-2024, 10:49 PM   #19
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,951
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Jesus, what a load of noise over nothing. There was a bug which caused calibre to choke on a particular type of malformed metadata in EPUB3 files. That was fixed, as I indicated in my post days ago. All you have to do is wait for the next calibre preview/release and you will be able to import your EPUB with no issues.
kovidgoyal is offline   Reply With Quote
Old 05-10-2024, 10:25 AM   #20
Peter Blaise
Member
Peter Blaise began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2016
Device: mobi
"BetterRed wrote: . . . I suggest you report your issue as a Bug/Enhancement, see ==>> *calibre - Bugs* (https://calibre-ebook.com/bugs) You will get a direct response from Kovid there. BR . . ."

Oh, great to know a https://calibre-ebook.com/bugs site exists.

"Kovid Goyal wrote: . . . There was a bug which caused calibre to choke on a particular type of malformed metadata in EPUB3 files . . . fixed . . . wait for the next calibre preview/release and you will be able to import your EPUB with no issues . . ."

There is no response to a search for "AttributeError: Custom field name '' must begin with '#'" at https://calibre-ebook.com/bugs - what "Bug" is this situation listed under?

Anyway, glad to know this was noticed and will be addressed via a subsequent release.

As ever, thank you, Kovid Goyal - and all the folks at https://calibre-ebook.com/about#contributors - for the superlative Calibre Ebook universe of programs for eBook reading, converting, library management, editing, emailing, researching, and more!

.
Peter Blaise is offline   Reply With Quote
Old 05-10-2024, 11:31 AM   #21
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,228
Karma: 74000000
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The canonical location for fixes is the calibre GitHub repository. You maybe overlooked an earlier response from Kovid



Quote:
Originally Posted by kovidgoyal View Post
Somebody has tampered with that epub file leaving behind invalid metadata in its OPF. https://github.com/kovidgoyal/calibr...2b080895ad476f
That link he includes is to the change made to fix the issue which will be included in the next calibre release.

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Old 05-10-2024, 11:44 AM   #22
Peter Blaise
Member
Peter Blaise began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Dec 2016
Device: mobi
"PeterT wrote: The canonical location for fixes is the calibre GitHub repository. You maybe overlooked an earlier response from Kovid:
". . . Kovid Goyal wrote: Somebody has tampered with that epub file leaving behind invalid metadata in its OPF. https://github.com/kovidgoyal/calibr...2b080895ad476f . . ."
That link he includes is to the change made to fix the issue which will be included in the next calibre release. Sent from my Pixel 7a using Tapatalk"

How would an end user know what all that meant?

However:

"Kovid Goyal wrote: . . . There was a bug which caused calibre to choke on a particular type of malformed metadata in EPUB3 files . . . fixed . . . wait for the next calibre preview/release and you will be able to import your EPUB with no issues . . ."

. . . works for me.

Thanks.

.
Peter Blaise is offline   Reply With Quote
Old 05-10-2024, 03:01 PM   #23
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 36,169
Karma: 145735366
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Peter Blaise View Post
How would an end user know what all that meant?
Familiarity with how Kovid Goyal posts fixes? Looking at links in posted messages?
DNSB is offline   Reply With Quote
Old 05-10-2024, 05:09 PM   #24
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,387
Karma: 87013929
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by DNSB View Post
Even for errors that are caught elsewhere and offer an automatic fix, I will hit fix manually. All too often, the results of an automatic fix have been unexpected, interesting and a pain to fix.
Indeed life is too short for that. I do click on "fix filename" of a font file. That's rare.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom field based on multiple value field for export nindotza Calibre 0 01-02-2021 08:37 AM
CC - custom field not displaying SgtDave Calibre Companion 6 01-04-2019 09:43 AM
Question about populating custom field jmricker Plugins 3 08-09-2014 02:10 PM
Custom field for 'original language' wladdy Library Management 1 08-08-2014 01:26 PM
Custom Metadata Field gpp Sigil 6 02-22-2011 08:39 AM


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


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