![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
![]()
I have included a scrambled epub that has a lot of stuff cut out mainly all but the first part of the book, and the images contained therein b/c the uploader refuses to work for me for anything more than ~150KiB.
Anyway, I used the kobo patches and kept the font size for the h20(i believe that's the one) at 12pt but when you select that size then you get double rendering as seen in the screenshot. This _only_ happens in some epubs but not all so I can't track down why this is happening and it is driving me insane. P.S. If someone knows a way to extract the CSS rules that kobo uses I'd like to know how to replace coolreader as it's epub reader doesn't render books properly(at least how every other e-reader i've used have done it). |
![]() |
![]() |
![]() |
#2 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
The kepub renderer overrides a little more. For example, it ignores widows and orphans settings and uses 1 for both. But, in general, it uses the styles defined in the book. |
|||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
The Adobe ePub reader determines the number of columns to use based on the width of the screen in em units, i.e. the smaller the font, the wider the screen is when measured in em, and so the more columns used.
Changing the body font sizes in the CSS stylesheet and then rescaling all the other font sizes in proportion might affect the calculations, so if the publisher has done this (many do unfortunately) then the final size of the text on the screen where the number of columns change could be different for each book. However you can quite easily change the underlying threshold font sizes that are used to select the number of columns to use by editing the Adobe XPGT stylesheet (usually called page-template.xpgt if the book has one, or add your own if it doesn't.) You might also be able to use the XPGT stylesheet to force a particular number of columns to be used, I haven't looked into that. Attached is a sample ePub that increases the font size thresholds so that I can get two or three columns on my Glo as the font size is reduced. I don't know much about the format of the XPGT stylesheet, I'm just going by what I have seen some publishers do. Adjust the values "55em", "40em", "25em" to set the width that the screen has to be before more columns are used. page-template.xpgt Spoiler:
Last edited by GeoffR; 08-22-2018 at 06:58 AM. Reason: Added contents of page-template.xpgt for those who don't want to dig around in the ePub |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Attached is another example ePub that uses two different XPGT stylesheets, one for the cover page that forces single-column layout, and another for the chapters that forces two-column layout, regardless of font size.
There is probably a much simpler way to do this, but I don't know enough about the format of the XPGT stylesheet, I'm just adapting from examples I have seen publishers use. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 2072578
Join Date: Jan 2017
Device: Kobo Aura H20
|
that seems to be the issue, I'm _sure_ that the books that do the stupid double column thing are all using the adobe xpgt stylesheet thing. Comparing 3 books that don't have that but still change font size relatively and one that does the xpgt file only that one does the stupid double column thing. Also when it does that the font-size drastically changes they actually go to the font-size that I would've imagined a 13pt font on a screen of the high dpi that the h20 has would look like.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,659
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Multi column was invented to simplify mechanical typesetting and for wider pages (newspapers, magazines). I find it horrible even in books (the Bible is the only common book I can think of set in more than one column and single column versions exist now).
Why do you want it on eBooks? Or is a publisher foisting it on you? Unless the eReader is about 8" minimum and 250dpi or better I can't see it working well. The cheaper 6" ereaders are not big enough and often only about 167 dpi to 200 dpi (?), like fax resolution. |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
epub, h20, rendering issues |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Certain font characters not rendering in the correct font | omskillet | Kindle Formats | 14 | 11-29-2013 03:12 PM |
Problem changing font size using font size key | Waylander | Conversion | 0 | 10-02-2013 03:30 PM |
FONT SIZE vs PAGES | baker | Kobo Reader | 2 | 06-04-2010 10:30 PM |
Bug in MobiPocket font rendering? | jpt | Astak EZReader | 2 | 05-26-2010 08:22 PM |
Font rendering with FW 2.0 | Jellby | Bookeen | 1 | 01-03-2010 12:47 PM |