Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2022, 05:57 PM   #1
BiliBug
Connoisseur
BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.
 
Posts: 96
Karma: 374269
Join Date: Nov 2012
Location: Stockton, NJ
Device: Kobo Sage (Formerly KKB, PW1, PW3, KV, OA3)
KOReader: ePub vs kepub, technically speaking

The differences of ePub vs. kepub format on a stock Kobo has been debated ad nauseam, and is not what I'm asking here...

Is there a technical superiority between the formats when it comes to KOReader? Does KOReader just strip out and ignore the added spans from the kepub formatted files? Are there any specific KOReader related technical benefits for either format?

I had been converting all books to kepub via Calibre, but now I'm wondering if I'm wasting my time, since KOReader is significantly preferable to the native rendering engines (ePub or kepub) for my taste. Is there a reason to not just leave everything in ePub format if I have no intention of using the stock reader software?

Thanks.

Last edited by BiliBug; 09-01-2022 at 05:59 PM. Reason: grammar
BiliBug is offline   Reply With Quote
Old 09-01-2022, 07:19 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
I tried out KOReader quite recently (for the first time in many years). FWIW, I couldn't see any point in transferring any books in kepub format unless I also wanted to retain the option to switch between KOReader and stock reading apps on a whim.

As an aside, in the end I decided not to move to KOReader for now. I was very impressed by its great handling of CSS font-variant:small-caps; but put off by its apparent inability to handle font-family:sans-serif;
jackie_w is offline   Reply With Quote
Old 09-01-2022, 07:31 PM   #3
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,608
Karma: 50290822
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by BiliBug View Post
, since KOReader is significantly preferable to the native rendering engines (ePub or kepub) for my taste. Is there a reason to not just leave everything in ePub format if I have no intention of using the stock reader software?

Thanks.

My view is the same as yours, and since moving to KOReader 18 months ago, I have stopped converting to kepub. There is no point. When I first started using KOReader, I seemed to notice a few small quirks in its display of kepubs. I can't even remember what they were, and they may well have been addressed by now, but they were enough to convince me not to bother with kepubs. And that was BEFORE discovering the wonder of gestures - now my most compelling reason not to bother with the stock reader
Uncle Robin is online now   Reply With Quote
Old 09-01-2022, 07:39 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yup, waste of time, the extra spans do nothing but waste CPU cycles on both ends .
NiLuJe is offline   Reply With Quote
Old 09-01-2022, 07:46 PM   #5
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@jackie_w: For curiosity's sake, what was the use-case behind the sans-serif thing?

(Unless it was as simple as, err, well, making sure stuff renders with a system-preferred sans-serif font?).

I vaguely recall that this hasn't been done so far because it hasn't bothered anybody overmuch, and it would essentially require more UI & code because everything is terrible in the world of font rendering .

(IIRC all the details, this was easier to do for monospace because we actually *know* when a font is monospace ).

Last edited by NiLuJe; 09-01-2022 at 07:50 PM.
NiLuJe is offline   Reply With Quote
Old 09-01-2022, 10:00 PM   #6
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by NiLuJe View Post
@jackie_w: For curiosity's sake, what was the use-case behind the sans-serif thing?

(Unless it was as simple as, err, well, making sure stuff renders with a system-preferred sans-serif font?).

I vaguely recall that this hasn't been done so far because it hasn't bothered anybody overmuch, and it would essentially require more UI & code because everything is terrible in the world of font rendering .

(IIRC all the details, this was easier to do for monospace because we actually *know* when a font is monospace ).
To add a bit of context, 66% of the 500+ books currently on my main reader contain at least one of the following in the CSS file. :
  • font-family:sans-serif;
  • font-family:monospace;
  • font-variant:small-caps;
