Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2022, 12:49 PM   #136
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by JSWolf View Post
But that's not what I want. I don't want a larger space between lines. I want a way to fix the bug.
Rather than using the slider to adjust line height to work around the bug, you might be able to alter the font metrics using this methodology to ensure that all Ascender/Ascent values be set to be equal, Descender/Descent value be set to be equal, and LineGap be set to zero. It fixed the problem I had with Kurinto Text, so I decided to do the same with all my fonts and I haven't noticed the problem since.

It's easy to do in FontForge:
  1. Go to the Font Information window, go to the General section, take the Ascent value and then go to the Metrics tab of the OS/2 section and input it into the Win Ascent, Typo Ascent, and HHead Ascent fields.
  2. Do the same with the General section's Decent value with the Metrics tab's Win, Typo, and HHead Descent fields.
  3. Finally, set the Metrics tab's Typo Line Gap and HHead Line Gap fields to 0.

Or if you have Python, you can install gftools and do the same with this command:

Code:
gftools fix-vertical-metrics -a ASCENT -d -DESCENT -l 0 FontName-Regular.ttf
Substituting the appropriate values for ASCENT, DESCENT, and Font Name.

For font families, use the Ascent and Descent values from the Regular font face with the bold, italic, and bolditalic versions to make sure everything stays consistent.
rtiangha is offline   Reply With Quote
Old 06-10-2022, 01:07 PM   #137
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by rtiangha View Post
Rather than using the slider to adjust line height to work around the bug, you might be able to alter the font metrics using this methodology to ensure that all Ascender/Ascent values be set to be equal, Descender/Descent value be set to be equal, and LineGap be set to zero. It fixed the problem I had with Kurinto Text, so I decided to do the same with all my fonts and I haven't noticed the problem since.
Honestly this I’ve tweaked Literata among others and at this point I have to have the font size and line spacing somewhat ridiculously small to trigger this issue. And honestly the settings get in the way of comfortably reading before the point that the issue pops up.
MGlitch is offline   Reply With Quote
Advert
Old 06-10-2022, 02:25 PM   #138
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,750
Karma: 145864619
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 rtiangha View Post
Rather than using the slider to adjust line height to work around the bug, you might be able to alter the font metrics using this methodology to ensure that all Ascender/Ascent values be set to be equal, Descender/Descent value be set to be equal, and LineGap be set to zero. It fixed the problem I had with Kurinto Text, so I decided to do the same with all my fonts and I haven't noticed the problem since.

It's easy to do in FontForge:
  1. Go to the Font Information window, go to the General section, take the Ascent value and then go to the Metrics tab of the OS/2 section and input it into the Win Ascent, Typo Ascent, and HHead Ascent fields.
  2. Do the same with the General section's Decent value with the Metrics tab's Win, Typo, and HHead Descent fields.
  3. Finally, set the Metrics tab's Typo Line Gap and HHead Line Gap fields to 0.

Or if you have Python, you can install gftools and do the same with this command:

Code:
gftools fix-vertical-metrics -a ASCENT -d -DESCENT -l 0 FontName-Regular.ttf
Substituting the appropriate values for ASCENT, DESCENT, and Font Name.

For font families, use the Ascent and Descent values from the Regular font face with the bold, italic, and bolditalic versions to make sure everything stays consistent.
I just tried this and it still had the problem. It's when you have the line-height small enough. I even tried some Kobo fonts and other fonts I have installed and they all showed the same thing.
JSWolf is offline   Reply With Quote
Old 06-10-2022, 02:34 PM   #139
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,750
Karma: 145864619
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 MGlitch View Post
Honestly this I’ve tweaked Literata among others and at this point I have to have the font size and line spacing somewhat ridiculously small to trigger this issue. And honestly the settings get in the way of comfortably reading before the point that the issue pops up.
I like a small line height. And at my preferred line height for ChareInk, I do see this issue. I've even tried the proposed fix and still the same.
JSWolf is offline   Reply With Quote
Old 06-10-2022, 03:05 PM   #140
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by JSWolf View Post
I like a small line height. And at my preferred line height for ChareInk, I do see this issue. I've even tried the proposed fix and still the same.
Have you tried the my line 24 patch. It allows more refined small spacing.
MGlitch is offline   Reply With Quote
Advert
Old 06-10-2022, 03:15 PM   #141
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,750
Karma: 145864619
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 MGlitch View Post
Have you tried the my line 24 patch. It allows more refined small spacing.
Yes, that is what I am using.
JSWolf is offline   Reply With Quote
Old 06-11-2022, 01:00 AM   #142
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
Here is what the code will look like. The ID will have different numbers. And obviously there will be closing spans.

Code:
<span class="koboSpan" id="kobo.44.1">
Find the paragraph with the problem. Then delete all kobospans in that paragraph except the first one and then copy the eBook back over the existing copy on your Kobo. It will be imported again and you can go to the same page and see if the problem still exists.
Not sure if I am doing it right but here is what happens when i use the editor and look at the concerned paragraph.

I uploaded again the screenshot for reference
Attached Thumbnails
Click image for larger version

Name:	1001.jpg
Views:	517
Size:	877.7 KB
ID:	194291   Click image for larger version

