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-05-2019, 05:20 AM   #1
PenguinCEO
Enthusiast
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 29
Karma: 47100
Join Date: Sep 2018
Device: a lot
"monospace" rendering

I have a KA1

An ebook of mine has the following html code:

Code:
<div class="example">
<pre class="example">    --- ---      --- ---      --- ---
   |   |   |--&gt; |   |   |--&gt; |   |   |--&gt; nil
    --- ---      --- ---      --- ---
     |            |            |
     |            |            |
      --&gt; rose     --&gt; violet   --&gt; buttercup
</pre></div>
with the following css code

Code:
div.example {
  margin-left: 3.2em;
  font-family: monospace;
}
pre.example {
  font-family: monospace;
}
The book was made in epub format with the calibre editor and converted in kepub with calibre.

The above code is rendered exactly by the calibre viewer, as you can see in the images

Click image for larger version

Name:	img03.png
Views:	110
Size:	97.2 KB
ID:	174726

Click image for larger version

Name:	img04.png
Views:	83
Size:	76.0 KB
ID:	174727

but is poorly rendered by the aura one: as you can see the "monospace" attribute is lost

Click image for larger version

Name:	img01.jpg
Views:	159
Size:	61.1 KB
ID:	174724

Click image for larger version

Name:	img02.jpg
Views:	103
Size:	52.8 KB
ID:	174725

Is there something to do to solve this problem?

Last edited by PenguinCEO; 11-05-2019 at 08:06 AM.
PenguinCEO is offline   Reply With Quote
Old 11-05-2019, 07:53 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,079
Karma: 50862848
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
What you need to do is patch the firmware to fix a bug where monospace doesn't work. By doing this, monospace will work.
JSWolf is offline   Reply With Quote
Advert
Old 11-05-2019, 10:12 AM   #3
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,146
Karma: 12120398
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by PenguinCEO View Post
Is there something to do to solve this problem?
The answer is 'yes' but whether the effort involved in the solution will be acceptable to you is another matter. The solution is different depending on whether you are going to read the book as a kepub or a standard epub on your Kobo.

You mentioned kepub above so steps 1-3 in this post should give you some pointers.

Step 2 involves using the kobopatch system. If this is more than you want to have to deal with then you can probably get away with just steps 1 & 3, but only if you're prepared to read your book with the [Aa] font setting set to 'Publisher Default'.
jackie_w is offline   Reply With Quote
Old 11-05-2019, 10:29 AM   #4
PenguinCEO
Enthusiast
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 29
Karma: 47100
Join Date: Sep 2018
Device: a lot
Quote:
Originally Posted by jackie_w View Post
The answer is 'yes' but whether the effort involved in the solution will be acceptable to you is another matter. The solution is different depending on whether you are going to read the book as a kepub or a standard epub on your Kobo.

You mentioned kepub above so steps 1-3 in this post should give you some pointers.

Step 2 involves using the kobopatch system. If this is more than you want to have to deal with then you can probably get away with just steps 1 & 3, but only if you're prepared to read your book with the [Aa] font setting set to 'Publisher Default'.
The problem is not the effort. The problem is that

Code:
font-family: monospace;
is standard CSS, and if kobo doesn't recognize that directive it has to be considered a bug. Sideloading external fonts and patching up the firmware is not a solution as far as setting a standard directive into an epub means to make a not-portable ebook.
PenguinCEO is offline   Reply With Quote
Old 11-05-2019, 10:37 AM   #5
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: 918
Karma: 4681012
Join Date: Jun 2017
Device: Both Kinds: epub based makes and Kindle
epub format monospace seems ok on apps, Sony, Nook, Binatone and Kobo. Only Kobo uses kepub?
FrustratedReader is offline   Reply With Quote
Advert
Old 11-05-2019, 10:51 AM   #6
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,146
Karma: 12120398
Join Date: Sep 2009
Location: UK
Device: PRS-350, Kobo: Aura6", H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by PenguinCEO View Post
The problem is not the effort. The problem is that

Code:
font-family: monospace;
is standard CSS, and if kobo doesn't recognize that directive it has to be considered a bug. Sideloading external fonts and patching up the firmware is not a solution as far as setting a standard directive into an epub means to make a not-portable ebook.
My mistake. I thought you were looking for a kepub solution rather than wanting to debate what constitutes a "bug".

