11-07-2019, 08:41 AM | #16 | ||
Evangelist
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
Quote:
|
||
11-07-2019, 08:45 AM | #17 | |
Wizard
Posts: 2,841
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
|
Quote:
Change browser to reader, in this case since the Kobo doesn’t have a monospace font to use it doesn’t use one. Provide it one by either embedding and using publishers defaults, or load a monospace font of your choice and patch the firmware to use it. Boom monospace displays correctly meaning this isn’t a bug it’s Kobo not choosing to license a monospace font. No standard mentioned or quoted thus far requires them to do so. |
|
Advert | |
|
11-07-2019, 10:19 AM | #18 |
the rook, bossing Never.
Posts: 11,154
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Which is weird as Kobo uses Linux and Linux does have several "free" monospace fonts.
|
11-07-2019, 01:45 PM | #19 | |
Bibliophagist
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
You do realize that the subset of CSS used for epub is inherited from that used by web browsers with a few minor additions? As for Unicode, epubs are required to use either UTF-8 (a variable width character encoding capable of encoding all 1,112,064 valid code points in Unicode using one to four 8-bit bytes) or UTF-16. And, again to quote from the Epub specifications: 3.4 Fonts EPUB 3 does not require that Reading Systems come with any particular set of built-in system fonts. As occurs in Web contexts, Users in a particular locale might have installed fonts that omit characters required for other locales, and Reading Systems might utilize intrinsic fonts or font engines that do not utilize operating system installed fonts. As a result, the text content of an EPUB Publication might not natively render as intended on all Reading Systems. To address this problem, EPUB 3 supports the embedding of fonts to facilitate the rendering of text content, and this practice is recommended in order to ensure content is rendered as intended. Support for embedded fonts also ensures that characters and glyphs unique to an EPUB Publication can be embedded for proper display. Basically, we seem to agree that having a monospace font is desirable. Where we differ is that you want to call the lack of a monospace font a bug and are not willing to look at the workarounds that will correct the issue. ’Nuff said. Last edited by DNSB; 11-07-2019 at 01:50 PM. |
|
11-07-2019, 02:29 PM | #20 |
Fanatic
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
|
And they're all terrible. I find Cousine to be less terrible than most and that's what I use in my xterms but I have yet to find a monospaced typeface that doesn't look garbage on small devices.
|
Advert | |
|
11-12-2019, 01:55 PM | #21 | |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Quote:
Attachment 174724 Attachment 174725 I see that monospace is badly rendered; now it is formatting's fault or it is device's fault. Tertium non datur. I understand that the formatting has no problems at all. So the problem is into the device. Last edited by Sam Sahara; 11-12-2019 at 01:58 PM. |
|
11-12-2019, 02:12 PM | #22 | |
Fanatic
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
|
Quote:
HTML and CSS are text markup languages. They tell the renderer what to make individual characters (text) look like. Which, in fact, your examples show happening correctly. They don't (and can't) tell the renderer what the whole page looks like. For this you need a page description language like PDF. |
|
11-12-2019, 02:28 PM | #23 | |
Connoisseur
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
|
Quote:
|
|
11-12-2019, 02:36 PM | #24 | |
Fanatic
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
|
Quote:
Answer: HTML and CSS cannot do precise page layout. They just can't. You need to use a page description language like PDF. |
|
11-12-2019, 07:21 PM | #25 | ||
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:
The alternative is to change to a format that allows precise positioning, such as PDF. Or embed an image that does what you want. Possibly an SVG image would be the way to go. Quote:
|
||
11-12-2019, 10:53 PM | #26 | ||
Bibliophagist
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
As for how many Kobo employees? If any Kobo employees are reading these forums, they are not doing so as Kobo employees. Contrary to what some people seem to think, this is not an official or even unofficial, Kobo support forum. Last edited by DNSB; 11-12-2019 at 11:04 PM. Reason: Corrected formatting and fat-fingered typos |
||
11-14-2019, 03:05 PM | #27 |
Evangelist
Posts: 496
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
|
Just curious: Does anyone know what the incorrect path that the Adobe renderer is expecting to find CourierStd on the Kobo actually is? I'd like to see if flashing a copy there would work, just for fun.
|
11-14-2019, 03:13 PM | #28 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
res:///fonts/CourierStd.otf res:///fonts/CourierStd-Bold.otf res:///fonts/CourierStd-Oblique.otf res:///fonts/CourierStd-BoldOblique.otf Last edited by jackie_w; 11-14-2019 at 03:17 PM. Reason: source |
|
11-14-2019, 03:33 PM | #29 |
Evangelist
Posts: 496
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
|
Ah, I see. I'm guessing that the Kobo doesn't know how to resolve the res:// part to point to either /mnt/onboard/fonts or /usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts then. Bummer. Unless it's a relative path to where the Adobe executable lies. Or if it follows the same convention as ADE, then its preferred fonts directory might be at the same location and level where it accesses its Hyphen Dictionaries. Does anyone know if that's still /usr/local/Kobo/hyphenDicts? If so, then might be able to get away with sticking CourierStd and any other standard Adobe Reader fonts in /usr/local/Kobo/fonts. There's also /usr/share/hyphen, but they're all empty files (unless they're meant to be sym links; can't tell on Windows). So /usr/share/fonts might be another candidate.
Last edited by rtiangha; 11-14-2019 at 04:19 PM. |
11-14-2019, 03:53 PM | #30 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
res:///fonts/normal/Avenir res:///fonts/bold/Avenir res:///fonts/italic/Avenir res:///fonts/bolditalic/Avenir I'm loathe to volunteer much more in case I divert you from having a new and better "good idea" no-one else has tried yet You probably know this already, but there is already a kobopatch which fixes the incorrect monospace stuff but, because it's hacking, not everyone wants to use it. A solution which could be achieved just by copying files to the "right place" may be more acceptable to more people. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible bug: "Aborted" rendering in Web Browser with text boxes | arspr | Kobo Reader | 0 | 09-27-2014 08:21 AM |
Wrong rendering of captions in "Le Devoir" news feed | PoP | Recipes | 2 | 01-29-2011 02:29 PM |
Feedback requested on ePub ("My Antonia") rendering in various Reading Software | Jon Noring | Reading and Management | 2 | 11-12-2009 07:19 AM |