04-06-2021, 06:32 AM | #1 |
the rook, bossing Never.
Posts: 11,158
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Possible bugs: Editor and converting from docx?
1) Language
Sometimes there is no language in content.opf. The line Code:
<dc:language>en</dc:language> Edit: I converted two epubs to dual mobi. Afterwards the <dc:language>en</dc:language> is gone! Edit2: Actually it's gone simply re-opening the Editor on the file. What am I doing wrong? 2) Fonts The behaviour of Embed Fonts is different in the Conversion GUI and in the Editor. The Editor works correctly. Attempting manually or using Check to remove spaces in file names results in fonts that don't work on a Kobo. Leaving the spaces may be OK on a Kobo. Everything is always fine in the viewer. Posts below have the details of the workaround. https://www.mobileread.com/forums/sh...37#post4108937 https://www.mobileread.com/forums/sh...73&postcount=3 3) Fonts with Font weights that are strange One font has a 400 setting in the font file. Calibre Embed Fonts in Conversion GUI or Editor, puts font-weight: 5; which isn't recognised by Check. Changing to font-weight: normal; works correctly. Also some fonts have a string of Panose numbers in the CSS after embedding. Deleting that line in each css seems to be the solution. Tip: Set Minimum Line Height AND Line Height to Zero (0.0 %) so that the user can use the ereader to set the line height, which should be the default for all ebooks. Different top and bottom margins for each paragraph style are not affected and how you should space in the wordprocessor. Last edited by Quoth; 04-06-2021 at 06:45 AM. Reason: <dc:language>en</dc:language> |
04-06-2021, 07:03 AM | #2 |
the rook, bossing Never.
Posts: 11,158
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I think if the Metadata form entry for Language (Calibre Metadata) is blank the Editor removes the <dc:language>en</dc:language> line in content.opf if the default "Update metadata from Calibre" under Calibre integration is checked.
I think this is a bug. Surely the Language in the ebook should initially set the Calibre field and shouldn't be deleted if the box in the form is empty? Also should it be en or English by default? Edit: It seems like English in the Calibre Metadata form gives <dc:language>en</dc:language> in the actual ebook? Also is Editor -> Help -> Preferences per ebook or for any instance later opened of the Editor? I thought I unchecked "Update metadata from Calibre", but it's currently checked. Last edited by Quoth; 04-06-2021 at 07:22 AM. Reason: English |
Advert | |
|
04-06-2021, 08:04 AM | #3 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1) If you remove the language from calibre metadata it will be removed from the book when the metadata in the book is updated. That is the desired and correct behavior. And if you want to change editor preferences, the preferences in the last closed instance will win. So close all but one instance and change them there.
2) This is a bug in the Kobo firmware, not calibre. Spaces or indeed any legal characters in a font file name dont prevent them from working or make them incorrect. The is no "correct" filename for a font file. 3) Opena bug report and attach a sample demonstrating the issue. |
04-06-2021, 08:57 AM | #4 | |||
the rook, bossing Never.
Posts: 11,158
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Generally, yes, the ebook metadata should reflect the Calibre data, but surely the dc:language field should never be completely deleted silently? I've solved this by making sure the Language is not empty in the Calibre Metadata GUI when I add a docx. I guess I had more than one instance of the editor open. I do know about last one closes, wins! Quote:
Embed Fonts in the GUI of Conversion often adds spaces (Kobo doesn't care, but Check does). If I use Embed Fonts in the Editor it never puts spaces and creates a fonts.css. That works with Kobo and Check. So a.) The Conversion GUI and Editor GUI do fonts differently, the Editor version is compatible with Check. b.) There is no FW issue on the Kobo, it works with or without spaces in the Font file name. c.) If there are spaces and Check complains, and you fix it so that Check and Epub Check both pass, then the fonts don't work on the Kobo. If you ignore Check's complaint, the Kobo is fine. Quote:
The font-weight: 5; in the Gaelic font always happens with Embed Fonts (Conversion GUI or Editor, on the Editor there is a message about 400) The list of panose numbers in a font css after embed font is rare. I don't remember which docx conversions caused it. Thanks. So: 1) I need to make sure Language Field in Metadata is not empty. I don't know why sometimes it is. I always check metadata and browse for cover after a docx import as they never have a cover. 2) For now I will delete fonts in Editor and use Embed via Editor, OR ignore Check's complaint about spaces or other illegal characters as "fixing" breaks it. Certainly there is a bug in Check as to how it automatically changes font names, but manually editing fails, so either leaving it alone or using Embed in the Editor is the solution. It's not the Kobo as it copes with either version of Embed Fonts (spaces or not). 3) Not a big deal. Simple to fix in fonts.css or page_styles.css and actually no ereader I have cares. I think only Check finds the numeric font weight or panose list a fault. Not sure about Epub Check. |
|||
04-06-2021, 11:21 AM | #5 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
check book simply renames the files and all references to them. I dont see how that could break anything. If the Kobo is indeed having trouble with it, that is a bug in its firmware. Just ignore the warning in check book, its a warning not an error. And the next version of calibre will replaces spaces in fonts when converting docx to keep epubcheck happy so the issue is moot anyway.
If you want to report bugs see: https://calibre-ebook.com/bugs |
Advert | |
|
04-06-2021, 12:12 PM | #6 | |
the rook, bossing Never.
Posts: 11,158
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Yet with the original names by the Conversion GUI Embed Fonts (which uses spaces) and the alternate names without spaces created by Editor GUI Embed Fonts both work on the Kobo. Thanks. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Having issues converting docx to epub | suenhoho | Conversion | 6 | 03-20-2019 04:16 PM |
Converting to epub from rtf vs. docx | kjulia28 | Conversion | 0 | 12-19-2015 03:23 AM |
Error Converting docx to epub | drago87 | Conversion | 7 | 08-11-2015 04:24 PM |
Error with converting docx to epub | ssflwp | Calibre | 3 | 07-05-2014 06:39 AM |
Converting a play in docx to epub | sir_despard | Conversion | 1 | 01-29-2014 08:00 AM |