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 01-30-2022, 10:04 PM   #16
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,247
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Antioch View Post
Thank you. I've read the thread and, yes, it seems like I also notice and am annoyed by the div induced spacing issue that is caused by justification + optimizeLegibility. That thread is several years old, however -- has a workaround been developed in recent years?
I'm still using the same workaround (i.e. changing kepub kobospans algorithm) I mentioned towards the end of that thread. It's not guaranteed to reduce occurrences of "weird letter/word-spacing" to zero but I now notice very few at my preferred font-size. Everyone's definition of "weird spacing" varies, of course.

There doesn't appear to be any interest in doing something similar in the official KoboTouchExtended plugin.
jackie_w is offline   Reply With Quote
Old 01-30-2022, 11:07 PM   #17
Antioch
Connoisseur
Antioch began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Jun 2011
Device: Nook STR, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by sherman View Post
I'm afraid not. RMSDK page numbering is basically based on a word/character count, and there's no way to change it.

I'm one of the people who prefer that. It means I know exactly how long a book is, no matter the font size, margins, line spacing etc.

As for the unify font size patch, there's no way to get it pixel perfect. My goal was to get it as close as possible, but the multipliers/divisors I have to work with can only be set in 0.25 increments. Also, as NiLuJe said, kebup and epubs use completely different font renderers.
Thank you for the information about the calculations. Also, that is a good point regarding the RMSDK page numbering which I hadn't thought of. I've been using RMSDK exclusively on my Kobo for 8 years now, so I'm used to it, but always notice the irregularity w.r.t. page turns. I wonder if I should continue to ignore it and use ePubs in the future...

Speaking of RMSDK and not noticing things: does it hyphenate by default? I can't say that I remember encountering hyphenations, or they've been rare enough that they don't stand out (compared to the kobo hyphenations with the default dictionary, which feel overly aggressive).

Quote:
Originally Posted by sherman View Post
Just something I've remembered with regards to margins in epub files.

Until recently, it was quite common for commercial epubs to contain RMSDK specific .xpgt stylesheets, which usually contained margin settings. Most other software - including Calibre - does not read these stylesheets. But Kobo ereaders do.
Interesting curiosity, but what is the implication?

Quote:
Originally Posted by jackie_w View Post
I'm still using the same workaround (i.e. changing kepub kobospans algorithm) I mentioned towards the end of that thread. It's not guaranteed to reduce occurrences of "weird letter/word-spacing" to zero but I now notice very few at my preferred font-size. Everyone's definition of "weird spacing" varies, of course.

There doesn't appear to be any interest in doing something similar in the official KoboTouchExtended plugin.
I'd be interested in trying your algorithm out. Is it implemented in kepubify as an option? Or a fork of KotoTouchExtended on github somewhere?
Antioch is offline   Reply With Quote
Advert
Old 01-30-2022, 11:22 PM   #18
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by Antioch View Post
Interesting curiosity, but what is the implication?
Was responding to your comment on uneven margins, and that you couldn't see anything in CSS that could cause it. The .xpgt file is a common culprit on older epub files.

Quote:
Originally Posted by Antioch View Post
Speaking of RMSDK and not noticing things: does it hyphenate by default? I can't say that I remember encountering hyphenations, or they've been rare enough that they don't stand out (compared to the kobo hyphenations with the default dictionary, which feel overly aggressive).

Yes it does. It is not aggressive though. The default hyph_xx.dic uses:
Code:
LEFTHYPHENMIN 5
RIGHTHYPHENMIN 5
This is one of the things I adjust when I patch my ereaders. My preference is to set both values to 3.
sherman is offline   Reply With Quote
Old 01-31-2022, 03:31 AM   #19
Antioch
Connoisseur
Antioch began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Jun 2011
Device: Nook STR, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by sherman View Post
Was responding to your comment on uneven margins, and that you couldn't see anything in CSS that could cause it. The .xpgt file is a common culprit on older epub files.
Ah, understood. I'll keep an eye out for that in the future.

Quote:
Originally Posted by sherman View Post
Yes it does. It is not aggressive though. The default hyph_xx.dic uses:
Code:
LEFTHYPHENMIN 5
RIGHTHYPHENMIN 5
This is one of the things I adjust when I patch my ereaders. My preference is to set both values to 3.
I may have been unlucky, but the first page I loaded after enabling hyphenation had 3 on it which stood out to me (as I don't actively recall seeing hyphenation on my ePubs, though that may be because I'm engrossed in my reading )

Regarding the kerning/ligatures and justification/spacing issues, I wonder if KOReader handles them any better? (Not sure what the advantages of heading down that path would be, however)
Antioch is offline   Reply With Quote
Old 01-31-2022, 06:24 AM   #20
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: 79,009
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This is English hyphenation dictionary I use and it works a lot better.

https://www.mobileread.com/forums/sh...d.php?t=252405
JSWolf is online now   Reply With Quote
Advert
Old 02-02-2022, 10:01 AM   #21
Antioch
Connoisseur
Antioch began at the beginning.
 
Posts: 79
Karma: 10
Join Date: Jun 2011
Device: Nook STR, Kobo Aura H2O, Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
This is English hyphenation dictionary I use and it works a lot better.

https://www.mobileread.com/forums/sh...d.php?t=252405
Thanks. I saw that and will try. Is OpenOffice's hyphenation dictionary that much better than Kobo's (or Adobe's as the case may be)?
Antioch is offline   Reply With Quote
Old 02-02-2022, 07:19 PM   #22
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by JSWolf View Post
This is English hyphenation dictionary I use and it works a lot better.

https://www.mobileread.com/forums/sh...d.php?t=252405

This will work in fw 4.30 and 4.31, right?
Deobulakenyo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kobopatch request thread geek1011 Kobo Developer's Corner 1271 05-03-2025 09:08 AM
kobopatch - An improved patching system geek1011 Kobo Developer's Corner 391 12-28-2021 09:56 PM
Libra Applied Kobopatch and I notice no changes Nalco Kobo Developer's Corner 4 05-28-2021 08:39 PM
kobopatch - A new (WIP) patching system geek1011 Kobo Developer's Corner 93 05-27-2018 03:04 PM


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


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