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 Today, 01:57 PM   #31
Falkor
Zealot
Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!Falkor rocks like Gibraltar!
 
Posts: 114
Karma: 100000
Join Date: Dec 2024
Device: Tolino Shine 5
It's getting usable very slowly..
Falkor is offline   Reply With Quote
Old Today, 05:23 PM   #32
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,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Falkor View Post
It doesn't do small caps, but the error handling seems to be better than that in v4, which I think is a big advantage. I don't think I ever managed to make it ignore my stylesheet.
If your stylesheet is correctly structured, RMSDK will disregard most unknown items. If there is an error, then you can find the entire stylesheet being tossed.

For instance, the first paraindent class will be accepted but do nothing if the version of RMSDK is not new enough. The second paraindent class with the missing semicolons will be an error.

Code:
.paraindent {
text-indent: 1.5rem;
line-height: 1.05rem;
}

.paraindent {
text-indent: 1.5em
line-height: 1.05em
}
DNSB is online now   Reply With Quote
Advert
Old Today, 06:02 PM   #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: 83,796
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But rem is just stupid since it does nothing different then em.
JSWolf is offline   Reply With Quote
Old Today, 06:29 PM   #34
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,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Really? Assume the base font size is set to 1em. When using em, sizes compound. Something like a header with the size set to 1.5em and a subelement set to 1.25em, the subelement comes up at 1.875em whereas using rem for both, the subelement would show up at 1.25em. For my uses, rem makes the whole layout more predictable.

In one book, where the nested elements ended up with text that looked as if it had been designed by someone who has partaken freely of alcoholic libations, converting most of the em to rem made the problems go away. And no, the book was not created in Vellum.

The first attachment uses em, the second used rem.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-06-19 153540.png
Views:	3
Size:	14.6 KB
ID:	223951   Click image for larger version

Name:	Screenshot 2026-06-19 153642.png
Views:	3
Size:	10.4 KB
ID:	223952  

Last edited by DNSB; Today at 06:37 PM.
DNSB is online now   Reply With Quote
Old Today, 06:36 PM   #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: 83,796
Karma: 153649587
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But if you want backwards comparability, rem is out.
JSWolf is offline   Reply With Quote
Advert
Old Today, 06:52 PM   #36
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,512
Karma: 180945220
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Oddly, when I tested the code on my Kobo Sage, the rem seemed to be treated as an em by RMSDK whereas the Kobo renderer showed similar to what I see in Sigil's preview. Perhaps a bit too experimentalist approach for some people tastes but it works for me.

Image #1 is from Sigil's preview, image #2 is from RMSDK on a Sage, image 3# is from Kobo's renderer on a Sage.

Code:
.goniff {
text-align: center;
font-size: 1.5em;
margin-top: 5em;
font-weight: bold;
}

.itty {
font-size: 1.25em;
}

.goniffr {
text-align: center;
font-size: 1.5rem;
margin-top: 2rem;
font-weight: bold;
}

.ittyr {
font-size: 1.25rem;
}
Code:
  <h3 class="goniff">This is the first line<br/><span class="itty">and this is the second line</span></h3>

  <h3 class="goniffr">This is the first line<br/><span class="ittyr">and this is the second line</span></h3>
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-06-19 153939.png
Views:	2
Size:	26.6 KB
ID:	223953   Click image for larger version

Name:	screen_001.png
Views:	2
Size:	37.9 KB
ID:	223954   Click image for larger version

Name:	screen_002.png
Views:	2
Size:	46.9 KB
ID:	223955  
DNSB is online now   Reply With Quote
Reply

Tags
em dash, font, font display, kobo clara


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying different fonts in EPUB book? NoobReader KOReader 1 12-01-2022 08:47 AM
Paperwhite fonts adding random dashes/hyphens Siavahda Amazon Kindle 0 12-15-2018 01:09 PM
Creating spaces around hyphens (or dashes). wallflowerface Conversion 4 01-04-2014 06:42 PM
Dashed Dashes -- Befuddled by EN and EM Dashes (Apple Pages to EPUB) planewryter Conversion 1 07-22-2012 09:52 PM


All times are GMT -4. The time now is 07:26 PM.


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