![]() |
#1 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
page_styles1.css after conversion
Hi!
I recently noticed that all my epubs converted using calibre 3.0 (64bit version) have a secondary page_style.css sheet named "page_styles1.css". In the editor it shows: Styles: page_styles.css page_styles1.css stylesheet.css Sometimes the second .css file is an exact duplicate, sometimes it shows different font faces. Even with unconverted epubs that show one .css file, I wind up with 3. I wasn't getting this on my previous computer with an older version of Calibre, when I migrated to the new laptop I imported all of my settings from the previous version. Is this a new feature? Have I turned something off or on that should be on or off? Thanks for any information. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,438
Karma: 48895676
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Not happening here.
Do you have a (additional) 'User stylesheet" (AKA 'Extra CSS)? Is it possible that the original CSS was not declared properly, thus Calibre trying to add a CSS found the name in use and broke the tie? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
I'm not sure.. I didn't before, where can I find it to check? I have honesty been using this program for 5 years and I have no idea where everything is.
|
![]() |
![]() |
![]() |
#4 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Just checked Calibre, under "preferences>Common Options>Styling" I have fonts and colours checked off. But I've always had those checked off.
I have three rules under "preferences>Common Options>Transform styles" which may be a new thing I added after moving computers. Last edited by VirgoGirl; 08-05-2017 at 02:48 PM. |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,438
Karma: 48895676
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() CSS work by the "last defined" style. Kovid or one of the other major developers can confirm that the second one overrides the first (and still leaving it intact) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Hmm... It seems to be something that's triggered by the original file. If I make my own from Word, I don't get it. If I reconvert from a retail epub, it sometimes happens, sometimes not.
I just tried it with various original epubs I have on my computer, sometimes it shows up, sometimes not, there is no consistent trigger. |
![]() |
![]() |
![]() |
#7 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Apologies for all the replies.
It appears to be something triggered by embedded fonts. If the original file doesn't have embedded fonts, it just gives me the two usual .css files. If there *are* embedded fonts, it spawns the two page_styles.css files. I have "remove embedded fonts" turned on in my preferences, no fonts show up in the stylesheet.css file. It never happened on the previous version I had, it's the newer 3.0 64bit version. It's not life altering, it's just annoying. Under "Preferences>Common Options>Look & Feel>Transform Styles" I have (now) 4 rules: 1) If line-height equals any value, remove it 2) If text-align equals justify, remove it 3) If Font-family equals any value, remove it 4) if font-size is less than 1, change it to 1em (my eyes are bad) I hope this will kill the problem. UPDATE: Nope, it didn't. ![]() Last edited by VirgoGirl; 08-05-2017 at 05:22 PM. |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,438
Karma: 48895676
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Not as far as I know, based on what my settings were on my previous version.
"preferences>common options>look & feel>styling>filter style information>select what style you want completely removed", I have both fonts and colours checked. And come to think of it, it doesn't remove the colours either. So, unless it's being overwritten somewhere else that's new (as in a recent addition to the program since my previous version (32 bit and 2.56 I think ), I can't see where it would be forcing it to add the fonts to an extra .css sheet. |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69,728
Karma: 116730707
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why would you turn of full justify? You can use the hyphenation plugin to hyphenate your KF8 eBooks so you don't get gaps.
The other issue is that sometimes these font sizes smaller than 1em are simulated smallcaps that are now no longer correct. |
![]() |
![]() |
![]() |
#11 | |
"Why is it doing *that*?"
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
|
Quote:
I change all font sizes to at least 1em because my vision is not what is used to be, and I find that at least, 1em is comfortable, even for super and subscript. Everyone has their own preferences for reading, which is what makes ereaders so useful. |
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 69,728
Karma: 116730707
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Given that you your vision needs at least a 1em font size, I suggest you get a Kobo Aura H2O Edition 2 or a Kobo Aura One for the larger screen size and the many more choices of font sizes.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub to azw3 conversion and Extra CSS | Section8 | Conversion | 8 | 02-06-2015 11:55 PM |
css code ignored in conversion | barrytatt | Conversion | 2 | 12-26-2014 06:41 AM |
CSS conversion from a plugin | jgoguen | Development | 1 | 02-12-2013 11:11 PM |
html to epub conversion with extra CSS | oilizer | Conversion | 4 | 10-23-2011 08:51 AM |
Additional CSS for conversion | LARdT | Calibre | 6 | 02-18-2010 07:52 PM |