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 07-06-2026, 07:58 AM   #31
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: 84,063
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Then you don't need to embed. Just enjoy reading.
JSWolf is online now   Reply With Quote
Old 07-06-2026, 08:25 AM   #32
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
Quote:
Originally Posted by JSWolf View Post
Then you don't need to embed. Just enjoy reading.
But it's not working? Like I said. On the Kobo, this ebook I've been trying to wrangle does not present in monospace.

YOURS does. So I think the Kobo must have registered the fonts correctly. Which would mean the issue is with this specific ebook, not the Kobo.

But the ebook looks perfect in Calibre Editor and Viewer. So I don't know what the problem is.
Siavahda is offline   Reply With Quote
Advert
Old 07-06-2026, 10:10 AM   #33
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: 84,063
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Please post the relevent HTML code and the CSS so we can see what the problem is.
JSWolf is online now   Reply With Quote
Old 07-06-2026, 10:46 AM   #34
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
It hasn't changed from before, it's still

.blog {
font-family: Courier;
}

The monospaced text is marked with div tags, so
<div class="blog">
<p class="calibre7">texttexttext</p>
</div>

the css for calibre7 is simply
.calibre7 {
display: block;
margin: 1em 0;
}
the 'body' css is
.calibre {
display: block;
font-size: 1em;
line-height: 1;
padding-left: 0;
padding-right: 0;
text-align: justify;
margin: 0 5pt;
}

I don't know what else would be relevant to show you?
Siavahda is offline   Reply With Quote
Old 07-06-2026, 10:52 AM   #35
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: 84,063
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You have to to change .blog to...
Code:
.blog {
  font-family: monospace;
}
JSWolf is online now   Reply With Quote
Advert
Old 07-06-2026, 11:09 AM   #36
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
That didn't work either.

Attaching a scrambled version for others to check. I'm sure it's something super obvious and I'm going to be so embarrassed I missed it...
Attached Files
File Type: epub Constellation Games - Leonard Richardson_scrambled.epub (552.1 KB, 15 views)
Siavahda is offline   Reply With Quote
Old Yesterday, 03:41 PM   #37
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: 52,924
Karma: 180988376
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I downloaded the scrambled file and it is a total mess. Epubcheck was very unhappy with it and even calibre's ebook-editor check was not happy.

Anyhow, I did some regex to correct most of the errors and embedded a monospace font set. The monospace now appears on when the book is sent to my Kobo as an epub. If sent as an .kepub.epub, I need to select Publisher default as the font and then it works. The file I generated is not pretty and I did very little cleanup after my experimenting.

The majority of the errors were when a blockquote was followed by a <b>. Which is legitimate for most web browsers but the ePub spec wants to see a block level element there.

A quick list of block level elements:
Spoiler:
<address>
<article>
<aside>
<blockquote>
<canvas>
<dd>
<div>
<dl>
<dt>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>-<h6>
<header>
<hr>
<li>
<main>
<nav>
<noscript>
<ol>
<p>
<pre>
<section>
<table>
<tfoot>
<ul>
<video>
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	19
Size:	207.3 KB
ID:	224317   Click image for larger version

Name:	screen_002.png
Views:	16
Size:	199.6 KB
ID:	224318  
Attached Files
File Type: epub Constellation Games - Leonard Richardson.epub (699.0 KB, 7 views)
File Type: txt constellation_epubcheck.txt (64.6 KB, 6 views)

Last edited by DNSB; Yesterday at 03:53 PM. Reason: Added the epubcheck output and a list of block level elements
DNSB is online now   Reply With Quote
Old Yesterday, 04:05 PM   #38
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: 84,063
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I loaded the version that @DNSB fixed up, removed the embedded fonts and left just font-family: monospace; in .blog and I do see the monospace font.

