11-05-2019, 04:20 AM | #1 |
Member Retired
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"> --- --- --- --- --- --- | | |--> | | |--> | | |--> nil --- --- --- --- --- --- | | | | | | --> rose --> violet --> buttercup </pre></div> Code:
div.example { margin-left: 3.2em; font-family: monospace; } pre.example { font-family: monospace; } The above code is rendered exactly by the calibre viewer, as you can see in the images but is poorly rendered by the aura one: as you can see the "monospace" attribute is lost Is there something to do to solve this problem? Last edited by PenguinCEO; 11-05-2019 at 07:06 AM. |
11-05-2019, 06:53 AM | #2 |
Resident Curmudgeon
Posts: 75,850
Karma: 134368292
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.
|
Advert | |
|
11-05-2019, 09:12 AM | #3 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
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'. |
11-05-2019, 09:29 AM | #4 | |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
Quote:
Code:
font-family: monospace; |
|
11-05-2019, 09:37 AM | #5 |
the rook, bossing Never.
Posts: 12,249
Karma: 89531599
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?
|
Advert | |
|
11-05-2019, 09:51 AM | #6 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
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. |
|
11-05-2019, 10:18 AM | #7 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
You didn't understand what I said. So, yes, you did a mistake.
Last edited by PenguinCEO; 11-05-2019 at 10:23 AM. |
11-05-2019, 10:24 AM | #8 |
Resident Curmudgeon
Posts: 75,850
Karma: 134368292
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?
|
11-05-2019, 10:39 AM | #9 |
Wizard
Posts: 2,850
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
|
|
11-06-2019, 03:33 PM | #10 |
Enthusiast
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.
|
11-06-2019, 10:48 PM | #11 | |
Bibliophagist
Posts: 39,361
Karma: 153516540
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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. |
|
11-06-2019, 10:50 PM | #12 |
Bibliophagist
Posts: 39,361
Karma: 153516540
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
11-07-2019, 05:46 AM | #13 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
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. |
11-07-2019, 05:47 AM | #14 |
Member Retired
Posts: 61
Karma: 47166
Join Date: Sep 2018
Device: a lot
|
.....
Last edited by PenguinCEO; 11-07-2019 at 05:50 AM. |
11-07-2019, 05:55 AM | #15 |
Resident Curmudgeon
Posts: 75,850
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
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.
|
|
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 |