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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2020, 01:43 PM   #16
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: 58,646
Karma: 53778739
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by klover137006 View Post
Haha, god, it's always frustrating when computers simply cannot do what they're supposed to do best: follow instructions.

(Of course, I do realize that they're in fact following someone's instructions to not follow instructions... even more frustrating!)

OK, so with KePub, 3/3 is really 2/2, but if a word contains a comma at the end, does that in fact mean 2/1, if the comma counts as one?
That I do not know as English does not have words that end in a comma.

The numbers I would use are...

ePub: 2/3
KePub: 3/4
JSWolf is offline   Reply With Quote
Old 07-17-2020, 03:45 PM   #17
klover137006
Member
klover137006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by JSWolf View Post
That I do not know as English does not have words that end in a comma.

The numbers I would use are...

ePub: 2/3
KePub: 3/4
Oh, neither does Swedish, but someone mentioned that punctuation is counted as part of the word, if I'm not mistaken?
klover137006 is offline   Reply With Quote
Old 07-17-2020, 03:50 PM   #18
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: 58,646
Karma: 53778739
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by klover137006 View Post
Oh, neither does Swedish, but someone mentioned that punctuation is counted as part of the word, if I'm not mistaken?
I've never noticed punctuation being counted as part of the word.
JSWolf is offline   Reply With Quote
Old 07-17-2020, 04:43 PM   #19
klover137006
Member
klover137006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by JSWolf View Post
I've never noticed punctuation being counted as part of the word.
That's good, hopefully it doesn't, and I'm just mistaken. Just thought I read it somewhere...
klover137006 is offline   Reply With Quote
Old 07-17-2020, 06:35 PM   #20
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: 5,497
Karma: 13842090
Join Date: Sep 2009
Location: UK
Device: Kobo: H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by klover137006 View Post
That's good, hopefully it doesn't, and I'm just mistaken. Just thought I read it somewhere...
Yes, you did. It can be seen in kepubs. For example, if you have included this CSS in your kepub
Code:
    -webkit-hyphenate-limit-before: 2;
    -webkit-hyphenate-limit-after: 3;
you may see something like this:
Code:
Strange hyphenati-
on.
For reasons best known to whoever wrote the kepub rendering app the punctuation seems to count as one of the characters.

For this reason I never have -webkit-hyphenate-limit-after set to anything less than 3.
jackie_w is offline   Reply With Quote
Old 07-17-2020, 11:04 PM   #21
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 19,607
Karma: 33152421
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jackie_w View Post
Yes, you did. It can be seen in kepubs. For example, if you have included this CSS in your kepub
Code:
    -webkit-hyphenate-limit-before: 2;
    -webkit-hyphenate-limit-after: 3;
you may see something like this:
Code:
Strange hyphenati-
on.
For reasons best known to whoever wrote the kepub rendering app the punctuation seems to count as one of the characters.

For this reason I never have -webkit-hyphenate-limit-after set to anything less than 3.
That's annoying and makes me happy with my ragged-right preference

The interesting thing is that the punctuation probably should be considered when deciding to split the word, but, it shouldn't be included when deciding where to put the split. I wonder if this is one of those cases where the programmer/designer/whoever decided to fix it later when they had time to think about it properly and that time has never arrived.
davidfor is offline   Reply With Quote
Old 07-18-2020, 06:36 AM   #22
klover137006
Member
klover137006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by Anak View Post
It is impossilbe to get (perfectly) correct hyphenation files, but maybe you can find updated/improved hypenation files from LibreOffice or OpenOffice.

Add the following to the .dic (after UTF-8):
Code:
LEFTHYPHENMIN 3
RIGHTHYPHENMIN 3
Change the values, and make sure that file is saved as UTF-8.

This prevents breaking shorter words: jus-tificat-ion, jus-tificati-on.
This doesn't fix breaking words at the correct position. Note: interpunction is also 'counted' as a character.