Name:	screen_008.png
Views:	171
Size:	198.7 KB
ID:	194292  
Deobulakenyo is offline   Reply With Quote
Old 06-11-2022, 01:08 AM   #143
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 Sirtel View Post
I'm guessing that's the reason. Try without enabling it and see if the spaced-out letters are still there.
Disabling optimizelegibility (i enabled optimizespeed) removed the gap/space between some of the two-letter words.
Deobulakenyo is offline   Reply With Quote
Old 06-11-2022, 05:16 AM   #144
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,750
Karma: 145864619
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 Deobulakenyo View Post
Not sure if I am doing it right but here is what happens when i use the editor and look at the concerned paragraph.

I uploaded again the screenshot for reference
You have to edit the kepub.epub version. To get access to that, you have to plug in your Kobo and either copy it to your computer, edit it and copy it back or edit it direct on the Kobo. You are looking at the ePub.

And you have to re-enable legibility. to be able to test the change(s).
JSWolf is offline   Reply With Quote
Old 06-11-2022, 10:47 PM   #145
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
That's not an ellipse. That's just three periods. The other is definitely a problem.

Have you had a look at the code? If the paragraph in the first photo has multiple koboSpan in the paragraph, try removing all but the first one and try it again. It would be interesting to see if the problem gets fixed.
I did as you say. After deleting all kobo spans except the first one, "h e" is now fixed to "he" but after that paragraph, the rest of the chapter was gone (did not delete it). The next chapter immediately begins after the concerned paragraph.
Deobulakenyo is offline   Reply With Quote
Old 06-12-2022, 04:37 AM   #146
npr
Zealot
npr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five wordsnpr can name that ebook in five words
 
Posts: 119
Karma: 37418
Join Date: Jan 2013
Device: H2OE2, Libra 2
Just started testing: webkitTextRendering=geometricPrecision
in the reading section of the config file.

So far I haven't seen any obviously bad word spacing in kepub, so hoping this is a genuine improvement. Also ligatures are enabled with this setting.
npr is offline   Reply With Quote
Old 06-12-2022, 04:53 AM   #147
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,750
Karma: 145864619
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 Deobulakenyo View Post
I did as you say. After deleting all kobo spans except the first one, "h e" is now fixed to "he" but after that paragraph, the rest of the chapter was gone (did not delete it). The next chapter immediately begins after the concerned paragraph.
Try deleting the koboSpan on more time. In the Calibre editor do the following...

1. search for <div class="tx"><span class="koboSpan"
2. replace it with <div class="tx"><spam class="koboSpan"
3. Using Diap's Toolbag, delete all span with class koboSpan
4. search for <div class="tx"><spam class="koboSpan"
5. replace it with <div class="tx"><span class="koboSpan"

That is how I did it in my test. Except <div class="tx"> was <p>.

Also, could you post the paragraph with the rendering error as it is before you change the code? Thanks.
JSWolf is offline   Reply With Quote
Old 06-12-2022, 07:59 AM   #148
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
Try deleting the koboSpan on more time. In the Calibre editor do the following...

1. search for <div class="tx"><span class="koboSpan"
2. replace it with <div class="tx"><spam class="koboSpan"
3. Using Diap's Toolbag, delete all span with class koboSpan
4. search for <div class="tx"><spam class="koboSpan"
5. replace it with <div class="tx"><span class="koboSpan"

That is how I did it in my test. Except <div class="tx"> was <p>.

Also, could you post the paragraph with the rendering error as it is before you change the code? Thanks.

Okay. I will have a go at it again tomorrow during my lunch break. Although i do not know what Diap's Toolbag is, i am assuming it is part of Calibre's editor, and i will look for it there and play with it.
Deobulakenyo is offline   Reply With Quote
Old 06-12-2022, 08:11 AM   #149
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,750
Karma: 145864619
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 Deobulakenyo View Post
Okay. I will have a go at it again tomorrow during my lunch break. Although i do not know what Diap's Toolbag is, i am assuming it is part of Calibre's editor, and i will look for it there and play with it.
It's a plugin for Calibre that works with the editor. Here is the link to the plugin thread so you can read about it.

https://www.mobileread.com/forums/sh...d.php?t=251365
JSWolf is offline   Reply With Quote
Old 06-12-2022, 11:28 PM   #150
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
Try deleting the koboSpan on more time. In the Calibre editor do the following...

1. search for <div class="tx"><span class="koboSpan"
2. replace it with <div class="tx"><spam class="koboSpan"
3. Using Diap's Toolbag, delete all span with class koboSpan
4. search for <div class="tx"><spam class="koboSpan"
5. replace it with <div class="tx"><span class="koboSpan"

That is how I did it in my test. Except <div class="tx"> was <p>.

Also, could you post the paragraph with the rendering error as it is before you change the code? Thanks.
I followed your instruction and it solved the gap problem between some two-letter words that precede italics.

BTW, here is the "as is" part that is problematic. I encircled the "he" that is displayed as "h e" as posted screenshot shows previously.

Does this mean i have to fix a book by doing the same thing you taught me to do in "all and every chapter"?

and thanks for all your assistance.
Attached Thumbnails
Click image for larger version

Name:	asis.jpg
Views:	447
Size:	666.8 KB
ID:	194342  
Deobulakenyo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adjusting 'text weight' on Kindle Paperwhite susmoka Amazon Kindle 8 03-07-2016 09:51 PM
EPUB to KEPUB line spacing Buhaj47 Conversion 1 12-07-2015 04:00 PM
Aura epub, kepub, hyphenation and word-spacing pblasi Kobo Reader 5 08-22-2014 05:13 AM
Left-justified text in a right-justified box Skeezix Conversion 4 11-15-2011 08:44 PM
Justified word paragraph not wrapping in mobi wlloydw Conversion 0 03-05-2011 03:03 PM


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


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