10-22-2017, 01:24 PM | #1 |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Removing font size style
In some books the font size is bigger or smaller, despite the font size in the conf file or if I set the font size with Kobo Utilities.
I find the cause in the this line in every html part, for example: Code:
<html xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.111rem;"> EDIT: I just tried to convert the book to epub and it did remove the style, is there a better way to remove the style? Last edited by oren64; 10-22-2017 at 01:39 PM. |
10-22-2017, 01:33 PM | #2 | |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Just search for style="font-size:1.111rem;" (with a space in front) and replace it with nothing. That will remove that style. |
|
10-22-2017, 01:38 PM | #3 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
I think I've seen this in azw3 books bought from Amazon. The only way I know to fix it is with Search/Replace. Probably not the slick ingenious solution you were looking for
I use the calibre Editor which, I seem to remember, flags all these "rem" font-sizes as errors in Check Book. Last edited by jackie_w; 10-22-2017 at 01:40 PM. |
10-22-2017, 01:49 PM | #4 | |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I want consistency and sometimes the only way to gt it is to edit the CSS. I do set the CSS styles for the copyright to small as that works and I don't really read it. |
|
10-22-2017, 02:03 PM | #5 |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
I search the my calibre library with plugin Quality Check the line "style="font-size", and I have more than 50 books with font-size style.
I think I will convert them to epub and resend them. Last edited by oren64; 10-22-2017 at 02:08 PM. Reason: edit 50 books |
10-22-2017, 02:13 PM | #6 |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If they are already ePub, don't convert. Just load into the editor, search/replace, save and move on to the next book.
|
10-22-2017, 02:19 PM | #7 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
Last edited by oren64; 10-22-2017 at 03:18 PM. |
|
10-22-2017, 02:36 PM | #8 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
10-22-2017, 03:51 PM | #9 |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
10-22-2017, 07:43 PM | #10 |
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
|
@oren64: I think removing that would be a good candidate for function in the Modify ePub plugin. Make the suggestion in the plugins thread. Maybe someone will take it on to fix it.
And no, I am not volunteering |
10-23-2017, 01:42 AM | #11 | |
Bibliophagist
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I recently purchased a 4 book series and every $%^&* ebook in the set has a different stylesheet with widows/orphans from 1 to 3, base font size from 0.75em to 1.3em, images defined in % and pixels, margins and padding that vary widely, etc. It didn't take long to modify them to give a consistent look but considering that the 4 dead tree books share a consistent formatting, is it too much to expect that of the ebooks? |
|
10-23-2017, 04:13 AM | #12 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Thanks all, in the end I used JSWolf method, because in some books style="font-size was used to increase or decrease specific text like TOC.
Quote:
Also I add request for Multi-Books Editor plugin, it could help in this matter and others Any volunteers Last edited by oren64; 10-23-2017 at 05:16 AM. |
|
10-23-2017, 05:59 AM | #13 | |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I see no reason to not use the default font size for the body text. There's also no reason to put in a line height instead of using the default. Margins can be another issue. With most Readers these days able to set margins, there's no need to set such. And then there are the ones where they try to emulate the pBook with embedded fonts that are too light for eInk. There's all sorts of things the publishers do wrong. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dictionary font size and style | ams | KOReader | 5 | 11-09-2019 02:54 AM |
Removing the font size info from EPUB | Buhaj47 | Conversion | 16 | 01-05-2015 10:17 PM |
Compare the font style and size from the source pdf with the destination epub files | kalees | ePub | 0 | 01-22-2014 06:05 AM |
How to change font size and font style? | butterbescotch | Sigil | 20 | 09-06-2013 08:22 PM |
Odd Sigil behavior = <span style="font-size: 0.9em;">??? | knadles | Sigil | 18 | 07-23-2013 04:59 PM |