Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-21-2024, 03:35 PM   #271
PunkyKoopa
Connoisseur
PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.
 
PunkyKoopa's Avatar
 
Posts: 94
Karma: 243754
Join Date: Jan 2022
Device: Kobo Libra 2
In order to have hyphens more to my liking, could I unzip the .tgz file, change the values of LEFTHYPHENMIN 2 and RIGHTHYPHENMIN 3 to LEFTHYPHENMIN 3 and RIGHTHYPHENMIN 4, and then create a .tgz again?
PunkyKoopa is offline   Reply With Quote
Old 05-21-2024, 04:07 PM   #272
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: 74,648
Karma: 130140792
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 PunkyKoopa View Post
In order to have hyphens more to my liking, could I unzip the .tgz file, change the values of LEFTHYPHENMIN 2 and RIGHTHYPHENMIN 3 to LEFTHYPHENMIN 3 and RIGHTHYPHENMIN 4, and then create a .tgz again?
I would change the LEFTHYPHENMIN to 3 and leave the other as is and see how you get on.
JSWolf is offline   Reply With Quote
Old 05-22-2024, 02:43 AM   #273
PunkyKoopa
Connoisseur
PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.
 
PunkyKoopa's Avatar
 
Posts: 94
Karma: 243754
Join Date: Jan 2022
Device: Kobo Libra 2
I will try with 3 and 3 then.

The process to do it is as I said, right? Unzip, go to the dictionary, change the values, and create the .tgz again, right?
PunkyKoopa is offline   Reply With Quote
Old 05-22-2024, 05:11 AM   #274
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: 74,648
Karma: 130140792
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 PunkyKoopa View Post
I will try with 3 and 3 then.

The process to do it is as I said, right? Unzip, go to the dictionary, change the values, and create the .tgz again, right?
Or you can extract the dictionary, edit it, and put it back over the existing dictionary.
JSWolf is offline   Reply With Quote
Old 05-22-2024, 05:38 AM   #275
PunkyKoopa
Connoisseur
PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.
 
PunkyKoopa's Avatar
 
Posts: 94
Karma: 243754
Join Date: Jan 2022
Device: Kobo Libra 2
Do you mean extract from the Kobo?

I was talking about the download from the first page of the topic.
PunkyKoopa is offline   Reply With Quote
Old 05-22-2024, 05:46 AM   #276
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: 74,648
Karma: 130140792
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 PunkyKoopa View Post
Do you mean extract from the Kobo?

I was talking about the download from the first page of the topic.
So was I. Extract from the KoboRoot.tgz, make the edit and put the file back. That makes less chance of an error in building the KoboRoot.tgz.
JSWolf is offline   Reply With Quote
Old 05-22-2024, 07:51 AM   #277
PunkyKoopa
Connoisseur
PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.PunkyKoopa ought to be getting tired of karma fortunes by now.
 
PunkyKoopa's Avatar
 
Posts: 94
Karma: 243754
Join Date: Jan 2022
Device: Kobo Libra 2
I see, but I can’t see the difference. Maybe I am missing something but I think that we are saying the same thing.
PunkyKoopa is offline   Reply With Quote
Old 05-22-2024, 11:06 AM   #278
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: 74,648
Karma: 130140792
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 PunkyKoopa View Post
I see, but I can’t see the difference. Maybe I am missing something but I think that we are saying the same thing.
Maybe.

Just edit the dictionary with a program that will not change the line endings such as Notepd++ (if on Windows) and rebuild KoboRoot.tgz so it's the same as it was and you're good to go.
JSWolf is offline   Reply With Quote
Old 05-22-2024, 11:57 AM   #279
.tycho
Member
.tycho began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Quote:
Originally Posted by .tycho View Post
Hi everyone,

I was hoping to get some help, please. I'm reading KePUBs on my Libra 2. I've installed JSWolf's dictionary from the first page, and in Calibre, I have KTE set to:

Hyphenate files: On
Min word length: 6 characters
Min characters before hyphen: 2 characters
Min characters after hyphen: 3 characters
Max consecutive: 2 lines

I sent my book to the device, and here's an example screen:
Attachment 208424

I'm a bit confused. Why is "th-ing" being hyphenated? It's only 5 characters. Any thoughts? Also, do the settings in KTE override the LEFTHYPHENMIN and RIGHTHYPHENMIN in the hyphenation dictionary?

Thx!
Ok, so I did some more testing and I think I figured out what's going on. It looks like kepubs do NOT respect the minimum word length setting. Hence, why "thing" became "th-ing", because it met the 2 characters before and 3 characters after the hyphen setting.

So what I've done is change the setting in KTE to 3 characters before and 4 characters after, so that only words 7 characters or more get hyphenated. Now, things look MUCH better in my kepubs.

I'm curious what you think about my approach, and thanks for your help!
.tycho is offline   Reply With Quote
Old 05-22-2024, 12:05 PM   #280
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: 74,648
Karma: 130140792
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 .tycho View Post
Ok, so I did some more testing and I think I figured out what's going on. It looks like kepubs do NOT respect the minimum word length setting. Hence, why "thing" became "th-ing", because it met the 2 characters before and 3 characters after the hyphen setting.

So what I've done is change the setting in KTE to 3 characters before and 4 characters after, so that only words 7 characters or more get hyphenated. Now, things look MUCH better in my kepubs.

I'm curious what you think about my approach, and thanks for your help!
That should work. It's a good solution.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphenation Simboubou PocketBook 9 09-15-2014 05:21 AM
PRS-T3 hyphenation - whether you want it or not ? cybmole Sony Reader 10 01-13-2014 02:43 PM
Hyphenation - again.. ItsMee Conversion 2 07-31-2012 03:00 PM
Hyphenation Jini ePub 3 04-05-2012 11:48 AM
hyphenation CPatrick OpenInkpot 3 03-22-2010 06:06 AM


All times are GMT -4. The time now is 08:52 PM.


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