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 Yesterday, 06:50 PM   #106
MrSilverstrike
Kobo Mod Maker
MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.
 
MrSilverstrike's Avatar
 
Posts: 166
Karma: 1233496
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by Apollyon202 View Post
There are some books that show dark text on a black background when dark mode is enabled. Not sure why, as other books are fine, even though they’re acquired from the same bookstore. I can send the file if you'd like to.
Ah. It's probably not quite black text (rather some gray -- why anyone would put that in an ebook beats me), and that's why this is happening. I'll fix it so this can't happen in the future, but you can probably fix this with Calibre or something in the meantime.
MrSilverstrike is offline   Reply With Quote
Old Yesterday, 07:49 PM   #107
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: 55,160
Karma: 182360680
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Apollyon202 View Post
There are some books that show dark text on a black background when dark mode is enabled. Not sure why, as other books are fine, even though they’re acquired from the same bookstore. I can send the file if you'd like to.
If you could post a scrambled version of one of the books here, it would help.

I have seen this happen on a couple of ebooks where instead of leaving the background color and color as defaults, they were forced. I've attached screenshots of a test epub in normal and dark mode on a Sage and Libra Colour. Notice the change in the treatment of set to black and set to white lines between the two devices.
Attached Thumbnails
Click image for larger version

Name:	screen_002.png
Views:	33
Size:	44.4 KB
ID:	226707   Click image for larger version

Name:	screen_001.png
Views:	35
Size:	36.3 KB
ID:	226708   Click image for larger version

Name:	screen_003.png
Views:	26
Size:	182.7 KB
ID:	226709   Click image for larger version

Name:	screen_004.png
Views:	25
Size:	175.7 KB
ID:	226710  
Attached Files
File Type: epub dark_test.epub (2.3 KB, 9 views)

Last edited by DNSB; Yesterday at 08:45 PM. Reason: Added sample images and test ePub
DNSB is offline   Reply With Quote
Old Today, 12:09 AM   #108
afakler
Junior Member
afakler began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2012
Device: Sony PRS-650
Setback

Unfortunately, there are 2 setbacks for me in beta3:

1. What happened to the .5 textsize? The slider goes directly from 12 to 13 to 14.
2. The text indent ist reversed. Instead of:
First line
Second line
Third line
it shows:
First line
Second line
Third line

Therefore my question. Is ist possible to downgrade to beta2?
afakler is offline   Reply With Quote
Old Today, 06:28 AM   #109
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: 85,341
Karma: 154365103
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 fogice View Post
My stress test book doesn't load, but it fails gracefully and pretty quickly (89 MB, 3,762,349 words, 306 images).
Do you have the book spit into 260KB (or less) HTML files? If the HTML is too large, that could be causing the fail.
JSWolf is offline   Reply With Quote
Old Today, 06:34 AM   #110
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: 85,341
Karma: 154365103
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 MrSilverstrike View Post
Right.

As it stands, the font override works the same as it does in Kobo's reader app: if you choose anything but the publisher fonts, you get that font everywhere. It's a blanket rule.

Otherwise, the rules are simple:

- serif fallback: Libron
- sans serif fallback: Legible Next
- mono fallback: Plex Mono

What you're asking for is essentially a way to customize these, right? I can add that for you.

Perhaps via a userstyle.css file. You would be able to put anything in there you'd like to apply to all books. Would that help?
Please delete all slab fonts you've used. They are really really ugly. Plus as they'll never ever be used, they are just bloat. Let us choose the default fonts for serif, sans-serif, and monospace.
JSWolf is offline   Reply With Quote
Old Today, 06:41 AM   #111
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: 85,341
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@afakler you need to put #2 in a code block. Otherwise your example doesn't look correct.
JSWolf is offline   Reply With Quote
Old Today, 07:03 AM   #112
MrSilverstrike
Kobo Mod Maker
MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.
 
MrSilverstrike's Avatar
 
Posts: 166
Karma: 1233496
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by afakler View Post
Unfortunately, there are 2 setbacks for me in beta3:

1. What happened to the .5 textsize? The slider goes directly from 12 to 13 to 14.
2. The text indent ist reversed. Instead of:
First line
Second line
Third line
it shows:
First line
Second line
Third line

