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-10-2015, 06:56 PM   #76
jim.1405
Member
jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.jim.1405 is not intimidated by interfenestral monkeys.
 
Posts: 22
Karma: 26852
Join Date: Apr 2014
Device: Kobo H2O / PW2
Once I recovered from my stupidity everything installed fine.

Thanks for the patches Geoff.

I really like additional font sizing since I never could get it quite the right size before. The chapter reading stats that came with 3.15 are nice too. I probably shouldn't wait so long to update the firmware.
jim.1405 is offline   Reply With Quote
Old 05-10-2015, 09:07 PM   #77
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: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Siard View Post
Further investigations reveal that, after switching on the device, the database is not read until something is altered in the DB, e.g. by moving some slider.
Without the line height patch, the line height is taken from the global configuration file. With one of the two patches applied, it is probably also taken from there, but the line height becomes a certain smaller proportion of that, say 75%.
After moving some slider, or connecting with USB and disconnecting, the values are taken from the database.

Until firmware version 2.8.1, a line height of 1.35 was common. But from 2.10 on, line heights were displayed much wider, so 0.88 became optimal. But 1.0 remained the minimum value that could be set with the slider, so that's why the patch became wanted.


These fields contain the correct line height values, 0.88 in my case.
But, as explained, these are only read after something in the database has been altered.
Which makes no sense. How does the device render the page using the settings for the book if it doesn't read the database? That is the point of the content_settings table; per book reading settings. When you make a change to the settings while reading a book, they are stored in the database and the config file. When you reopen that book, the settings used are from the database, not the config file. And, unless it has changed recently, the value used doesn't have to be one reachable on the slider.

The problem is probably in how the settings are matched against the values for the slider. If the value in the database, or config file for that matter, doesn't exactly match a choice on the slider, then it chooses a setting that is on the slider. From memory, it is one of the settings either side of the value, but I haven't played with that recently. Does your 0.88 setting match something that you put into the patch for the line heights?
davidfor is offline   Reply With Quote
Advert
Old 05-11-2015, 01:24 PM   #78
barobach_so
Connoisseur
barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.
 
Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
Dear GeoffR
can you do something about this ?
barobach_so is offline   Reply With Quote
Old 05-11-2015, 03:47 PM   #79
Siard
Member
Siard began at the beginning.
 
Siard's Avatar
 
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: The Netherlands
Device: Kobo Glo
Quote:
Originally Posted by davidfor View Post
The problem is probably in how the settings are matched against the values for the slider. If the value in the database, or config file for that matter, doesn't exactly match a choice on the slider, then it chooses a setting that is on the slider. From memory, it is one of the settings either side of the value, but I haven't played with that recently. Does your 0.88 setting match something that you put into the patch for the line heights?
Indeed, the 0.88 setting in the database comes from setting the slider and the value in the patch.

I did a lot of experimenting. I made a new discovery: the problem only arises with the Malabar font! It is my favorite font for reading books, I never used anything else.
So perhaps you can reproduce this:
Having one of the line spacing patches applied, set the Malabar font and a certain line spacing.
Switch the Glo off and on.
The line spacing will then have become smaller - until you move some slider (font size/line spacing/margins), which restores your setting.

Anyway, the problem has in fact been solved for the greater part now; it looks like there's some quirk in the Malabar font, and I just have to find myself another font.
Siard is offline   Reply With Quote
Old 05-12-2015, 09:40 PM   #80
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by Siard View Post
I did a lot of experimenting. I made a new discovery: the problem only arises with the Malabar font! It is my favorite font for reading books, I never used anything else.
So perhaps you can reproduce this:
Having one of the line spacing patches applied, set the Malabar font and a certain line spacing.
Switch the Glo off and on.
The line spacing will then have become smaller - until you move some slider (font size/line spacing/margins), which restores your setting.
Yes it happens on my Glo too when I use Malabar. It also happens whether or not the line spacing patch is applied, although the small spacing that Malabar starts with after being powered on is different when the patch is not applied, it is still the wrong spacing compared to where the slider is positioned.

