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 02-18-2014, 09:34 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Understanding two reported mistakes

Hi

I am just beginning to use the book-editor with Linux and have been very pleasantly impressed by its recent huge progresses.

I just checked one EPUB2 of mine and I have two questions about reported errors:

the first one (in French) is
Quote:
Le fichier META-INF/com.apple.ibooks.display-options.xml [META-INF/com.apple.ibooks.display-options.xml] n'est pas compris dans le manifeste
This error has not been automatically corrected, thus my question:

Question: which text should I add in the manifest and where exactly to insert it?

the second one (concerning many xhtml files)

Code:
Entités nommées actuelles
(about named entities)

The reported mistakes have been all automatically corrected. However this correction is a kind of black box for me.

Question: Is there somewhere a kind of transposition table which explains that all A_entities have been changed to B and so on?

If I wish for some reason to come back to the previous state, I feel unable to do it as I do not know what has been changed and how important it was. Was it one entity or one thousand?

Last edited by roger64; 02-18-2014 at 09:37 AM.
roger64 is offline   Reply With Quote
Old 02-18-2014, 09:46 AM   #2
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,781
Karma: 54830978
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 roger64 View Post
Hi

I am just beginning to use the book-editor with Linux and have been very pleasantly impressed by its recent huge progresses.

I just checked one EPUB2 of mine and I have two questions about reported errors:

the first one (in French) is


This error has not been automatically corrected. thus my question:

Question: which text should I add in the manifest and where exactly to insert it?
the second one (concerning many xhtml files)

Code:
Entités nommées actuelles
(about named entities)

The reported mistakes have been all automatically corrected. However this correction is a kind of black box for me.

Question: Is there somewhere a kind of transposition table which explains that all A_entities have been changed to B and so on?

If I wish for some reason to come back to the previous state, I feel unable to do it as I do not know what has been changed and how important it was. Whas it one entity or one thousand?

Beautify all files will usuall fix the second. All it does is replace 'Named' entities with their numbered counterpart. & nbsp; becomes & #160;

There are 2 kinds of messages (at least that is all I have seen). Marked:
1) with a X icon. These are bad, If you select, suggestions appear in the right pane.

2)Yellow Warnings: These are items that don't belong to the spec / misbehave in some cases . They usually only mater depending on who gets the files. Brain dead validation at some major sites will require that even these must be resolved.
theducks is offline   Reply With Quote
Old 02-18-2014, 10:01 AM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks for your reply. Up to now I only have these -yellow- warnings quoted above.

I use a lot of &#-82-39; (without the two - in the middle). These are narrow no-break spaces

If I understand you correctly these last ones are left untouched?

Last edited by roger64; 02-18-2014 at 10:03 AM.
roger64 is offline   Reply With Quote
Old 02-18-2014, 11:00 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
I just checked one EPUB2 of mine and I have two questions about reported errors:

the first one (in French) is

Quote:
Le fichier META-INF/com.apple.ibooks.display-options.xml [META-INF/com.apple.ibooks.display-options.xml] n'est pas compris dans le manifeste
This error has not been automatically corrected, thus my question:
Question: which text should I add in the manifest and where exactly to insert it?
AFAIK, none of the files in the META-INF folder need to be manifested; the contents of this folder is ignored by epubcheck anyway, which seems to be one of the reasons that Apple puts all their custom .xml files in this folder.

I.e., technically speaking, Calibre Editor, is correct about reporting unmanifested files, because META-INF isn't supposed to contain files other than container.xml, but you can ignore this warning.
Doitsu is offline   Reply With Quote
Old 02-18-2014, 02:10 PM   #5
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You will see non-breaking spaces disappear. They are translated into unicode rather than remaining in HTML. But they are there. You can see them at the lower right of the window as you cursor through the text.
mrmikel is offline   Reply With Quote
Old 02-18-2014, 03:33 PM   #6
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
most entities will be transformed into their unicode equivalent. Only if it would interfere with (x)html parsing will it retain the entity, and I don't think it will be changed from named to numbered.

Sigil is the one that converts named entities to numbered entities.
eschwartz is offline   Reply With Quote
Old 02-18-2014, 07:33 PM   #7
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by mrmikel View Post
You will see non-breaking spaces disappear. They are translated into unicode rather than remaining in HTML. But they are there. You can see them at the lower right of the window as you cursor through the text.
When I use the cursor, I can read as you say in the lower right part the name of the entity. The calibre editor identifies this way by their own names the no-break space (displayed by a yellow square in code view) and the narrow no-break space (displayed by a plain blank in code view).

However, the editor does not seem to change the nbsp; to #160. After saving the calibre correction, I opened again the EPUB file in sigil and I still had all my 1077 nbsp; like before.

I think there is a need to publish somewhere a kind of transposition table to explain clearly what changes will be (or should be) performed by the calibre editor and on which entities.