For whatever reason, Kobo have decided not to include a built-in monospace font and workarounds are the only solution currently available for kepubs. If you really want to limit yourself to 'standards' then embed your monospace font and restrict yourself to using 'Publisher Default'.

I'm sorry I wasted my time trying to help you.
jackie_w is offline   Reply With Quote
Old 11-05-2019, 11:18 AM   #7
PenguinCEO
Enthusiast
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 29
Karma: 47100
Join Date: Sep 2018
Device: a lot
Quote:
Originally Posted by jackie_w View Post
My mistake ...
You didn't understand what I said. So, yes, you did a mistake.

Last edited by PenguinCEO; 11-05-2019 at 11:23 AM.
PenguinCEO is offline   Reply With Quote
Old 11-05-2019, 11:24 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,079
Karma: 50862848
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Why is it that Kobo hasn't fixed the monospace bug in RMSDK?
JSWolf is offline   Reply With Quote
Old 11-05-2019, 11:39 AM   #9
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,599
Karma: 6020076
Join Date: Aug 2014
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
Why is it that Kobo hasn't fixed the monospace bug in RMSDK?
I'd wager it's the same reason other things people here have complained about are still the way they are

Not enough people complain to Kobo about the issue.
MGlitch is offline   Reply With Quote
Old 11-06-2019, 04:33 PM   #10
djazz
Enthusiast
djazz began at the beginning.
 
djazz's Avatar
 
Posts: 40
Karma: 10
Join Date: Jun 2016
Location: Sweden
Device: Kobo Glo HD, Kobo Aura One LE
Kobo doesn't have a monospace font. Embed one in the ebook.
djazz is offline   Reply With Quote
Old 11-06-2019, 11:48 PM   #11
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,435
Karma: 29819011
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
The problem is not the effort. The problem is that

Code:
font-family: monospace;
is standard CSS, and if kobo doesn't recognize that directive it has to be considered a bug. Sideloading external fonts and patching up the firmware is not a solution as far as setting a standard directive into an epub means to make a not-portable ebook.
Hmm... looking at the xhtml code tag: "The code tag is designed to display computer code in a special font, usually in a mono spaced font style. However, the exact appearance will be browser dependent. You may still need to use various HTML tags, such as br and p, to create a presentation and appearance to suit your needs."

To quote: "reading systems are not required to provide the fonts necessary to display every unicode character, though they are required to display at least a placeholder for characters that cannot be displayed fully" (Open Publication Structure 2.0.1).

So are we confusing "usually" with "must"? Or requiring a reading system to support all fonts? Neither of these is required so where does the "bug" come in.

If you are truly worred about sideloading or patching, then embed the monospaced font in your ebook. Though I fail to see how patching the software on your Kobo makes a non-portable ebook -- you haven't modified the ebook.
DNSB is offline   Reply With Quote
Old 11-06-2019, 11:50 PM   #12
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,435
Karma: 29819011
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 JSWolf View Post
Why is it that Kobo hasn't fixed the monospace bug in RMSDK?
What monospace bug in RMSDK? RMSDK will happily display a monospaced font if one is available on the device.
DNSB is offline   Reply With Quote
Old 11-07-2019, 06:46 AM   #13
PenguinCEO
Enthusiast
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 29
Karma: 47100
Join Date: Sep 2018
Device: a lot
Quote:
Originally Posted by DNSB View Post
However, the exact appearance will be browser dependent.
Where browsers and unicode come out? The object of this thread is completely different.

Last edited by PenguinCEO; 11-07-2019 at 06:51 AM.
PenguinCEO is offline   Reply With Quote
Old 11-07-2019, 06:47 AM   #14
PenguinCEO
Enthusiast
PenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipediaPenguinCEO knows more than wikipedia
 
Posts: 29
Karma: 47100
Join Date: Sep 2018
Device: a lot
.....

Last edited by PenguinCEO; 11-07-2019 at 06:50 AM.
PenguinCEO is offline   Reply With Quote
Old 11-07-2019, 06:55 AM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 54,079
Karma: 50862848
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
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.
Every other version RMSDK I've seen works with a monospace font. That includes ADE for Windows, OS X, Sony Readers, and nook. Kobo is the only one with monospace not working.
JSWolf 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:37 PM.


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