If it happens with Malabar then I guess it is possible it will happen with some other fonts too.

Edit: With the unpatched firmware, the line spacing after powering on seems to be set to 1.0, the same as what you get with the slider at the minimum position, so if you have the slider at minimum already then you will not notice any problem. To see the problem with the unpatched firmware: Select Malabar in an epub, move the line spacing slider a few positions to the right, close the book and power off. When the book is opened again the line spacing has gone back to the minimum but the slider hasn't changed.

Last edited by GeoffR; 05-12-2015 at 09:49 PM. Reason: With the unpatched firmware ...
GeoffR is offline   Reply With Quote
Advert
Old 05-12-2015, 11:31 PM   #81
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: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by GeoffR View Post
Yes it happens on my Glo too when I use Malabar. It also happens whether or not the line spacing patch is applied, although the small spacing that Malabar starts with after being powered on is different when the patch is not applied, it is still the wrong spacing compared to where the slider is positioned.

If it happens with Malabar then I guess it is possible it will happen with some other fonts too.

Edit: With the unpatched firmware, the line spacing after powering on seems to be set to 1.0, the same as what you get with the slider at the minimum position, so if you have the slider at minimum already then you will not notice any problem. To see the problem with the unpatched firmware: Select Malabar in an epub, move the line spacing slider a few positions to the right, close the book and power off. When the book is opened again the line spacing has gone back to the minimum but the slider hasn't changed.
That isn't happening here on my Glo HD running unpatched 3.15.0. When I choose Malabar and set the line spacing and power off, the line spacing is set correctly when I repoen the book. I tried with a couple of epubs and a couple different spacings.
davidfor is offline   Reply With Quote
Old 05-13-2015, 01:09 AM   #82
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by davidfor View Post
That isn't happening here on my Glo HD running unpatched 3.15.0. When I choose Malabar and set the line spacing and power off, the line spacing is set correctly when I repoen the book. I tried with a couple of epubs and a couple different spacings.
I double checked, I even removed all sideloaded fonts and non-standard stuff from [FeatureSettings], but the problem still occurs with Malabar using the stock firmware 3.15.0 on my Glo. It could still depend on device type, book, or other settings I guess.
GeoffR is offline   Reply With Quote
Old 05-13-2015, 08:07 AM   #83
Maida
Enthusiast
Maida began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2010
Location: Germany
Device: Kobo Aura H2O, Kobo Aura, Kobo Glo HD
Does anybody know where the kepub hyphenations are and what their syntax is.
There ought to be a way to place better hyphenation dictionaries as it can be done with the Adobe mobile reader. Unfortunately I know neither their location nor their syntsx, so that I can create a hyphenation koboroot. For readers other than English this is definitely an important issue.
Maida is offline   Reply With Quote
Old 05-13-2015, 08:25 AM   #84
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: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
You can drag out the existing hyphenation dictionaries from any of the latest firmware zip files. The .dic files are buried quite deep inside directory
kobo-update-3.15.0\KoboRoot.tgz\KoboRoot.tar\.\usr\local\Kobo\ hyphenDicts\

If you know what you're doing (not me) I believe you can you can edit them in a good text editor and replace them on the Kobo fairly easily.

If you search this forum a bit you should be able to find better versions for English and German (and possibly Dutch ???).

ETA: There's also a Russian one.

Last edited by jackie_w; 05-13-2015 at 08:31 AM. Reason: extra custom hyphen dict
jackie_w is offline   Reply With Quote
Old 05-13-2015, 09:01 AM   #85
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: 79,847
Karma: 146918083
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 jackie_w View Post
You can drag out the existing hyphenation dictionaries from any of the latest firmware zip files. The .dic files are buried quite deep inside directory
kobo-update-3.15.0\KoboRoot.tgz\KoboRoot.tar\.\usr\local\Kobo\ hyphenDicts\

