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, 04:20 AM   #1
PenguinCEO
Member Retired
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: 61
Karma: 47166
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:	253
Size:	97.2 KB
ID:	174726

Click image for larger version

Name:	img04.png
Views:	218
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:	601
Size:	61.1 KB
ID:	174724

Click image for larger version

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

Is there something to do to solve this problem?

Last edited by PenguinCEO; 11-05-2019 at 07:06 AM.
PenguinCEO is offline   Reply With Quote
Old 11-05-2019, 06: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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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, 09: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: 6,196
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
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, 09:29 AM   #4
PenguinCEO
Member Retired
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: 61
Karma: 47166
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, 09:37 AM   #5
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,011
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
epub format monospace seems ok on apps, Sony, Nook, Binatone and Kobo. Only Kobo uses kepub?
Quoth is offline   Reply With Quote
Advert
Old 11-05-2019, 09: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: 6,196
Karma: 16228558
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
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, 10:18 AM   #7
PenguinCEO
Member Retired
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: 61
Karma: 47166
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 10:23 AM.
PenguinCEO is offline   Reply With Quote
Old 11-05-2019, 10: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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Why is it that Kobo hasn't fixed the monospace bug in RMSDK?
JSWolf is offline   Reply With Quote
Old 11-05-2019, 10: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: 2,840
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
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, 03:33 PM   #10
djazz
Enthusiast
djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.djazz is far, far better than a slap in the face with a wet fish.
 
djazz's Avatar
 
Posts: 45
Karma: 93476
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, 10: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: 35,219
Karma: 145277352
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
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, 10: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: 35,219
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, 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, 05:46 AM   #13
PenguinCEO
Member Retired
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: 61
Karma: 47166
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 05:51 AM.
PenguinCEO is offline   Reply With Quote
Old 11-07-2019, 05:47 AM   #14
PenguinCEO
Member Retired
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: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
.....

Last edited by PenguinCEO; 11-07-2019 at 05:50 AM.
PenguinCEO is offline   Reply With Quote
Old 11-07-2019, 05: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: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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 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 06:40 AM.


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