![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2010
Device: BeBook Mini, BeBook One
|
font sizes ?
Hi,
I've been searching through this forum and did not find an answer to my question on fonts. I have en BeBook Mini and BeBook One. Both have the same problems with epub's. i have the option to set font size. (from 1 tot 8 , S to XXXL) This works well on some books, on other books i get a problem when switching from M to L step 3 to 4) Then the font is increased with 2 or 3 steps. It looks like some epub's just don't have a font what is able to display on all steps correctly and the reader just skips this font size. It looks like it is mainly on books having: \styles\stylesheet01.css \styles\stylesheet02.css Books having just a stylesheet.css on the main folder mostly scale all steps correctly. Does any of you ever saw this before ? thanks in advanced |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
ePubs use opentype fonts that will scale to any arbitrary size.
The majority of ePubs don't have an embedded font and so use the default font provided by the reader. As long as the ePub is well-formed, the actual name of the css file has absolutely no impact on the rendering of the book. In summary - this looks like a bug in the BeBook firmware, but it's impossible to say for certain without a lot more information. It's certainly not a bug with the ePub files. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2010
Device: BeBook Mini, BeBook One
|
Hm, if it is not a bug in the epubs, but some do scale correctly, how can i found out what is causing the scaling problem ? I mean, the firmware is the same, only the epub is different. So it has to be something in the epub what is causing the firmware to behave like this.... i think.
|
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Do you have some sample ePUBs you can show? One that scales correctly, one that doesn't?
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2010
Device: BeBook Mini, BeBook One
|
Quote:
One with good scaling. One with bad scaling. The bad scaling one is copyrighted, so i took only the first 2 pages of the epub. What happens is when pressing the magnify key it stays the same size, and after 2 presses (m to l) it switches to large, there is no upscaling by each keypress. And so on to even larger fonts. There is no nice linear upscaling. While the good one scales nicely with each keypress a little bit bigger. Hope this samples help ! |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The "bad" file's CSS is a complete mess. It has hundreds of @font-face (mostly unused) and styles with unsupported properties, not to mention unnecesary <span>s, etc. There are also font names written with " instead of a quote mark, which I suspect is wrong. However, the main thing that could affect font sizes, is the fact that font sizes are hard-coded in the CSS.
I've cropped the styles and created the attached file, it has two "chapters". The first one is just as it was, so I guess it will scale incorrectly. For the second, I've modified the styles, removing all font references and explicit font sizes, my bet is it will scale correctly. Of course, coming from Word the HTML-like code is utter crap (not your fault, though, but you'd be better copying the unformatted text in Sigil and formatting it there). |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
It looks like they took unfiltered html output from MS Word and just pasted it into Sigil and saved. A textbook case of how not to create an epub. Fixing this would require a lot of work.
Jellby's absolutely right, hard-coding the font size using points (font-size: 9.5pt; etc) will prevent it from scaling, but it's strange that the BeBook does scale the text, only it misses a few steps. |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jul 2010
Device: BeBook Mini, BeBook One
|
Jellby, thanx a million.
You are right about the fontsizes. Your 2de chapter scales wonderfull. The first chapter had the old scaling problem. I am going to try and fix the original book with your created css as a guidance. |
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,948
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there any program available to take Word HTML and remove all the garbage?
|
![]() |
![]() |
![]() |
#10 |
Nameless Being
|
Does Word not have a save filitered HTML option under "save as"? This would, at least, be a start.
|
![]() |
![]() |
#11 | |
本の虫
![]() ![]() ![]() ![]() Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire · iPad, iPod
|
Quote:
Ted |
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,948
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,948
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Dreamweaver has a command to specifically clean-up Word html.
|
![]() |
![]() |
![]() |
#15 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
But I don't think there's anything capable of cleaning up useless <span>s, or the proliferation of almost identical classes (one with 9pt indent, one with 10pt indent, etc.)
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font Sizes | Roya | Sigil | 7 | 06-18-2010 09:28 AM |
Font sizes | DaleDe | Sigil | 8 | 03-13-2010 05:52 PM |
Font Sizes | brewt | Amazon Kindle | 9 | 06-12-2009 03:03 PM |
Font Sizes on DX | wallcraft | Amazon Kindle | 1 | 05-06-2009 11:08 PM |
Only five font sizes in K2? | KlondikeGeoff | Amazon Kindle | 6 | 02-25-2009 10:21 PM |