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 06-03-2020, 07:31 PM   #121
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Quote:
Originally Posted by JSWolf View Post
I'll do it tomorrow and you can give it a go.
Tks man, take your time.

Thank you so much for your help.
Flaviocc is offline   Reply With Quote
Old 06-04-2020, 04:45 AM   #122
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: 75,397
Karma: 133807966
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 Flaviocc View Post
Tks man, take your time.

Thank you so much for your help.
Here you go with the Portuguese hyphenation dictionary. I used values of 3/3. If this works, I can try 2/2 and you can test that and let me know which one works better.
Attached Files
File Type: zip HyphenationPT.zip (3.2 KB, 191 views)
JSWolf is offline   Reply With Quote
Advert
Old 06-04-2020, 07:05 AM   #123
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Good morning Jon.

Thank you.

I'll try later and tell you.

I can test the 2/2 if the 3/3 works. Let me try this one first.

Tks so much.
Flaviocc is offline   Reply With Quote
Old 06-04-2020, 07:10 AM   #124
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: 75,397
Karma: 133807966
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 Flaviocc View Post
Good morning Jon.

Thank you.

I'll try later and tell you.

I can test the 2/2 if the 3/3 works. Let me try this one first.

Tks so much.
If this works, I'll do the 2/2. I hope I've got the filename correct.
JSWolf is offline   Reply With Quote
Old 06-04-2020, 09:39 AM   #125
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Jon,

I have one question. Looking at the file that I put here, i see the encoding="ISO-8859-1" and in your file you put encoding="UTF-8".

So I have 2 types of encoding. I will remove one and test to see what I get here.

Tks.

EDIT: very nice!! tried here the 3/3 with the ISO encoding and the spaces between words is so much better now. I take 2 pictures of different books to compare (will post here later).

Looking for the difference between the two, I read that ISO supports our vocabulary (Portuguese from Brazil) much better, which has many accents.

Last edited by Flaviocc; 06-04-2020 at 11:44 AM.
Flaviocc is offline   Reply With Quote
Advert
Old 06-04-2020, 10:54 AM   #126
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Here the images:

Book 1 - without the file



Book 1 - with the file



Book 2 - without the file



Book 2 - with the file



Do you think we have better results with the 2/2 configuration?!
Flaviocc is offline   Reply With Quote
Old 06-04-2020, 12:10 PM   #127
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: 75,397
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have no idea how well the 2/2 version will work. So here it is. Please test away.
Attached Files
File Type: zip HyphenationPT22.zip (3.2 KB, 185 views)
JSWolf is offline   Reply With Quote
Old 06-04-2020, 12:47 PM   #128
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Quote:
Originally Posted by JSWolf View Post
I have no idea how well the 2/2 version will work. So here it is. Please test away.
Tks Jon,

The result was:

First book - 3/3 to 2/2 - on the same page only one word has been modified

Second book - same page and nothing changed.

So, I'll keep the 2/2 for now, bcs the change was for better on the 1st book.

Thank you so much.

p.s. - I changed the encode thing.

p.s.2 - If you want keep the file in your first post for future reference.
Flaviocc is offline   Reply With Quote
Old 06-04-2020, 12:54 PM   #129
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: 75,397
Karma: 133807966
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 Flaviocc View Post
Tks Jon,

The result was:

First book - 3/3 to 2/2 - on the same page only one word has been modified

Second book - same page and nothing changed.

So, I'll keep the 2/2 for now, bcs the change was for better on the 1st book.

Thank you so much.

p.s. - I changed the encode thing.

p.s.2 - If you want keep the file in your first post for future reference.
I'll give it a week and if you don't find anything odd, I'll post the 2/2 in the firt message. Thanks.
JSWolf is offline   Reply With Quote
Old 06-04-2020, 01:33 PM   #130
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
Quote:
Originally Posted by JSWolf View Post
I'll give it a week and if you don't find anything odd, I'll post the 2/2 in the firt message. Thanks.
Ok. I will give a feedback in a week.

