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-01-2014, 06:54 PM   #1
Nick Payne
Connoisseur
Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'Nick Payne can spell AND pronounce 'liseuse.'
 
Posts: 90
Karma: 39898
Join Date: Jul 2013
Location: Canberra, Australia
Device: Kobo Clara HD, Kobo Libra H2O
Justification problems with 3.3.0

See attached screen image, which shows two of the problems that I see repeatedly in multiple ebooks when uploaded by Calibre to my Aura HD as kepubs. In the third line of the para that begins "He walked round my office", the justification is bad, and the em dash is hard up against the word to its left with all the spacing on the right. When I load the book into Sigil and have a look at the text, there is no space on either side of the em dash, and there is nothing I can see that should prevent the justification from being correct.

This particular book is "The New Men", by C.P. Snow, but I see the same problem in multiple books from different publishers.

And BTW, it's annoying that with this firmware I can no longer take direct screen shots but have to photograph the screen with a camera in order to get a screen image.

p.s. What I forgot to mention is that the justification problem is related to the em dash problem, as lines containing an em dash that require stretching of the spacing also invariably have the justification problem.
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	352
Size:	137.5 KB
ID:	123584  

Last edited by Nick Payne; 06-02-2014 at 08:36 AM.
Nick Payne is offline   Reply With Quote
Old 06-04-2014, 04:51 PM   #2
Anak
Guru
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: 603
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
Quote:
Originally Posted by Nick Payne View Post
In the third line of the para that begins "He walked round my office", the justification is bad, and the em dash is hard up against the word to its left with all the spacing on the right. When I load the book into Sigil and have a look at the text, there is no space on either side of the em dash, and there is nothing I can see that should prevent the justification from being correct.
I have noticed your problem too.
  • (arbitrary?) remove a whitespace character (which is present in "code view")
  • at the end of a line there is a space (about the size of one or two characters; the last word is or seems not aligned to the right page margin).
This happens if the problematic line has too few characters. And the "hyphenation routine" can not hyphenate the first word on the next line ("Minister").

There is IMO no solution to fix this permanently.

To reduce this justification issue you can edit, the hypenation rules of your language.
See also this thread Hyphenation

Code:
UTF-8
LEFTHYPHENMIN 2
RIGHTHYPHENMIN 3
COMPOUNDLEFTHYPHENMIN 2
COMPOUNDRIGHTHYPHENMIN 3
Lower values for LEFTHYPHENMIN and RIGHTHYPHENMIN means MORE aggressive hypenation.

Build a patch for the hyphenation dictionary on to the Kobo. Containing only:
Code:
.\usr\local\Kobo\hyphenDicts\hyph_en.dic
.\usr\share\hyphen\hyph_en_EN.dic
The easiest way to this is to download the firmware for your device (see the direct firmware links section). Then open the firmare archive with 7-Zip and delete everything except the hyphenation dictionary files of your langage (you should keep the English dictionaries). Then close the archive and save the modified archive file by prompting "yes" when asked.

Then open the archive again and edit both "hyph_en.dic" and "hyph_en_EN.dic" by reducing the values for LEFTHYPHENMIN and RIGHTHYPHENMIN.

This is a trade off for your issue as it can create an other ugly issue.

If both values are set to four:
Mini-ster.

Suppose you set RIGHTHYPHENMIN to two. Then it can look like this:
Ministe-r. (as the dot is also count as a character; as is a comma question mark, etc.).

It might be that the COMPOUNDLEFTHYPHENMIN and COMPOUNDRIGHTHYPHENMIN fixes this issue. I don't know. I use the Dutch hyphenation dictionaries and they do not contain these parameters.

Last edited by Anak; 06-04-2014 at 05:26 PM.
Anak is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix an epub with line space/justification problems? khahoon Reading and Management 3 08-16-2013 02:48 AM
Troubleshooting Justification sillypoint Amazon Kindle 10 03-21-2013 11:09 PM
justification problems on KK after update to 3.4 ren41 Kindle Developer's Corner 10 10-31-2012 02:36 PM
Help with font and justification problems from Calibre to Kindle clarient Conversion 1 06-29-2011 12:17 AM
DX justification jlinden Amazon Kindle 7 01-18-2010 07:22 AM


All times are GMT -4. The time now is 12:50 PM.


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