02-14-2015, 08:39 PM | #16 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
02-14-2015, 11:18 PM | #17 | |
Resident Curmudgeon
Posts: 73,931
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
There is already a feature to remove embedded fonts. So if the font-family removal is fixed to just remove font-family lines that do not have an embedded font, that would work. But you do have to check for font-families for fonts that are not quite embedded but are accessed in the CSS that are outside the ePub. Last edited by JSWolf; 02-14-2015 at 11:20 PM. |
|
Advert | |
|
02-15-2015, 01:04 AM | #18 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
02-15-2015, 07:22 AM | #19 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
First, this was a hack for myself. Second removing the font-families is intended to be used together with remove fonts. This was because having font-families prevents kobos reader to change fonts. And even if you don't remove fonts in addition,, that is not a bug,, as the code still does what is said. You only have a slightly larger epub with fonts in it which aren't used. Maybe someone even wants this for reasons I can't imagine
I will look at it today or tomorrow, since I think I have to modify the regex slightly to catch all cases. |
02-15-2015, 12:21 PM | #20 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
I looked through the file again and changed the regex to capture hopefully all cases. I also posted it on the Modify Epub plugin thread.
|
Advert | |
|
02-15-2015, 01:09 PM | #21 |
Grand Sorcerer
Posts: 12,162
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
@dickloraine: I'd suggest only posting your modified version in one place (ideally the calibre plugin thread) and just including a link in your post here to that version.
|
02-15-2015, 01:16 PM | #22 |
Slobbering Dog
Posts: 454
Karma: 2522512
Join Date: Feb 2015
Location: NL
Device: Kindle PW2/iPad/iPhone
|
Or, in the signature?
|
02-15-2015, 07:59 PM | #23 |
Newbie
Posts: 6
Karma: 12
Join Date: Feb 2015
Location: NY
Device: Kobo Aura H2O
|
Could someone post the link to the modify epub thread? I couldn't find it. Will this do the things I did in Calibre - getting line spacing and margins to work?
|
02-15-2015, 08:06 PM | #24 |
Grand Sorcerer
Posts: 12,162
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
Tags |
epub, kobo, line, margins, spacing |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
H2O; does it work in direct sunlight ?. | leftright | Kobo Reader | 4 | 12-04-2014 06:52 PM |
Did I read somewhere that hyperlinks don't work on Kobos? | maxbookworm | Kobo Reader | 31 | 04-03-2013 12:05 AM |
Color O'Reilly epubs doesn't work | joblack | Ectaco jetBook | 5 | 09-11-2012 11:25 AM |
Will my Sony DRM'ed Epubs work on iPad? | DougFNJ | Apple Devices | 33 | 05-27-2010 09:26 AM |
Will Sony Epubs only work on Sony? | DougFNJ | Sony Reader | 14 | 03-17-2010 03:04 PM |