Quote:
Originally Posted by Doitsu View Post
AFAIK, none of the files in the META-INF folder need to be manifested; the contents of this folder is ignored by epubcheck anyway, which seems to be one of the reasons that Apple puts all their custom .xml files in this folder.

I.e., technically speaking, Calibre Editor, is correct about reporting unmanifested files, because META-INF isn't supposed to contain files other than container.xml, but you can ignore this warning.
OK thanks for this clarification.
roger64 is offline   Reply With Quote
Old 02-18-2014, 07:54 PM   #8
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by roger64 View Post
When I use the cursor, I can read as you say in the lower right part the name of the entity. The calibre editor identifies this way by their own names the no-break space (displayed by a yellow square in code view) and the narrow no-break space (displayed by a plain blank in code view).

However, the editor does not seem to change the nbsp; to #160. After saving the calibre correction, I opened again the EPUB file in sigil and I still had all my 1077 nbsp; like before.

I think there is a need to publish somewhere a kind of transposition table to explain clearly what changes will be (or should be) performed by the calibre editor and on which entities.
As I said in my previous post, calibre does not change named entities to numbered entities. It changes both to their unicode equivalent, either when you type the entity, or when you run Beautify/Fix HTML on the containing file. Additionally, Check Book will warn you of named entities (but not numbered ones) and offer to fix them.

In short, he following changes are performed:
named entities --> unicode --- when typed in, or fix/beautify files, or in Check Book
numbered entities --> unicode --- when typed in, or fix/beautify files

Exceptions are < > which will never be changed since that would mess up html.

° ' (and possibly more) appear to not change when typed in, but even those get replaced with Fix HTML.
eschwartz is offline   Reply With Quote
Old 02-19-2014, 01:50 AM   #9
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by eschwartz View Post
As I said in my previous post, calibre does not change named entities to numbered entities. It changes both to their unicode equivalent, either when you type the entity, or when you run Beautify/Fix HTML on the containing file. Additionally, Check Book will warn you of named entities (but not numbered ones) and offer to fix them.

In short, he following changes are performed:
named entities --> unicode --- when typed in, or fix/beautify files, or in Check Book
numbered entities --> unicode --- when typed in, or fix/beautify files
Thanks for your detailed answer but I fail to reproduce it. I am more than probably dumb but what happens is this: I open one EPUB2 of mine with the calibre editor and I ask it to correct and beautify this EPUB2. I save it. I open the "corrected" EPUB2 later with Sigil and I can still find inside over 900   living a happy and undisturbed life

Nothing is fixed on this regard. What am I expected to find?
roger64 is offline   Reply With Quote
Old 02-19-2014, 01:54 AM   #10
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by roger64 View Post
Thanks for your detailed answer but I fail to reproduce it. I am more than probably dumb but what happens is this: I open one EPUB2 of mine with the calibre editor and I ask it to correct and beautify this EPUB2. I save it. I open the "corrected" EPUB2 later with Sigil and I can still find inside over 900   living a happy and undisturbed life

Nothing is fixed on this regard. What am I expected to find?
If you re-open it in Sigil, Sigil will convert the unicode back into an entity.
eschwartz is offline   Reply With Quote
Old 02-19-2014, 01:58 AM   #11
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Do not ever use Sigil to check what changes have been made to the book. Sigil modifies the book just by opening it.

Either use the calibre compare book tool or use the calibre unpack book tool to take a look at the contents of the file. Or use the editor itself, since it does not make any changes to the html when simply opening the file.
kovidgoyal is offline   Reply With Quote
Old 02-19-2014, 02:47 AM   #12
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by kovidgoyal View Post
Do not ever use Sigil to check what changes have been made to the book. Sigil modifies the book just by opening it.

Either use the calibre compare book tool or use the calibre unpack book tool to take a look at the contents of the file. Or use the editor itself, since it does not make any changes to the html when simply opening the file.
Thanks both of you for your replies. Now all this makes sense. So this nice calibre editor must absolutely be the last and final step in my workflow.

I tried the "compare" tool which is very handy. This is discovery day!!

I saw what happens to &nbsp and nnbsp (see entities snapshot and red squares) and how doctype is silently killed! Utterly frightening!
Attached Thumbnails
Click image for larger version

Name:	entities.png
Views:	341
Size:	66.2 KB
ID:	119250   Click image for larger version

Name:	doctype.png
Views:	323
Size:	54.4 KB
ID:	119251  

Last edited by roger64; 02-19-2014 at 03:15 AM.
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manage gramm. mistakes? Dalirose Onyx Boox 1 01-01-2014 12:22 PM
5 Mistakes Of New Fiction Writers VydorScope Writers' Corner 67 07-08-2012 07:36 AM
Noob install mistakes Shiryas Calibre 2 04-05-2010 01:30 AM
typos or mistakes in ebooks delcimai Sony Reader 15 02-14-2010 11:53 AM
Mistakes in The Hobbit AlexBell News 58 05-12-2009 08:26 PM


All times are GMT -4. The time now is 11:47 AM.


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