06-06-2019, 12:42 PM | #1021 |
hopeless n00b
Posts: 5,111
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. |
06-09-2019, 11:44 AM | #1022 |
Connoisseur
Posts: 78
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. |
06-09-2019, 12:58 PM | #1023 |
Wizard
Posts: 1,613
Karma: 724945
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?
|
06-09-2019, 01:59 PM | #1024 |
Member
Posts: 15
Karma: 10
Join Date: May 2019
Device: KT4
|
|
06-09-2019, 02:03 PM | #1025 |
Connoisseur
Posts: 78
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. |
06-09-2019, 02:30 PM | #1026 |
Wizard
Posts: 1,613
Karma: 724945
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, } |
06-09-2019, 02:52 PM | #1027 |
Connoisseur
Posts: 78
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.
|
06-09-2019, 03:08 PM | #1028 |
Connoisseur
Posts: 78
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. |
06-09-2019, 03:51 PM | #1029 |
Wizard
Posts: 1,613
Karma: 724945
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, } |
06-09-2019, 04:10 PM | #1030 |
Connoisseur
Posts: 78
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
Nothing happens. I'll go tomorrow. Thank!
|
06-10-2019, 07:35 AM | #1031 |
Guru
Posts: 885
Karma: 10113994
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5 [bricked], Kindle PW1
|
Last "element" in that "options list" shouldn't end with a comma. That is a syntax error.
|
06-10-2019, 09:13 AM | #1032 |
Wizard
Posts: 1,613
Karma: 724945
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. |
06-10-2019, 12:04 PM | #1033 |
BLAM!
Posts: 13,477
Karma: 26012492
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. |
06-10-2019, 12:23 PM | #1034 |
Connoisseur
Posts: 78
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
|
|
06-10-2019, 02:05 PM | #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 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) | chrox | KOReader | 566 | Yesterday 05:28 AM |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 11:49 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 |