View Single Post
Old 07-29-2015, 09:41 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,029
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Exclamation Check Book repair function has unexpected file remove side-effect

Today, while fixing some ebook with the Edit Book function, I got the following warning on using the Check Book function:

Code:
WARNING: Invalid id: stärt [OEBPS/metadata.opf]
So I inspected the metadata.opf and found the following:
Code:
<manifest>
    <item href="Text/start.xhtml" id="stärt" media-type="application/xhtml+xml"/>
Check Book explained this as follows:

Code:
The id stärt is not a valid id. IDs must start with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). This is to ensure maximum compatibility with a wide range of devices.
Apparently the "ä" caused some problem (it is a valid letter though), so I tried to repair it with these two options of Check Book:
  • Replace this id with a randomly generated valid id
  • Try to correct all fixable errors automatically

The "repair" in both cases turned out to be the complete removal of the text file where ID stärt refers to.

I admit, the removal "cures" the problem, but I do not think that this is the right solution In particular when you at first are not aware of it and later on seem to have a corrupted e-book with a missing chapter.

Last edited by DrChiper; 07-29-2015 at 01:21 PM.
DrChiper is offline   Reply With Quote