@DNSB is correct that this ePub needs A LOT of work to clean it up as it's a very big mess with a lot of errors. That's why it won't work to display a monospace font. I tried it as you posted it and no monospace font at all. Too many errors.
JSWolf is online now   Reply With Quote
Old Yesterday, 04:58 PM   #39
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,374
Karma: 248000001
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by DNSB View Post
If sent as an .kepub.epub, I need to select Publisher default as the font and then it works.
There's a patch for kepubs to display embedded fonts like epub does, without needing to select Publisher Default.
Sirtel is offline   Reply With Quote
Old Yesterday, 07:18 PM   #40
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: 52,924
Karma: 180988376
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Sirtel View Post
There's a patch for kepubs to display embedded fonts like epub does, without needing to select Publisher Default.
For various reasons, I am not enthused about adding patches that may hide issues that people who don't patch will see.
DNSB is online now   Reply With Quote
Old Today, 02:41 AM   #41
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
Quote:
Originally Posted by DNSB View Post
I downloaded the scrambled file and it is a total mess. Epubcheck was very unhappy with it and even calibre's ebook-editor check was not happy.

Anyhow, I did some regex to correct most of the errors and embedded a monospace font set. The monospace now appears on when the book is sent to my Kobo as an epub. If sent as an .kepub.epub, I need to select Publisher default as the font and then it works. The file I generated is not pretty and I did very little cleanup after my experimenting.

The majority of the errors were when a blockquote was followed by a <b>. Which is legitimate for most web browsers but the ePub spec wants to see a block level element there.

A quick list of block level elements:
Spoiler:
<address>
<article>
<aside>
<blockquote>
<canvas>
<dd>
<div>
<dl>
<dt>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>-<h6>
<header>
<hr>
<li>
<main>
<nav>
<noscript>
<ol>
<p>
<pre>
<section>
<table>
<tfoot>
<ul>
<video>
Thank you (and to everyone else!) for looking over it! I had no idea this was a mess; it always displayed perfectly on my Kindle. And the ebook was retail, so I really wouldn't have expected it to be a disaster. I did run the bug check from the Calibre Editor, but that wasn't flagging issues for me. I guess I must acquire and learn to use epubcheck!
Siavahda is offline   Reply With Quote
Old Today, 03:39 AM   #42
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
Quote:
Originally Posted by DNSB View Post
I downloaded the scrambled file and it is a total mess. Epubcheck was very unhappy with it and even calibre's ebook-editor check was not happy.

Anyhow, I did some regex to correct most of the errors and embedded a monospace font set. The monospace now appears on when the book is sent to my Kobo as an epub. If sent as an .kepub.epub, I need to select Publisher default as the font and then it works. The file I generated is not pretty and I did very little cleanup after my experimenting.

The majority of the errors were when a blockquote was followed by a <b>. Which is legitimate for most web browsers but the ePub spec wants to see a block level element there.

A quick list of block level elements:
Spoiler:
<address>
<article>
<aside>
<blockquote>
<canvas>
<dd>
<div>
<dl>
<dt>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>-<h6>
<header>
<hr>
<li>
<main>
<nav>
<noscript>
<ol>
<p>
<pre>
<section>
<table>
<tfoot>
<ul>
<video>
Also a separate, IMMENSE thank you because I was able to replicate what you did with the scrambled epub, the css/html fixes I mean. AND THE BOOK FINALLY DISPLAYS PROPERLY! So. Much, extreme thanks
Siavahda is offline   Reply With Quote
Reply

Tags
css, kobo, small caps, smallcaps


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How widely supported are smallcaps? Land_Outcast ePub 105 06-16-2024 12:46 AM
Reestablishing smallcaps roger64 Workshop 8 05-27-2017 01:49 PM
smallcaps how to? JSWolf ePub 20 06-02-2016 02:40 PM
Kobo bookstore on Kobo Touch not showing prices (Canada) RobertJSawyer Kobo Reader 13 09-23-2012 08:30 PM
Smallcaps in Kindle cscotts Kindle Formats 5 01-26-2011 09:52 AM


All times are GMT -4. The time now is 11:34 AM.


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