![]() |
#1021 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Still unresponsive.
Tried to be a bit methodical in the touch input if that helps any.
I may have switched #4 and #5. Ugh, I'm too young for my memory to be failing. ![]() |
![]() |
![]() |
![]() |
#1022 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
I want to change the size of the upper status bar, for this I insert a new parameter in settings.reader.lua:
["cre_header_status_font_size"] = 40, but this entry is not saved. I edit using TextEdit.app on MacOS. |
![]() |
![]() |
Advert | |
|
![]() |
#1023 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,766
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
What do you mean by it isn't saved? Are you doing this while KOReader is running?
|
![]() |
![]() |
![]() |
#1024 |
Member
![]() Posts: 15
Karma: 10
Join Date: May 2019
Device: KT4
|
|
![]() |
![]() |
![]() |
#1025 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
Frenzie
I save the document, reload KOREader and nothing changes in the interface. Again I open settings.reader.lua and no changes have been saved to it. |
![]() |
![]() |
Advert | |
|
![]() |
#1026 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,766
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
If KOReader overwrites your changes it means it's restoring them from the backup, i.e., you introduced a syntax error. Which is weird, because your fragment works for me.
It needs to go in between the return {}: Code:
return { ["cre_header_status_font_size"] = 40, } |
![]() |
![]() |
![]() |
#1027 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
The comma is part of the text. Thank. I'll try again, but more carefully.
|
![]() |
![]() |
![]() |
#1028 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
I do not understand the location of { } at the beginning and at the end.
-- we can read Lua syntax here! return { ["cre_header_status_font_size"] = 40, ["copt_line_spacing"] = 110, ["disable_double_tap"] = true, ["copt_render_dpi"] = 300, ["start_with"] = "last", ["disable_kobolight"] = true, ["cre_header_status_font_size"] = 30, ["full_refresh_count"] = 12, ["larger_tap_area_to_follow_links"] = true, ["copt_b_page_margin"] = 10, ["gesture_fm"] = { that doesn't work. Last edited by makara; 06-09-2019 at 03:32 PM. |
![]() |
![]() |
![]() |
#1029 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,766
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
It should, unless that represents the actual end result instead of merely the first few lines. A complete file would look like this:
Code:
return { ["cre_header_status_font_size"] = 40, ["copt_line_spacing"] = 110, ["disable_double_tap"] = true, ["copt_render_dpi"] = 300, ["start_with"] = "last", ["disable_kobolight"] = true, ["cre_header_status_font_size"] = 30, ["full_refresh_count"] = 12, ["larger_tap_area_to_follow_links"] = true, ["copt_b_page_margin"] = 10, } |
![]() |
![]() |
![]() |
#1030 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
Nothing happens. I'll go tomorrow. Thank!
|
![]() |
![]() |
![]() |
#1031 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,125
Karma: 12345678
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
Last "element" in that "options list" shouldn't end with a comma. That is a syntax error.
|
![]() |
![]() |
![]() |
#1032 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,766
Karma: 731681
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Not only is it not a syntax error, but removing trailing commas is bad practice.
Last edited by Frenzie; 06-10-2019 at 09:21 AM. |
![]() |
![]() |
![]() |
#1033 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@jhh: Thanks for double-checking
![]() Unfortunately, input handling gives me hives, so, this is going to need a willing dev with the device to figure out :/. It's *probably* something stupidly simple, but, still, hard (and/or annoying ;p) to remotely debug, even if I actually liked dealing with input crap ^^. EDIT: Opened #5070 to track it. Last edited by NiLuJe; 06-10-2019 at 02:10 PM. |
![]() |
![]() |
![]() |
#1034 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
|
![]() |
![]() |
![]() |
#1035 |
Member
![]() Posts: 15
Karma: 10
Join Date: May 2019
Device: KT4
|
Ok, @NiLuJe and @ilovejedd, thanks a lot for your work so far!
|
![]() |
![]() |
![]() |
Tags |
application, k5 tools, kindle, launcher add-ons, lua, reader, touch |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) | chrox | KOReader | 586 | 08-02-2025 03:46 AM |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1289 | 04-07-2025 10:18 AM |
KPV: a PDF reader for Kindle, based on muPDF, GPLv3 | hawhill | Kindle Developer's Corner | 1056 | 11-11-2017 03:07 AM |
Hacked Up Reader for epub/fb2/txt/rtf/html/pdb/etc | bhaak | Kindle Developer's Corner | 296 | 10-01-2016 01:11 PM |
A real PDF to epub/djvu/rtf/html software?. | DsOft | ePub | 35 | 01-02-2011 03:57 PM |