![]() |
#1 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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) } 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) } |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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:
Quote:
It's probably not embedded in the docx as I use Calibre on the same computer. |
||
![]() |
![]() |
![]() |
#4 | ||
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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:
Quote:
|
||
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Good Luck!
|
![]() |
![]() |
![]() |
#7 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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. |
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
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.
|
![]() |
![]() |
![]() |
#9 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
I thought that would happen.
I'd rather email that than put it public in case there is a font distribution issue. Thanks. |
![]() |
![]() |
![]() |
#10 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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. |
![]() |
![]() |
![]() |
#11 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,838
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
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. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I sort CSS properties alphabetically? | simurq | Editor | 9 | 07-19-2020 05:37 PM |
Missing CSS properties | roger64 | KOReader | 0 | 06-01-2016 06:39 AM |
Calibre for PC, 2.9/2.11 Version Mismatch | ArgentSun | Calibre | 13 | 12-05-2014 01:40 PM |
List of all (currently) supported CSS properties | ribik | Library Management | 5 | 08-26-2014 07:34 AM |
Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 04:29 AM |