![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
CSS not correctly applied after shutdown and reopening
⚠️[Problem solved thanks to Semwize]⚠️
Hi guys, When I shutdown my Kobo Forma, start it again, and reopen the .epub I was reading, line-height property adjusted by the slider isn't properly applied (see by yourselves, two attached pictures showing what happens). I don't find any long-term solution, considering I already removed any line-height property of the book by conversion (double-checked the book stylesheet, no line-height property remaining). I did find a temporary solution, which is touching anything on the Kobo slider, forcing the epub reader to refresh, and everything is back to normal (until next shutdown). Did I miss something ? Thanks for any help. Last edited by JLB14; 04-27-2021 at 07:05 PM. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why are you shutting down your Forma?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
Less energy allegedly consumed (despite not supposed to, my Aura One, even in flight mode, tended to drain very quickly in sleep mode, and shutting it down after reading sessions solved that issue).
I assumed it'd be the same with the Forma. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,465
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Not an issue with my Libra, so try just putting your Forma to sleep for a while and see what happens.
|
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
Quote:
Otherwise, no idea why the Kobo config file (and inherent line-height value) isn't properly applied, for line-height only, when opening an epub ? |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,505
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Just curious as to whether or not you have any patches or modifications to the Kobo firmware installed?
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,505
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Sigh. So what patches ARE installed? For all we know it might be an issue with one of the patches?
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
Quote:
By the way, I did check my enabled / disabled patches too, before posting, and I didn't see anything irregular. Nonetheless, I gladly post my patches' list (please see the two attached files). |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,505
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I've no interest in applying patches. I'd suggest you unpatch and test again
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
|
@JLB14
Try changing the font and testing again. This could be due to the line-height of the font. |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
What happens if:
For all the above, it should use the changed settings. The behaviour you are seeing is suggesting that the changes are not being saved. Or not being saved properly. Are there any other problems that are noticeable after the poweroff? Such as losing the reading position or books disappearing. The problem you describe could be related to a database corruption. There could be an issue with the database that is preventing the settings being saved for the book in the database. When this happens, when you reboot the device and the database is read, old data is read from the database leading to issues like you are seeing. If this is the case for you, it suggests you had previously set the line height for the book and it is using that rather than getting it from the config file. You can test the database by connecting to a PC and using an SQLite database manager. These will have a tool to do it. Or, if you are a calibre user, my Kobo Utilities plugin has the function. |
|
![]() |
![]() |
![]() |
#13 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
Quote:
I've done what you suggested, let me give you the results, point by point : 1) Back to home, and reopen -> CSS OK. Back to home, set as unread, reopen -> CSS OK. 2) Back to home, new book freshly transferred and never read, neither transferred before -> CSS OK. 3) Book 1, Book 2, Book 3, Book 2, Book 1 -> CSS OK for all. 4) After shutdown, same issue for all, but correct it for one, then all are OK (touching "deactivate alignment", for example). 5) After doing all the recommended changes, same problem after shutdown. I thought too it was database related, so yesterday I logged out, rebuilding the database, and it changed nothing. I've just checked the database integrity with Calibre, and it's perfectly fine. Last edited by JLB14; 04-26-2021 at 09:21 AM. |
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The suggestion is to do what everyone else does and don't shutdown. Put your Forma to sleep. I never shut down my H2O. I just put it to sleep when I am done using it. I've had my H2O for 6 years 5 months.
|
![]() |
![]() |
![]() |
#15 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 983236
Join Date: Aug 2016
Location: Caen, France
Device: Kobo Sage
|
I will change my old habits, and proceed like that (as previously mentioned, Aura One had issues with sleep mode, that's why I did that, "just in case").
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reopening CC loses position, and reader app doesn't reopen at current position | iatheia | Calibre Companion | 9 | 11-13-2015 08:20 PM |
Free (nook/Kindle/Kobo/iTunes) Grand Reopening of Dandelion Café [Chick-Lit Business] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 11-02-2015 06:49 AM |
Font from extra-css is not looked-up correctly | iliakan | Conversion | 1 | 01-11-2015 07:59 AM |
CSS not applying correctly in E-Book Viewer. | therealdrag0 | Calibre | 6 | 10-20-2011 11:19 AM |
Inline css not handled correctly by HTML to epub? | kiwidude | Conversion | 7 | 04-04-2011 09:59 AM |