Therefore my question. Is ist possible to downgrade to beta2?
Text indentation is likely a book thing? I haven't changed anything about that as far as I can tell.

I removed the .5 text size because the maximum is bigger now. I'll make sure to add .5 text sizes for anything < 20pt back, good point.
MrSilverstrike is offline   Reply With Quote
Old Today, 07:12 AM   #113
MrSilverstrike
Kobo Mod Maker
MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.
 
MrSilverstrike's Avatar
 
Posts: 166
Karma: 1233496
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by JSWolf View Post
Please delete all slab fonts you've used. They are really really ugly. Plus as they'll never ever be used, they are just bloat. Let us choose the default fonts for serif, sans-serif, and monospace.
Saying something like this is downright disrespectful to type designers across the world. You could've just said: "I would like to be able to set default fonts for serif, sans-serif and monospace" and that would've been more than enough.
MrSilverstrike is offline   Reply With Quote
Old Today, 07:57 AM   #114
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 1,368
Karma: 13544822
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Kobo Libra 2, Tolino Vision Color, reMarkable PaperPro
Quote:
Originally Posted by JSWolf View Post
Please delete all slab fonts you've used. They are really really ugly. Plus as they'll never ever be used, they are just bloat. Let us choose the default fonts for serif, sans-serif, and monospace.

Jon, please don’t try to speak for others. People have different tastes, that’s just rude and ignorant.
rantanplan is offline   Reply With Quote
Old Today, 10:19 AM   #115
Strether
Guru
Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.
 
Strether's Avatar
 
Posts: 774
Karma: 2825929
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1; iPad Air; iPhone 7; Kobo Libra; Kindle Oasis 3
Quote:
Originally Posted by MrSilverstrike View Post
Text indentation is likely a book thing? I haven't changed anything about that as far as I can tell.

I removed the .5 text size because the maximum is bigger now. I'll make sure to add .5 text sizes for anything < 20pt back, good point.
Thanks for that. I missed the .5 text size, too. Thanks for being so obliging.

Jim
Strether is offline   Reply With Quote
Old Today, 12:51 PM   #116
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,348
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@MrSilverstrike,

A bit more feedback about beta3. I've attached a test epub which I'll refer to in the following points.

1. The vanishing margin-top
See chapter "EPUB Serif Font" in the test epub.

Whichever CSS style rule is used for the first element in a chapter (often a heading tag but not always) appears to "lose" its margin-top setting, i.e. it looks as if it has been forced to zero.

The heading text is supposed to display with equal 2em vertical whitespace above and below, which it does in Nickel epub/kepub. As you will see, there is zero space above in Kobalt.

HTML:
Code:
<h2>EPUB Serif Font</h2>
CSS:
Code:
h2 {
  display: block;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 2em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 2em;
  text-align: center;
  text-indent: 0;
  hyphens: none;
  -webkit-hyphens: none;
}
2. Full page image using an <svg> tag
See chapter "SVG full page image..." in the test epub. This uses code like that often used by calibre epubs for the cover page, i.e. when there is a single image (e.g. a map) which you want to fill the whole screen (keeping aspect ratio, or not) whilst remaining centred both vertically and horizontally.

Nickel epub/kepub: The image is centred both horizontally and vertically,

Kobalt epub: Centred horizontally but no vertical whitespace above the image. I suppose this may be another manifestation of the problem in item 1?

3. Vertical centre
See chapter "Vertical centre" in the test epub. It may not be totally fair to call this a bug but I mention it only because it does work with Nickel kepub (not Nickel epub).

Nickel kepub: the 4-line verse is centred vertically (but not horizontally) on a new page.

Nickel epub: the verse appears at the top of a new page but not centred either horizontally or vertically.

Kobalt epub: if the font-size you're using is small enough (I've got it set at Libron 10pt on a Libra2) the verse appears at the end of the previous chapter, rather than starting a new page.

4. I was also going to mention the lack of font-size granularity but I see others have already done that.

5. Thank you for implementing the "wrap-around menu pages" in the TOC. Another place for consideration of doing similar is when displaying a dictionary definition. Depending on which dictionary you use the definition can go on for many pages.
Attached Files
File Type: epub Kobalt_epub_tests.epub (214.1 KB, 6 views)

