Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 08:15 AM   #46
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: 75,438
Karma: 134254362
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 m_pluto View Post
A little late, but I just saw this and I'll give it a go! Thank you!
Are you doing pseudo elements for yourself or for something for sale? If it's for sale, forget the pseudo elements and use spans. If it's for you, go for it.
JSWolf is online now   Reply With Quote
Old Today, 08:18 AM   #47
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: 75,438
Karma: 134254362
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 RbnJrg View Post
On epub3 first-line pseudo elements is honored. On Kobo for Android and iOS, works for both, epub and kepub. But I don't know if the rendering engine of your Kobo Sage have been updated with the last version.
You have it wrong about Kobo. Kobo uses an older version of RMSDK and it pseudo elements DO NOT WORK. For KePub, yes. For ePub, no.

So if it's a book for sale, use spans and not pseudo elements.
JSWolf is online now   Reply With Quote
Advert
Old Today, 09:09 AM   #48
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
Quote:
Originally Posted by JSWolf View Post
Are you doing pseudo elements for yourself or for something for sale? If it's for sale, forget the pseudo elements and use spans. If it's for you, go for it.
It's just for my own consumption, I'm rather particular about how I like my books to be formatted on my e-reader. I also prefer the pseudo element for first-line because it dynamically adapts to the first line. I did use <span> for a while early on, but I really didn't like how it looked to have the first 2-5 words defined and the rest of the line looking different. Plus it was a lot more work to go in with <span> for the first paragraph of every chapter & first paragraph after every ornamental/section break.

Though speaking of books for commercial sale, I've actually seen a fair number of them that use the pseudo element for first line, so *shrug*.

And I have it set up so that all my epubs are sent to my kobo as kepubs, so it's not a problem for me to get them to render. I figure I'll stick with using kepubs as it's less work to use a pseudo element than to manually break up html files in the editor to get a page break.

Last edited by m_pluto; Today at 09:15 AM.
m_pluto is offline   Reply With Quote
Old Today, 09:13 AM   #49
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,143
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by JSWolf View Post
You have it wrong about Kobo. Kobo uses an older version of RMSDK and it pseudo elements DO NOT WORK. For KePub, yes. For ePub, no.

So if it's a book for sale, use spans and not pseudo elements.
Pseudo elements have been around for a VERY long time...possibly longer than e-books... I would be VERY surprised, and disappointed, if Kobo didn't support such a very basic selector. Are you sure it isn't supported at all, or maybe you missed an update or something???
Turtle91 is offline   Reply With Quote
Old Today, 09:48 AM   #50
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: 75,438
Karma: 134254362
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 Turtle91 View Post
Pseudo elements have been around for a VERY long time...possibly longer than e-books... I would be VERY surprised, and disappointed, if Kobo didn't support such a very basic selector. Are you sure it isn't supported at all, or maybe you missed an update or something???
It's not supported for ePub but is for KePub. There are two different renderers. RMSDK used for ePub is old and doesn't work with pseudo elements. But the renderer for KePub does work with pseudo elements.
JSWolf is online now   Reply With Quote
Advert
Old Today, 09:49 AM   #51
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: 75,438
Karma: 134254362
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 m_pluto View Post
It's just for my own consumption, I'm rather particular about how I like my books to be formatted on my e-reader. I also prefer the pseudo element for first-line because it dynamically adapts to the first line. I did use <span> for a while early on, but I really didn't like how it looked to have the first 2-5 words defined and the rest of the line looking different. Plus it was a lot more work to go in with <span> for the first paragraph of every chapter & first paragraph after every ornamental/section break.

Though speaking of books for commercial sale, I've actually seen a fair number of them that use the pseudo element for first line, so *shrug*.

And I have it set up so that all my epubs are sent to my kobo as kepubs, so it's not a problem for me to get them to render. I figure I'll stick with using kepubs as it's less work to use a pseudo element than to manually break up html files in the editor to get a page break.
And if you were reading any eBooks with a pseudo element on your Kobo in ePub, it would not work. You have to read KePub for them to work.
JSWolf is online now   Reply With Quote
Reply

Tags
epub, kepub, kobo, kobo sage, pseudo-elements


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mangled em-dash as a CSS pseudo-element sujato Viewer 2 08-02-2022 05:47 AM
To cite ePubs: Do you recommend an ID attribute for every single element? ibu ePub 12 08-08-2013 05:03 AM
Default line-height in epubs Derek R ePub 2 02-13-2012 11:23 AM
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-02-2011 11:32 PM
Command Line Batch Adding of Epubs nkormanik Calibre 6 10-19-2010 08:04 AM


All times are GMT -4. The time now is 10:17 AM.


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