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 05-21-2024, 04: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, 05: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: 76,951
Karma: 138256890
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, 03: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, 06: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: 76,951
Karma: 138256890
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, 06: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, 06: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: 76,951
Karma: 138256890
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, 08: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, 12:06 PM   #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: 76,951
Karma: 138256890
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, 12:57 PM   #279
.tycho
Member
.tycho began at the beginning.
 
Posts: 21
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, 01: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: 76,951
Karma: 138256890
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
Old 11-15-2024, 10:59 AM   #281
Usered
Member
Usered began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
What do the 1!1 1,1 etc at the beginning of the english hyphenation dictionary mean? I tried using them on the italian one but that resulted in words being splitted just a letter before the punctuation, like this: "Isabe-l." Probably the dot is counted as part of the word? I resolved that by eliminating the first 1 from the rules in the first section of the hyph file, but I don't know how they work or how that resolved the issue.
Also, in my italian file there's a rule like this one: l'2, which is intended to impede the hyphenation right after the apostrophe for word like l'hai. But as I was reading I found precisely that horrible instance of hyphenation: l'-hai. Does anyone know how to counter this by adding or modifying the rules?
Usered is offline   Reply With Quote
Old 11-15-2024, 01:03 PM   #282
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: 76,951
Karma: 138256890
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 Usered View Post
What do the 1!1 1,1 etc at the beginning of the english hyphenation dictionary mean? I tried using them on the italian one but that resulted in words being splitted just a letter before the punctuation, like this: "Isabe-l." Probably the dot is counted as part of the word? I resolved that by eliminating the first 1 from the rules in the first section of the hyph file, but I don't know how they work or how that resolved the issue.
Also, in my italian file there's a rule like this one: l'2, which is intended to impede the hyphenation right after the apostrophe for word like l'hai. But as I was reading I found precisely that horrible instance of hyphenation: l'-hai. Does anyone know how to counter this by adding or modifying the rules?
I have no idea. But as it's in the English hyphenation dictionary, I'd just leave it there. All I know is it works for English.
JSWolf is offline   Reply With Quote
Old 11-15-2024, 01:10 PM   #283
Usered
Member
Usered began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2024
Device: Kobo Libra 2
Pity
I thought the rules in the first section could signal the punctuation marks as independent and not to be counted for hyphenation, but it wasn't working for me as it was and I'm not sure that just because they're there they're correct (someone could have added them tentatively?). I gathered that the 1 means a possible hyphenation point but it wouldn't make sense there.
Is there some provedly good italian hyph file? Maybe mine is not the best. Thanks for answering anyhow.
Usered is offline   Reply With Quote
Old 11-15-2024, 02:27 PM   #284
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: 76,951
Karma: 138256890
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 Usered View Post
Pity
I thought the rules in the first section could signal the punctuation marks as independent and not to be counted for hyphenation, but it wasn't working for me as it was and I'm not sure that just because they're there they're correct (someone could have added them tentatively?). I gathered that the 1 means a possible hyphenation point but it wouldn't make sense there.
Is there some provedly good italian hyph file? Maybe mine is not the best. Thanks for answering anyhow.
Thing is, I've never seen how a hyphenation dictionary is made. If you could find a site that gives the rules, that would be good.
JSWolf is offline   Reply With Quote
Old 12-03-2024, 01:01 AM   #285
hengyu
Enthusiast
hengyu began at the beginning.
 
Posts: 44
Karma: 10
Join Date: Aug 2016
Device: Kobo Libra Colour
How do these hyphenation dictionaries persist in the device?

Do I need to re-install it when I update the firmware, or when I do a logout-login DB rebuild, or when I do a factory reset?
hengyu is offline   Reply With Quote
Reply


Forum Jump

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


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


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