Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2024, 09: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: 76,532
Karma: 136565488
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 offline   Reply With Quote
Old 08-13-2024, 09: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: 76,532
Karma: 136565488
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 offline   Reply With Quote
Old 08-13-2024, 10:09 AM   #48
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 21
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; 08-13-2024 at 10:15 AM.
m_pluto is offline   Reply With Quote
Old 08-13-2024, 10: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,228
Karma: 19001261
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 08-13-2024, 10: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: 76,532
Karma: 136565488
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 offline   Reply With Quote
Old 08-13-2024, 10: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: 76,532
Karma: 136565488
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 offline   Reply With Quote
Old 08-14-2024, 12:39 AM   #52
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
Quote:
Originally Posted by JSWolf View Post
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.
The whole point I started this thread was to ask if there was a way to get either epubs or kepubs to get both pseudo elements and page breaks to both work on one of them, as I've only been able to get each of them to do only one of the two.

I've now learned that no epbus don't do pseudo elements on kobos, but someone was kind enough to give me some CSS that should help get my kepubs to start showing page breaks so I won't have to manually split up HTML files. Haven't had a chance:time to try it out yet, but I'm optimistic and will report back when I have the chance!

Finally I've honestly never noticed any difference between any of my books that are on my kobo that are epubs vs epubs so ����*♀️. So long as they look like how I want them to, I'm happy.
m_pluto is offline   Reply With Quote
Old 08-14-2024, 06:38 AM   #53
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: 76,532
Karma: 136565488
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
The whole point I started this thread was to ask if there was a way to get either epubs or kepubs to get both pseudo elements and page breaks to both work on one of them, as I've only been able to get each of them to do only one of the two.

I've now learned that no epbus don't do pseudo elements on kobos, but someone was kind enough to give me some CSS that should help get my kepubs to start showing page breaks so I won't have to manually split up HTML files. Haven't had a chance:time to try it out yet, but I'm optimistic and will report back when I have the chance!

Finally I've honestly never noticed any difference between any of my books that are on my kobo that are epubs vs epubs so ����*♀️. So long as they look like how I want them to, I'm happy.
Manually splitting the files in the calibre editor is a matter of go to where you want the break in the preview. Click the icon to the left of the refresh icon. The move the mouse point into the preview window. When the line is where you want the break, click and the file will split at that point.

If you want to read ePub, you'll need to use spans instead of pseudo elements. If you want to read KePub, you can use pseudo elements. But don't read those eBooks as ePub as the pseudo elements will not work. If you are unsure of where you want to read the book use spans and you'll be able to read as ePub or KePub.
JSWolf is offline   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 06:47 AM
To cite ePubs: Do you recommend an ID attribute for every single element? ibu ePub 12 08-08-2013 06:03 AM
Default line-height in epubs Derek R ePub 2 02-13-2012 12:23 PM
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) plague006 Kobo Reader 14 12-03-2011 12:32 AM
Command Line Batch Adding of Epubs nkormanik Calibre 6 10-19-2010 09:04 AM


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


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