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 02-18-2014, 10: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: 1,456
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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 10:37 AM.
roger64 is offline   Reply With Quote
Old 02-18-2014, 10:46 AM   #2
theducks
Grand Sorcerer
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: 15,085
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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, 11: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: 1,456
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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 11:03 AM.
roger64 is offline   Reply With Quote
Old 02-18-2014, 12:00 PM   #4
Doitsu
Wizard
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: 2,045
Karma: 4836606
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, 03: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,086
Karma: 1444487
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, 04:33 PM   #6
eschwartz
Irrational Optimist
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: 7,472
Karma: 13073853
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 online now   Reply With Quote
Old 02-18-2014, 08: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: 1,456
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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, 08:54 PM   #8
eschwartz
Irrational Optimist
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: 7,472
Karma: 13073853
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 online now   Reply With Quote
Old 02-19-2014, 02: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: 1,456
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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, 02:54 AM   #10
eschwartz
Irrational Optimist
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: 7,472
Karma: 13073853
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 online now   Reply With Quote
Old 02-19-2014, 02: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: 26,324
Karma: 5382313
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 online now   Reply With Quote
Old 02-19-2014, 03: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: 1,456
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
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:	50
Size:	66.2 KB
ID:	119250   Click image for larger version

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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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