Tks.
Flaviocc is offline   Reply With Quote
Old 06-16-2020, 04:30 PM   #131
Flaviocc
Zealot
Flaviocc began at the beginning.
 
Posts: 127
Karma: 10
Join Date: May 2019
Location: Brazil
Device: Kindle PPW5 / Kobo Aura One
@JSWolf,

no issues with the 2/2 config.

Tks.
Flaviocc is offline   Reply With Quote
Old 06-16-2020, 04:56 PM   #132
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: 75,397
Karma: 133807966
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 Flaviocc View Post
@JSWolf,

no issues with the 2/2 config.

Tks.
Thanks. I'll add it to the first post tomorrow.
JSWolf is offline   Reply With Quote
Old 07-02-2020, 07:24 AM   #133
tartanpion
Enthusiast
tartanpion began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Nov 2011
Location: france
Device: kobo libra 2
I have a problem with no-break space and hyphenation.
Tested with your dict (hyph-fr.dict) and with the kobo's dict and kepub.
With french we use a lot of hyphenation and at the end of a line when we have a quotation mark '«', followed by a no break space and the word, kobo create a false hyphenation like if (see the example) '« jeune' was a true word and it's hyphenated after the no break space : '« -jeune'


ex : Ruth présente O comme « jeune homme de qualité » is sometimes badly hyphenate like (see the picture):
xxxx xxxx xxx xxxxxxxx xxxxx « -
jeune homme de qualité » xxxx xxx

the correct sentence should be :

xxxx xxxx xxx xxxxxxx xxxxx « jeu-
ne homme xxx xxxxxx xxxxxxxxxxx

or

xxx xxxx xxxx xxxxxxxxxxxxx xxx
« jeune homme xxxx xxxxxxxx xxx

Can we have a rule : do not hyphenate after a no break space ?
Or perhaps I need to soft hyphen the epub with the plugin hyphenate it before converting to kepub.
Attached Thumbnails
Click image for larger version

Name:	bug kobo.jpg
Views:	196
Size:	589.5 KB
ID:	180325  
tartanpion is offline   Reply With Quote
Old 07-02-2020, 08:42 AM   #134
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: 75,397
Karma: 133807966
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 tartanpion View Post
I have a problem with no-break space and hyphenation.
Tested with your dict (hyph-fr.dict) and with the kobo's dict and kepub.
With french we use a lot of hyphenation and at the end of a line when we have a quotation mark '«', followed by a no break space and the word, kobo create a false hyphenation like if (see the example) '« jeune' was a true word and it's hyphenated after the no break space : '« -jeune'


ex : Ruth présente O comme « jeune homme de qualité » is sometimes badly hyphenate like (see the picture):
xxxx xxxx xxx xxxxxxxx xxxxx « -
jeune homme de qualité » xxxx xxx

the correct sentence should be :

xxxx xxxx xxx xxxxxxx xxxxx « jeu-
ne homme xxx xxxxxx xxxxxxxxxxx

or

xxx xxxx xxxx xxxxxxxxxxxxx xxx
« jeune homme xxxx xxxxxxxx xxx

Can we have a rule : do not hyphenate after a no break space ?
Or perhaps I need to soft hyphen the epub with the plugin hyphenate it before converting to kepub.
KePub has issues with hyphenation. There's nothing we can do to fix this. The only solution would be to try ePub and see how that goes.
JSWolf is offline   Reply With Quote
Old 07-02-2020, 08:46 AM   #135
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 877
Karma: 270656
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by tartanpion View Post
Tested with your dict (hyph-fr.dict)
Just as an option / suggestion.

Open this archive and fix on LEFTHYPHENMIN 3
You will not have such hyphenation.
Semwize is offline   Reply With Quote
Reply


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 03:54 PM.


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