Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2021, 07:21 AM   #1
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
Font properties: CSS version mismatch?

Is there a slight mismatch between conversion of docx styles to font CSS and what is needed?
The CSS below is technically correct for some versions of CSS, but gives check errors. The 2nd simpler version gives no errors and works as expected on Sony, Binatone, Nook, Kobo, Apps and conversion to KF8 or KFX by Amazon or locally.


The conversion from docx to epub gives:
Code:
@font-face {
    font-family: "Georgia";
    panose-1: 2 4 5 2 5 4 5 2 3 3;
    src: url(fonts/Georgia.ttf)
    }
@font-face {
    font-family: "Georgia";
    panose-1: 2 4 8 2 5 4 5 2 2 3;
    src: url(fonts/Georgia-Bold.ttf);
    font-weight: bold
    }
@font-face {
    font-family: "Georgia";
    panose-1: 2 4 5 2 5 4 5 9 3 3;
    src: url(fonts/Georgia-Italic.ttf);
    font-style: italic
    }
@font-face {
    font-family: "Gaelic";
    font-weight: 5;
    font-style: normal;
    font-stretch: normal;
    src: url(fonts/Gaelic.ttf)
    }
It's dubious if anything anywhere uses the panose-1 property. It's been in and out and in on CSS version spec. Gives and error under the ladybug book check tool.
A numeric "font-weight: 5" may or not cause an ereader issue. But the check thinks it's an error. It should be "font-weight: normal". Gaelic is the only font I use that generates a number on conversion instead of description strings.

Editing manually removes errors and works fine on all apps an ereaders as expected and also resulting Amazon downloads (KF8 or KFX) are as expected from the epub upload, as is local dual mobi viewed in Publisher mode (KK3 & PW3):
Code:
@font-face {
    font-family: "Georgia";
    src: url(fonts/Georgia.ttf)
    }
@font-face {
    font-family: "Georgia";
    src: url(fonts/Georgia-Bold.ttf);
    font-weight: bold
    }
@font-face {
    font-family: "Georgia";
    src: url(fonts/Georgia-Italic.ttf);
    font-style: italic
    }
@font-face {
    font-family: "Gaelic";
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    src: url(fonts/Gaelic.ttf)
    }
The only ereader I have where it's all irrelevant is the DXG as it's a dumber than KK3 version of KF7 rendering, but fonts do mostly correctly be Serif, Sans or Monospace with either normal, bold, italic or bold italic.
Quoth is offline   Reply With Quote
Old 11-27-2021, 08:36 AM   #2
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: 40,286
Karma: 18000670
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
panose-1 is there to allow roundtripping back to docx with minimal loss of information. And it causes no issues with anything, it just helps renderers select better matching fallback fonts. As for the number with the font-weight i have no clue why that is, i will need a sample.
kovidgoyal is online now   Reply With Quote
Old 11-27-2021, 10:01 AM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
OK, Wonderful fast response!

Here is the LO odt "Save As" docx for Calibre
under_stone_destiny_samp_v30.docx
It's a sample version. The epub & Dual Mobi are here
(might not be exactly the same revision)
https://www.corvidspress.com/fiction...ne-of-destiny/

Is "Check Book" under Tools in Editor a plug in? It gets the errors.
Quote:
ERROR: Unknown property 'panose-1'.****[page_styles.css]
ERROR: Unknown property 'panose-1'.****[page_styles.css]
ERROR: Unknown property 'panose-1'.****[page_styles.css]
ERROR: Expected (<font-weight>) but found '5'.****[page_styles.css]
Quote:
Error [1 / 4]
page_styles.css (line: 7 column: 4)
Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property. See detailed description.
The font resulting in the number 5 is Gaelic_Regular.ttf
It's probably not embedded in the docx as I use Calibre on the same computer.
Quoth is offline   Reply With Quote
Old 11-27-2021, 10:14 AM   #4
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
The font came with "GST/GSP" Publisher or Designworks in the 1990s. I bought both packages then and we have been using the font for over 25 years, mostly converted to images on web pages or titles on printed "hobby kits".
http://luc.devroye.org/fonts-25319.html
Quote:
Mike Charness's Huntsville, AL-based foundry used to offer a huge number of handwriting fonts, and thousands of other fonts at rock bottom prices, in all font formats. It stopped selling fonts to end users or licensing fonts for redistribution in 2003, but continues OEM work.
Also comment from the list here http://luc.devroye.org/WSI-FontList.txt (nearly 1/2 way down the page)
Quote:
GAELIC It's one of those ironies of letterform history that the Italian hands used in manuscripts of the Dark Ages were best preserved against the pillaging Norse by the monasteries of Ireland, and we are thus induced to think of the Irish when we see their letterforms. Gaelic is loosely based on them. It suggests the broad pen and simpler, more open letterforms used in uncial manuscripts, rather than the denser, more elaborate manuscript hands of the later Middle Ages on which Guttenberg based his black-letter fonts.
Quoth is offline   Reply With Quote
Old 11-27-2021, 10:41 PM   #5
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: 40,286
Karma: 18000670
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK, I'll have a look at it when i have a moment, am busy porting calibre to Qt 6 right now.
kovidgoyal is online now   Reply With Quote
Old 11-28-2021, 10:21 AM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
Good Luck!
Quoth is offline   Reply With Quote
Old 11-28-2021, 10:46 AM   #7
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
Both issues (and one is the Book Checker) are very low priority!

Only bother looking when you are wanting something boring! I can email the font file if you want, later.
Quoth is offline   Reply With Quote
Old 11-29-2021, 04:07 AM   #8
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: 40,286
Karma: 18000670
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Converting your attached docx with the option to embed all fonts produces an epub without any errors under check book for me. Probably because i have none of those fonts on my system. Attach them or better embed them in the docx itself.
kovidgoyal is online now   Reply With Quote
Old 11-29-2021, 07:34 AM   #9
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
I thought that would happen.
I'd rather email that than put it public in case there is a font distribution issue.

Thanks.
Quoth is offline   Reply With Quote
Old 11-29-2021, 09:12 AM   #10
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
Also I'm using:
Linux Mint 20.1 with Mate desktop (x64)
Calibre 5.31.1
LibreOffice Version: 6.4.7.2

I rarely update things immediately unless the update is needed to fix something broken for me.
Quoth is offline   Reply With Quote
Old 11-29-2021, 10:50 AM   #11
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 4,104
Karma: 36300001
Join Date: Jun 2017
Location: Ireland
Device: Both Kinds: epub based makes and Kindle
There may also still be the occasional font embedded by Calibre import from docx where Book Check doesn't like the filename.

I only actually embed the fonts in a docx if the file is getting processed on another PC, or being emailed to someone. Uploads are all epub2, pdf and one place also dual mobi. I only use docx now for LO Writer export (extra save as) to Calibre import. The odt format doesn't 100% work with Calibre.
Quoth 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
How can I sort CSS properties alphabetically? simurq Editor 9 07-19-2020 06:37 PM
Missing CSS properties roger64 KOReader 0 06-01-2016 07:39 AM
Calibre for PC, 2.9/2.11 Version Mismatch ArgentSun Calibre 13 12-05-2014 02:40 PM
List of all (currently) supported CSS properties ribik Library Management 5 08-26-2014 08:34 AM
Unsetting properties in CSS Jellby ePub 2 06-03-2009 05:29 AM


All times are GMT -4. The time now is 05:09 AM.


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