(... and yes, I know it's weird that I can quote this percentage )

To answer your specific question. In addition to chapter headings, sans-serif is often used in books trying to simulate passages where characters are communicating via text message, email, social media, etc.

It doesn't seem unreasonable to me that every single reading app should be able to handle those 3 basic, generic style rules. By 'handling' I mean that text using any of them should at least 'stand out' from the main body text and from each other. Additionally all 4 sub-families (Regular, Italic, Bold, BoldItalic) should always display correctly (i.e. no fake italics).

In reality very few apps can handle all 3 (** see note). If you do find one that does and then try to enable its 'select custom font for main body text' option it's almost certain to apply a wrecking ball to those which did work when 'publisher default' (or some such name) was selected.

I'm much less picky about which individual sans-serif/monospace fonts are used than I am about which serif font is used for main body font. Although it would be nice if every app allowed you to specify all 3 rather than just the last one.

In the absence of a full-blown user option in KOReader would it be possible to just assign 'Noto Sans' as a default generic sans-serif font. It should suffice for English and other western European languages but I'm not sure about Cyrillic, Vietnamese etc.

** Note: With enough effort I've always, so far, been able to make my various devices/apps handle all 3 by a combo of calibre driver hacking (on-the-fly CSS tweaking during send-to-device) plus patching on Kobos.


@BiliBug, Sorry, I didn't mean to derail your thread.
jackie_w is offline   Reply With Quote
Old 09-01-2022, 11:32 PM   #7
BiliBug
Connoisseur
BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.BiliBug ought to be getting tired of karma fortunes by now.
 
Posts: 96
Karma: 374269
Join Date: Nov 2012
Location: Stockton, NJ
Device: Kobo Sage (Formerly KKB, PW1, PW3, KV, OA3)
Quote:
Originally Posted by jackie_w View Post


@BiliBug, Sorry, I didn't mean to derail your thread.

No apology necessary. I appreciate the extra insight.

My sincere thanks to those who have responded thus far.
BiliBug is offline   Reply With Quote
Old 09-02-2022, 12:57 PM   #8
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by jackie_w View Post
In the absence of a full-blown user option in KOReader would it be possible to just assign 'Noto Sans' as a default generic sans-serif font. It should suffice for English and other western European languages but I'm not sure about Cyrillic, Vietnamese etc.
That sounds sensible, although I'm not entirely familiar with the codepaths involved, but I'll forward that to @poire-z .

Thanks, as always, for the detailed answer .
NiLuJe is offline   Reply With Quote
Old 11-01-2022, 08:50 PM   #9
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by NiLuJe View Post
That sounds sensible, although I'm not entirely familiar with the codepaths involved, but I'll forward that to @poire-z .

Thanks, as always, for the detailed answer .
Thanks for being a catalyst to get this KOR issue fixed. I'm very happy with the new 'Font families' feature.

Now, if only you could get CSS pseudo classes (:first-letter, :first-line) supported, too ...
jackie_w is offline   Reply With Quote
Old 11-01-2022, 10:55 PM   #10
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
That unfortunately seems... less likely .

(at a quick glance, the most recent discussion about it happened in https://github.com/koreader/koreader/issues/9142)
NiLuJe is offline   Reply With Quote
Old 11-02-2022, 09:44 AM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,246
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by NiLuJe View Post
That unfortunately seems... less likely .

(at a quick glance, the most recent discussion about it happened in https://github.com/koreader/koreader/issues/9142)
Thanks for the link. Oh well, I won't get my hopes up.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura ONE send kepub via wifi from calibre to koreader EddieTheHead Kobo Reader 5 09-03-2018 09:18 AM
Creating epub/kepub books (docx→epub/kepub via MS Word→Calibre) SJC-Caron ePub 18 04-21-2016 11:10 AM
Kepub format and Koreader gontofe Kobo Reader 4 08-20-2014 09:10 AM
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! the_m Kobo Reader 4 01-24-2013 10:01 PM
Speaking of ePub... surrealmind Fictionwise eBookwise 4 03-22-2010 08:43 PM


All times are GMT -4. The time now is 05:18 PM.


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