|
|
#31 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#32 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
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. |
|
|
|
| Advert | |
|
|
|
|
#33 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#34 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
|
|
|
|
|
#35 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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;
}
|
|
|
|
| Advert | |
|
|
|
|
#36 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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... |
|
|
|
|
|
#37 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Last edited by DNSB; Yesterday at 03:53 PM. Reason: Added the epubcheck output and a list of block level elements |
|
|
|
|
|
#38 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#39 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,374
Karma: 248000001
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
|
|
|
|
|
|
#40 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 52,924
Karma: 180988376
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
|
|
|
|
|
#41 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Quote:
|
|
|
|
|
|
|
#42 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| css, kobo, small caps, smallcaps |
|
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 |