12-19-2019, 02:49 PM | #1 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
故事主要描述當伐木
故事主要描述當伐木
Last edited by PenguinCEO; 04-16-2020 at 11:08 PM. |
12-19-2019, 03:28 PM | #2 | |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
|
|
Advert | |
|
12-19-2019, 03:48 PM | #3 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
故事主要描述當伐木
Last edited by PenguinCEO; 04-17-2020 at 02:41 AM. |
12-19-2019, 04:50 PM | #4 |
Bibliophagist
Posts: 36,580
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One question that comes to mind is what variant of epub are you creating? 2 or 3?
|
12-19-2019, 09:15 PM | #5 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre has no support for CSS variables and that is not likely to change anytime soon.
|
Advert | |
|
12-20-2019, 08:37 AM | #6 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
故事主要描述當伐木
Last edited by PenguinCEO; 04-17-2020 at 02:41 AM. |
12-20-2019, 08:39 AM | #7 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
故事主要描述當伐木
Last edited by PenguinCEO; 04-17-2020 at 02:41 AM. |
12-20-2019, 09:21 AM | #8 | ||
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
Quote:
Even the Kindle Paperwhite, a fairly nice device, has problems with basic typography. For instance, CSS font-size keywords are blown up for any user who has the device set to non-default font-size increments. I have to use a custom regex-function (a cool Calibre feature) on the stylesheet to eliminate/modify all font-size keywords. Last edited by Brett Merkey; 12-20-2019 at 09:46 AM. |
||
12-20-2019, 10:15 AM | #9 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
故事主要描述當伐木
Last edited by PenguinCEO; 04-17-2020 at 08:38 AM. |
12-20-2019, 10:52 AM | #10 |
creator of calibre
Posts: 43,996
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
12-20-2019, 10:54 AM | #11 | |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
|
|
12-20-2019, 10:57 AM | #12 |
Well trained by Cats
Posts: 29,952
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
100% guaranteed EPUB is a SUBSET of the possible CSS.
~90% of those EPUB devices, DO NOT support all the allowed EPUB CSS, or in their effort to allow user control, have mucked up what the author CAN do with them. eg a simple 50% width HR is supposed to auto center. HA! you want it in the center, you better push it there with a margin-left: 50% Read the MR Wiki sections on formats, there are dozens of issues (and some work-arounds like that above) |
12-20-2019, 11:53 AM | #13 | |
Bibliophagist
Posts: 36,580
Karma: 146059340
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I had hoped with the Readium project supplying the base code for most of the EPUB3 renderers that this Tower of Babel would be eliminated but so far, that does not seem to be happening. I won't even get into the fun of attempting to support Amazon's mobi and KF8 formats with the same CSS though you do get used to multiple pages of media queries. Edit: Out of curiosity, what happens if you embed your CSS stylesheets in the ebook and link them to the xhtml files rather than using the @import? |
|
12-20-2019, 12:09 PM | #14 | |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
Last edited by Brett Merkey; 12-20-2019 at 12:11 PM. |
|
12-20-2019, 12:12 PM | #15 |
Resident Curmudgeon
Posts: 74,561
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is your CSS without all the rubbish that will work to subset the fonts. Also, you do not need two CSS. In fact, it's just really poor coding (IMHO) to use multiple CSS.
The modification I've made to your CSS makes your CSS much more compact and simple. Plus, it will wor in Calibre to subset your fonts. WHat you were doing before was not going to work in most programs/Readers. However you were coding your CSS, just don't do it because it's not going to work. Code:
@font-face { src: url(F01.ttf); font-family: "Fiandra"; font-weight: bold; font-style: normal; } @font-face { src: url(F02.ttf); font-family: "Waterly 10"; font-weight: bold; font-style: italic; } div.question { font-family: "Fiandra"; font-size: 90.5%; } div.answer { font-family: "Waterly 10"; } |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about Calibre font subsetting | GrannyGrump | Calibre | 2 | 12-23-2014 12:07 AM |
Problem with font subsetting | grumbles | Editor | 17 | 06-20-2014 02:35 PM |
Font subsetting problem | yktan | Calibre | 5 | 09-19-2013 11:00 PM |
Bug in font subsetting | JSWolf | Calibre | 9 | 01-17-2013 09:46 AM |
ePub Font Subsetting | Cygfrydd | ePub | 2 | 08-17-2010 08:53 AM |