05-08-2015, 05:27 AM | #61 |
Bookworm
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
I hope the old patches keep being there also,because they are more likely to be customized.
I must work with the Metazoa idea, but I am afraid that things like: make the page xx of xx bigger are not possible. On the other hand,then Geoffr must make 2 different patches which is muck more work. I still work to understand the metazoa patches a bit more, so excuse me if what I want,is still possible. I liked the old way of patching, it cost me a long time to understand,but now I am used to it, but thanks GeoffR for all the work u are doing ! |
05-08-2015, 03:59 PM | #62 |
Member
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: The Netherlands
Device: Kobo Glo
|
Switching my Glo off causes the line spacing setting to be lost
After applying the 10 or 15 line spacing values patch, setting the line spacing with the slider and switching my Glo off, then after switching it back on, the line spacing is lost and has become very small, although the slider is still at its place.
It can be corrected by moving the slider 1 step, and moving it back 1 step to where it was. But I have to do this every time after switching the reader on. Changing the replacement values in the patch does not affect it. I also had this problem with every previous patch. Is it a known problem and is there a fix? |
Advert | |
|
05-08-2015, 10:14 PM | #63 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
The only think I can suggest is asking in the "Modifications for bad eyes thread", as tshering seems to know a lot more about this aspect of the code than I do. |
|
05-08-2015, 10:30 PM | #64 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
When you change the line spacing in a book the device saves the setting in the database for that specific book, and in the configuration file as a global default for books that have not been opened. If there is a problem writing to the database, then turning the device off and on will cause the information about the book's setting to be lost, and when you open the book again an old value will be read from the database. If the line spacing value read from the database is not one of the values available on the slider (perhaps because the book was opened before the patch was applied) then the firmware sets the line spacing to the lowest value on the slider. With the line spacing patch this is very noticable because the lowest slider value is very small. With the unpatched firmware it is probably not as noticable, because then most people use the lowest line spacing setting anyway. All I can suggest is to check your database, either from sqlite with the "PRAGMA integrity_check;" command, or from Calibre using the KoboUtilities plugin. If there is no problem with the database then I don't know what is going on. But I can say that this problem should not happen, and I can't see any way the patch would cause it to happen (other than making any existing problem more noticable.) |
|
05-09-2015, 02:49 AM | #65 |
Guru
Posts: 732
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
|
It always happens to me for the first book I open after applying the patch, but never again. No problem with database either.
But it doesn't happen with your values, only with my custom values here: # 10 values for replacement replace_float = 604B10, 1.05, 0.7 replace_float = 604B18, 1.07, 0.75 replace_float = 604B20, 1.1, 0.80 replace_float = 604B28, 1.35, 0.85 replace_float = 604B30, 1.7, 0.90 replace_float = 604B38, 1.8, 0.95 replace_float = 604B40, 2.2, 1.0 replace_float = 604B48, 2.4, 1.025 replace_float = 604B50, 2.6, 1.05 replace_float = 604B58, 2.8, 1.1 </Patch> Therefore, we might say that it is about the values. |
Advert | |
|
05-09-2015, 03:14 AM | #66 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Thinking about it there could be a problem with the `My 10 line spacing values` patch. I would recommend using the `My 15 line spacing values` patch instead if you are having problems.
The possible problem is that the firmware builds a list of 15 values, and the 10 value patch just skips 5 of the original 15 values and inserts the other ten that it has modified into the slider widget. But when the device reads the saved value for a book from the database, it might search the list of 15 which includes 5 of the original values to try and find a match. It could potentially find a match with one of the values that the 10 value patch skipped, and I don't know what happens in that case. The 15 value patch modifies the whole list and inserts all 15 values into the slider, so there is no way the firmware can match a value on the list that is not also on the slider. I think I will remove the `My 10 line spacing values` patch in the future, unless anyone has a good reason for keeping it. Edit: Just to be clear, I don't know for sure that the `My 10 line spacing values` patch has a problem, I just haven't looked far enough into the code to know what happens with the 5 values that are skipped. Last edited by GeoffR; 05-09-2015 at 03:32 AM. Reason: Just to be clear ... |
05-09-2015, 04:00 AM | #67 |
Guru
Posts: 732
Karma: 5797160
Join Date: Jun 2010
Location: Istanbul
Device: Kobo Libra
|
I checked, custom 15 values have no problems. I didn't have any problems with your 10 values too but I only used it once before customizing. I checked your 10 values again, same problem persists. My not having problems that one time was an anomaly probably.
Only reason I am using 10 values is to bypass aesthetic problems with set top and bottom margins (Yes, I realize that I am just nitpicking). I changed to this now: # 15 values for replacement: replace_float = 604A48, 1.0, 0.7 replace_float = 604B10, 1.05, 0.75 replace_float = 604B18, 1.07, 0.8 replace_float = 604B20, 1.1, 0.825 replace_float = 604A50, 1.2, 0.85 replace_float = 604B28, 1.35, 0.875 replace_float = 604A58, 1.5, 0.9 replace_float = 604B30, 1.7, 0.925 replace_float = 604B38, 1.8, 0.95 replace_float = 604A60, 2.0, 0.975 replace_float = 604B40, 2.2, 1.0 replace_float = 604B48, 2.4, 1.25 replace_float = 604B50, 2.6, 1.5 replace_float = 604B58, 2.8, 1.75 replace_float = 604A68, 3.0, 1.1 This values solve the margin problems too, every step makes a difference in lower glyph sizes. |
05-09-2015, 02:27 PM | #68 | ||
Member
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: The Netherlands
Device: Kobo Glo
|
Quote:
"Result of running 'PRAGMA integrity_check' on database on the Kobo device: ok" Moreover, if I use the slider to set the line height, it does not affect the line height of other books, so the database seems to be OK. Quote:
The desired line height is 0.88, so I changed every 'replace_float' value to at least 0.88, also to no avail. So I wonder where that low value is taken from. Applying the 10 or 15 line patch makes no difference. Now the best solution I found until now is this one: in the global configuration file, .kobo/Kobo/Kobo eReader.conf, I set the line height to 0.88 manually: [Reading] readingLineHeight=0.88 I disabled both the 10 line and the 15 line patch. Now when starting the device, it reads this correct value of 0.88. The line height slider must never be touched again though, for that would set the value back to a minimum of 1.0. BTW, with one of the line height patches applied, this correct value of 0.88 was in the configuration file all the time, but the device does not seem to read it on startup then. It does pick up the value when the patches are disabled. |
||
05-09-2015, 08:13 PM | #69 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Are you reading epubs or kepubs? What other patches do you have enabled? Are you using full-screen reading mode? Edit: The other thing that would be interesting to check for anyone having similar problems is the line spacing value stored in the database for the book in question. You can do this with a SQL query such as: Code:
SELECT ReadingLineHeight FROM content_settings WHERE ContentID=='file:///mnt/onboard/H/Holdstock, Mythago Wood.epub'; Code:
SELECT ContentID FROM content WHERE BookID IS NULL AND IsDownloaded=='true' AND Title=='Mythago Wood'; Last edited by GeoffR; 05-09-2015 at 10:28 PM. Reason: ... check value stored in database ... |
|
05-10-2015, 02:17 AM | #70 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
To see them all, this will show all books with their own reading settings is: Code:
SELECT c.ContentID, Title, Attribution, ReadingFontFamily, ReadingFontSize, ReadingAlignment, ReadingLineHeight, ReadingLeftMargin, ReadingRightMargin FROM content c JOIN content_settings cs USING (ContentID) |
|
05-10-2015, 12:02 PM | #71 |
Member
Posts: 22
Karma: 26852
Join Date: Apr 2014
Device: Kobo H2O / PW2
|
I screwed up and tried to install this patch on top of 3.11 on my H2O. Now it it is stuck in the in the updated process (4 of 5 progress squares on the screen).
Did I just brick the device? Any way to recover from this boneheaded error? |
05-10-2015, 12:14 PM | #72 |
Member
Posts: 22
Karma: 26852
Join Date: Apr 2014
Device: Kobo H2O / PW2
|
Never mind. I was able to do a factory reset/restore and get back to square one. This time I'll upgrade to 3.15 before applying the patch
|
05-10-2015, 12:36 PM | #73 |
Member
Posts: 17
Karma: 7206
Join Date: Sep 2014
Location: Hungary
Device: Kobo Aura One, Kindle Oasis 2, Kindle Voyage, Onyx Boox Note
|
Special Thanks! Exellent!
|
05-10-2015, 02:30 PM | #74 | |
Member
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: The Netherlands
Device: Kobo Glo
|
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. Only epubs. Probably not relevant, but here they are: Custom reading footer style Custom left & right margins Custom font sizes Search in Library by default Unitless ePub line height Custom footer Fix page breaks bug This is unknown to me. Only present in kepubs I guess? Quote:
But, as explained, these are only read after something in the database has been altered. |
|
05-10-2015, 03:16 PM | #75 | |
Member
Posts: 11
Karma: 10
Join Date: Jun 2013
Location: The Netherlands
Device: Kobo Glo
|
Quote:
But there are similar programs for Windows. |
|
|
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 |