![]() |
#1 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
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:
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 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. |
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
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. |
![]() |
![]() |
![]() |
#4 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,689
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
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. |
||
![]() |
![]() |
![]() |
#5 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
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. |
![]() |
![]() |
![]() |
#7 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
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:
|
||
![]() |
![]() |
![]() |
#8 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
![]() Nothing is fixed on this regard. What am I expected to find? |
|
![]() |
![]() |
![]() |
#10 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
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. |
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Quote:
![]() I tried the "compare" tool which is very handy. This is discovery day!! I saw what happens to   and nnbsp (see entities snapshot and red squares) and how doctype is silently killed! Utterly frightening! ![]() Last edited by roger64; 02-19-2014 at 03:15 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |