Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2019, 09:41 AM   #16
dmapr
Evangelist
dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.dmapr holds these truths to be self-evident.
 
Posts: 446
Karma: 126922
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, 09: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: 1,605
Karma: 6020076
Join Date: Aug 2014
Device: Kobo Forma
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, 11:19 AM   #18
FrustratedReader
Ancient Sceptic
FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.FrustratedReader ought to be getting tired of karma fortunes by now.
 
FrustratedReader's Avatar
 
Posts: 963
Karma: 4900112
Join Date: Jun 2017
Device: Both Kinds: epub based makes and Kindle
Which is weird as Kobo uses Linux and Linux does have several "free" monospace fonts.
FrustratedReader is offline   Reply With Quote
Old 11-07-2019, 02: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: 6,532
Karma: 29828061
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, 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 02:50 PM.
DNSB is offline   Reply With Quote
Old 11-07-2019, 03:29 PM   #20
ratinox
Addict
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: 391
Karma: 3596054
Join Date: Oct 2016
Device: Forma, iPad Mini 5
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, 02:55 PM   #21
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 70
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 02:58 PM.
Sam Sahara is offline   Reply With Quote
Old 11-12-2019, 03:12 PM   #22
ratinox
Addict
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: 391
Karma: 3596054
Join Date: Oct 2016
Device: Forma, iPad Mini 5
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, 03:28 PM   #23
Sam Sahara
Connoisseur
Sam Sahara doesn't litterSam Sahara doesn't litterSam Sahara doesn't litter
 
Posts: 70
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, 03:36 PM   #24
ratinox
Addict
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: 391
Karma: 3596054
Join Date: Oct 2016
Device: Forma, iPad Mini 5
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, 08: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: 17,927
Karma: 26783068
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 online now   Reply With Quote
Old 11-12-2019, 11: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: 6,532
Karma: 29828061
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Aura One, Aura H2O, Aura HD, Nexus 7 HD, iPad Air, 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-13-2019 at 12:04 AM. Reason: Corrected formatting and fat-fingered typos
DNSB is offline   Reply With Quote
Old 11-14-2019, 04:05 PM   #27
rtiangha
Groupie
rtiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and grace
 
Posts: 171
Karma: 43973
Join Date: Jul 2016
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 online now   Reply With Quote
Old 11-14-2019, 04: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: 5,173
Karma: 12132252
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
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 04:17 PM. Reason: source
jackie_w is offline   Reply With Quote
Old 11-14-2019, 04:33 PM   #29
rtiangha
Groupie
rtiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and gracertiangha herds cats with both ease and grace
 
Posts: 171
Karma: 43973
Join Date: Jul 2016
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 05:19 PM.
rtiangha is online now   Reply With Quote
Old 11-14-2019, 04: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: 5,173
Karma: 12132252
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:21 AM
Wrong rendering of captions in "Le Devoir" news feed PoP Recipes 2 01-29-2011 03:29 PM
Feedback requested on ePub ("My Antonia") rendering in various Reading Software Jon Noring Reading and Management 2 11-12-2009 08:19 AM


All times are GMT -4. The time now is 12:46 AM.


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