Example:
Code:
UTF-8
LEFTHYPHENMIN 3
RIGHTHYPHENMIN 3
.a4
.aan5
.a4a4
…
Replace the Dutch hyphenation dictionary with a hyphenation dictionary that matches your language (try hyphenation files for OpenOffice/LibreOffice)
and change the symlink too.
Use 7-zip so you can drag and drop a hyphenation file in
Code:
\usr\local\Kobo\hyphenDicts\
and change the symlink by pressing F2 in
Code:
\usr\share\hyphen\
Note: the attached file isn't a rar file. remove .rar (KoboRoot-nl-hyp-dic.tgz) and rename it to KoboRoot.tgz to install it.
Wohoo! I've now had time to follow these steps and the Swedish hyphenation now seems much better! I've browsed through a KePub and have yet to find an erroneous hyphenation.

I downloaded your .tgz file and replaced the hyph-nl.dic with a Swedish hyphenation file (a slightly modified .tex file from hyphenation.org/tex) renamed to hyph-nl.dic and copied the tgz file to the .kobo folder in order to patch it. And now everything seems to work fine.

Thank you!

(I'm guessing it works better now because I replaced an official language, but perhaps I should try using the same file named as hyph-sv.dic and see if it still works...?)
klover137006 is offline   Reply With Quote
Old 07-18-2020, 07:58 AM   #23
Anak
Fanatic
Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.Anak ought to be getting tired of karma fortunes by now.
 
Posts: 579
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
You don't have to replace an existing language hyphenation dictionary.
You could add a Swedish hyphenation dictionary as "Svenska" is supported by Kobo readers, so this should work.

adding: hyph_sv.dic (underscore; assuming that the country abbreviation is correct)
make sure that the symlink uses the same abbreviation and the .dic file is saved as UTF-8.

Last edited by Anak; 07-18-2020 at 08:00 AM.
Anak is offline   Reply With Quote
Old 07-18-2020, 07:04 PM   #24
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: 5,497
Karma: 13842090
Join Date: Sep 2009
Location: UK
Device: Kobo: H2O, GloHD, KA1, ClaraHD, Forma
Quote:
Originally Posted by davidfor View Post
That's annoying and makes me happy with my ragged-right preference

The interesting thing is that the punctuation probably should be considered when deciding to split the word, but, it shouldn't be included when deciding where to put the split. I wonder if this is one of those cases where the programmer/designer/whoever decided to fix it later when they had time to think about it properly and that time has never arrived.
I kind-of wish I could train myself to think that ragged right looks acceptable, but it's never going to happen. It would irritate me on every single page whereas odd hyphenation only happens on relatively few pages. Luckily I read only in English, mostly on a big screen Forma and don't need a particularly large font-size (yet) so it reduces the weirdness frequency down to manageable levels.
jackie_w is offline   Reply With Quote
Old 07-19-2020, 09:38 AM   #25
klover137006
Member
klover137006 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2020
Device: Kobo Clara HD
Quote:
Originally Posted by Anak View Post
You don't have to replace an existing language hyphenation dictionary.
You could add a Swedish hyphenation dictionary as "Svenska" is supported by Kobo readers, so this should work.

adding: hyph_sv.dic (underscore; assuming that the country abbreviation is correct)
make sure that the symlink uses the same abbreviation and the .dic file is saved as UTF-8.
You are right! Tried it now. Weird, wonder what I did wrong before? Perhaps the dictionaries were bad. Or perhaps the method of transferring them onto the Kobo was the problem (something with the symlink perhaps?).

SO, now the Swedish hyphenation works pretty good I'd say.
klover137006 is offline   Reply With Quote
Old 07-20-2020, 03:55 AM   #26
Simboubou
Enthusiast
Simboubou began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Aug 2014
Device: Kobo Glo HD
Hm, I didn't know about this weird kepub hyphen length thing. Maybe I should try again.
Simboubou is offline   Reply With Quote
Reply

Tags
hyphenation, kobo

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyphenation skr1107 Calibre 1 09-27-2018 11:28 AM
Hyphenation Simboubou PocketBook 9 09-15-2014 05:21 AM
Hyphenation does not work in E-book Viewer Elancrom Calibre 2 06-18-2014 06:19 AM
Hyphenation Siard Kobo Reader 6 08-09-2013 07:40 AM
hyphenation CPatrick OpenInkpot 3 03-22-2010 06:06 AM


All times are GMT -4. The time now is 02:20 PM.


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