Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2019, 08:41 AM   #16
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by DNSB View Post
What monospace bug in RMSDK? RMSDK will happily display a monospaced font if one is available on the device.
I think the bug is mentioned in the patch notes and it's not that the font is missing, it's that placing the font there without a patch will not work. I haven't tested that in the latest firmware though.

Quote:
Kobo devices don't come with any monospace fonts. If the book's stylesheet specifies font-family:monospace; then the ePub reader will try to use the "Courier Std" font, but even if that font were installed it wouldn't work because the pathnames used by the ePub reader to request the font are wrong.
dmapr is offline   Reply With Quote
Old 11-07-2019, 08:45 AM   #17
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,841
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by PenguinCEO View Post
Where browsers and unicode come out? The object of this thread is completely different.


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.
MGlitch is offline   Reply With Quote
Advert
Old 11-07-2019, 10:19 AM   #18
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
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.
Quoth is offline   Reply With Quote
Old 11-07-2019, 01:45 PM   #19
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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:
Originally Posted by PenguinCEO View Post
Where browsers and unicode come out? The object of this thread is completely different.
If I had used renderer for browser would you have been happier?

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.
DNSB is offline   Reply With Quote
Old 11-07-2019, 02:29 PM   #20
ratinox
Fanatic
ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.
 
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
Quote:
Originally Posted by FrustratedReader View Post
Which is weird as Kobo uses Linux and Linux does have several "free" monospace fonts.
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.
ratinox is offline   Reply With Quote
Advert
Old 11-12-2019, 01:55 PM   #21
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by DNSB View Post
... You do realize that the subset of CSS used for epub is inherited from that used by web browsers with a few minor additions? ...
I don't understand why so much theory for a so simple fact:

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.
Sam Sahara is offline   Reply With Quote
Old 11-12-2019, 02:12 PM   #22
ratinox
Fanatic
ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.
 
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
Quote:
Originally Posted by Sam Sahara View Post
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.
None of the above because it's not a rendering problem at all.

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.
ratinox is offline   Reply With Quote
Old 11-12-2019, 02:28 PM   #23
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 79
Karma: 228
Join Date: Aug 2014
Device: lambda k21
Quote:
Originally Posted by ratinox View Post
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.
What? What does that have to do with the thread matter? How many Kobo employees are there on this forum?
Sam Sahara is offline   Reply With Quote
Old 11-12-2019, 02:36 PM   #24
ratinox
Fanatic
ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.ratinox ought to be getting tired of karma fortunes by now.
 
Posts: 531
Karma: 5060708
Join Date: Oct 2016
Device: Forma, iPad Air 4
Quote:
Originally Posted by Sam Sahara View Post
What? What does that have to do with the thread matter? How many Kobo employees are there on this forum?
Question: "Is there something to do to solve this problem?"

Answer: HTML and CSS cannot do precise page layout. They just can't. You need to use a page description language like PDF.
ratinox is offline   Reply With Quote
Old 11-12-2019, 07:21 PM   #25
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Sam Sahara View Post
What? What does that have to do with the thread matter?
As far as I can tell, your code is rendered perfectly. Within the bounds of the capability of the device and what you supplied. The device does not include a monospace font and there is nothing in any standards that state that it must. If you have a need for a monospace font in a book, you need to supply the font. And set it up correctly in the book.

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:
How many Kobo employees are there on this forum?
This is not an official support forum for Kobo. If there are any Kobo employees here, they are not here as Kobo employees.
davidfor is offline   Reply With Quote
Old 11-12-2019, 10:53 PM   #26
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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:
Originally Posted by Sam Sahara View Post
I don't understand why so much theory for a so simple fact:

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.
  1. If you look at your copies of those images, you will notice that they are not using a monospaced font. Otherwise 'violet' would look like 'violet' -- pay attention to the extra space around the 'i' and 'l' and the even spacing between the letter center lines.
  2. There is no requirement in either the epub2 or epub3 specs to have a monospaced font available.
  3. Would it be nice to have a monospaced font? Yes. Is it a bug not to have a monospaced font? No.

Quote:
Originally Posted by Sam Sahara View Post
What? What does that have to do with the thread matter? How many Kobo employees are there on this forum?
Very much to do the post you linked to. He is attempted to align text without using a monospace font. He rejected any suggestions/workarounds with whinging that he paid "all good money" and it's a bug that his Kobo does not have a monospaced font.

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
DNSB is offline   Reply With Quote
Old 11-14-2019, 03:05 PM   #27
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
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.
rtiangha is offline   Reply With Quote
Old 11-14-2019, 03:13 PM   #28
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by rtiangha View Post
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.
From librmsdk.so.1.0.0:

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
jackie_w is offline   Reply With Quote
Old 11-14-2019, 03:33 PM   #29
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 496
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by jackie_w View Post
From librmsdk.so.1.0.0:

res:///fonts/CourierStd.otf
res:///fonts/CourierStd-Bold.otf
res:///fonts/CourierStd-Oblique.otf
res:///fonts/CourierStd-BoldOblique.otf
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.
rtiangha is offline   Reply With Quote
Old 11-14-2019, 03:53 PM   #30
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by rtiangha View Post
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. Time to start poking around, I guess.
I don't think it works quite like you may think. For example, the same links, which do work correctly, which define how font-family:sans-serif should be rendered (standard epubs) are:
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.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:50 AM.


MobileRead.com is a privately owned, operated and funded community.