If you know what you're doing (not me) I believe you can you can edit them in a good text editor and replace them on the Kobo fairly easily.

If you search this forum a bit you should be able to find better versions for English and German (and possibly Dutch ???).

ETA: There's also a Russian one.
I've posted a better English hyphenation dictionary and a French one at https://www.mobileread.com/forums/sho...d.php?t=252405.

I can say that the English hyphenation dictionary I posted is much better than the default dictionary that's supplied by Kobo (and/or Adobe).

The dictionaries I've posted are ready to be dropped into .kobo to be installed.
JSWolf is offline   Reply With Quote
Old 05-13-2015, 02:49 PM   #86
barobach_so
Connoisseur
barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.
 
Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
no idea about my problem ? post #78
barobach_so is offline   Reply With Quote
Old 05-13-2015, 09:27 PM   #87
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by barobach_so View Post
can you do something about this ?
I've had a bit of a look, I haven't been able to figure out how to add Chess back to the Beta features menu. I'm not familliar with that part of the code at all.

Quote:
Originally Posted by Maida View Post
Does anybody know where the kepub hyphenations are and what their syntax is.
There ought to be a way to place better hyphenation dictionaries as it can be done with the Adobe mobile reader. Unfortunately I know neither their location nor their syntsx, so that I can create a hyphenation koboroot. For readers other than English this is definitely an important issue.
The KEPUB reader uses the same hyphenation dictionaries as the EPUB reader, the problems with KEPUB automatic hyphenation is not just the dictionaries but bugs in the KEPUB reader itself. If you want good hyphenation in kepubs I think the only option at the moment is to add soft hyphens to the book before sideloading.
GeoffR is offline   Reply With Quote
Old 05-14-2015, 01:41 AM   #88
barobach_so
Connoisseur
barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.barobach_so knows what's going on.
 
Posts: 76
Karma: 25460
Join Date: Feb 2015
Device: kobo h2o
hi

thank you
barobach_so is offline   Reply With Quote
Old 05-14-2015, 11:00 AM   #89
Maida
Enthusiast
Maida began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2010
Location: Germany
Device: Kobo Aura H2O, Kobo Aura, Kobo Glo HD
Thanks a lot. Now I can give up my seeking for better hyphenation.
Maida is offline   Reply With Quote
Old 05-14-2015, 11:04 AM   #90
Maida
Enthusiast
Maida began at the beginning.
 
Posts: 45
Karma: 10
Join Date: Apr 2010
Location: Germany
Device: Kobo Aura H2O, Kobo Aura, Kobo Glo HD
Quote:
Originally Posted by jackie_w View Post
You can drag out the existing hyphenation dictionaries from any of the latest firmware zip files. The .dic files are buried quite deep inside directory
kobo-update-3.15.0\KoboRoot.tgz\KoboRoot.tar\.\usr\local\Kobo\ hyphenDicts\

If you know what you're doing (not me) I believe you can you can edit them in a good text editor and replace them on the Kobo fairly easily.

If you search this forum a bit you should be able to find better versions for English and German (and possibly Dutch ???).

ETA: There's also a Russian one.
Thanks. I already changed the Kobo dicts with my own which lead to better epub hyphenation. Unfortunately kepubs remain untouched from this patch.
Maida is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.13.1 GeoffR Kobo Developer's Corner 56 07-01-2016 09:59 AM
Instructions for patching firmware 3.11.0 GeoffR Kobo Developer's Corner 226 06-01-2015 05:32 AM
Instructions for patching firmware 3.12.1 GeoffR Kobo Developer's Corner 56 03-20-2015 05:14 AM
Instructions for patching firmware 3.12.0 GeoffR Kobo Developer's Corner 165 02-07-2015 09:22 AM
Instructions for patching firmware 3.2.0 DNSB Kobo Developer's Corner 66 12-05-2014 07:28 AM


All times are GMT -4. The time now is 04:39 AM.


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