Last edited by jackie_w; Today at 12:51 PM. Reason: forgot to attach the test epub
jackie_w is offline   Reply With Quote
Old Today, 02:59 PM   #117
MrSilverstrike
Kobo Mod Maker
MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.
 
MrSilverstrike's Avatar
 
Posts: 166
Karma: 1233496
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by jackie_w View Post
@MrSilverstrike,

A bit more feedback about beta3. I've attached a test epub which I'll refer to in the following points.

<snip>
1. That's on me. I added that rule because plenty of books push down their header which wastes space. I think this should be an option you can disable and it should only apply if the first element is a) a header or b) an image.

2. Yes, that could be. I'd need to check.

3. That looks to be a bug, yes.

4. That's already fixed in the upcoming beta 4.

5. That's true. I should have an agent go through all menus. It's possible I already fixed this earlier this week but I'll double check.

Thanks again for the precise feedback and also the epub. Helps a lot!
MrSilverstrike is offline   Reply With Quote
Old Today, 04:20 PM   #118
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,348
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by MrSilverstrike View Post
1. That's on me. I added that rule because plenty of books push down their header which wastes space. I think this should be an option you can disable and it should only apply if the first element is a) a header or b) an image.
Yes, I can see that many users want to reduce "wasted space". Others (like me) just want the book's CSS to be honoured as-is. The ability to switch on/off should keep everyone happy.

Quote:
Originally Posted by MrSilverstrike View Post
Thanks again for the precise feedback and also the epub. Helps a lot!
Happy to help. Having an extra option which is likely to work with fw 6.x is in everyone's interest. I don't have great faith that Kobo's new app (TENG?) will be a great step forward in the short term, although I hope I'm wrong about that!
jackie_w is offline   Reply With Quote
Old Today, 04:51 PM   #119
MrSilverstrike
Kobo Mod Maker
MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.MrSilverstrike ought to be getting tired of karma fortunes by now.
 
MrSilverstrike's Avatar
 
Posts: 166
Karma: 1233496
Join Date: Apr 2024
Location: Belgium
Device: Kobo Libra Color, Kobo Clara Color
Quote:
Originally Posted by jackie_w View Post
I don't have great faith that Kobo's new app (TENG?) will be a great step forward in the short term, although I hope I'm wrong about that!
I choose to believe they'll still sort out the issues... and in that case Kobalt just remains a nice in-the-middle option for people who don't need KOReader but also want something a little more powerful than TENG.

If they don't, well, Kobalt works fine on Kobo OS 6 and it can be the reader that actually works as intended.

It's also nice for folks who want something familiar when they migrate to some other platform, since the goal is to get Kobalt running everywhere. The dev build already runs on Android and on Mac, too. I have this Boox Go 7 and its built-in reader was... rough. Just the text rendering alone made me want to puke. You're supposed to be able to read on these things for hours!

I'm glad I made the right technological choices to make it all (relatively) easy to run everywhere.
MrSilverstrike is offline   Reply With Quote
Old Today, 05:21 PM   #120
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 15,846
Karma: 251102463
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by MrSilverstrike View Post
Yes, this is coming in an upcoming update (likely beta 4 or 5) where you will be able to customize the header and footer. I expect you to be able to choose where to place:

- Title of the book
- Author of the book
- Current page in chapter
- Current page in book
- Battery icon (with percentage)
- Battery icon (without percentage)
- Current time
- Estimated reading time left (chapter)
- Estimated reading time left (book)

You'll have 6 slots (top left, top middle, top right, bottom left, bottom middle and bottom right) and you will be able to decide how large you want the text to be. Estimates will be based on your average reading speed.
Would it be possible to have percentage read (of the book) as one of the options?
Sirtel is offline   Reply With Quote
Reply

Tags
koreader, nickelhook, reader


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding alternative readers to Kobo devices Ken Maltby Kobo Reader 251 11-28-2024 05:46 PM
good alternative reader app (epub) for note air? polossatik Onyx Boox 22 05-01-2022 09:18 AM
Android devices. Built in e-reader vs. e-reader app. Your preferences? norweger Android Devices 19 11-10-2019 11:12 AM
Reader not Appearing in Devices or App AniPendragon Kobo Reader 13 10-28-2015 09:38 PM
Reader App for Apple Devices Ken401 Sony Reader 7 11-07-2012 09:20 AM


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


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