![]() |
#1 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Configuration KOReader / Kindle NT4
Good afternoon everyone
I'm having some difficulty in configuring koreader (2020.03) for my Kindle NT 4. At the moment, epub documents are edge to edge, and I'm trying to bring them in slightly to speed read For some reason, I am unable to set the L/R margins for epub files, so reading the wiki, I changed defaults.lua, that didn't work, so I also changed cr3.ini (which also didn't work). I wondered what I'm doing wrong? |
![]() |
![]() |
![]() |
#2 |
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
|
I don't recall if the (in-document) bottom menu is accessible on non-touch devices, which might explain your predicament, because this is where margin controls are located
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Yep! When I go to try and select the margins via the front end, it just hangs, so I thought I'd edit the configuration file itself - it seems koreader isn't reading them for some reason
![]() |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Opps, sorry clicked reply too quick. The bottom menu can be accessed by pressing the paddle in the middle, top menu via the normal menu button. All bottom menus work, apart from trying to select the margins
|
![]() |
![]() |
![]() |
#5 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Hey Tired.
Sadly KOReader isn't tested on non-touch devices. I can reproduce your issue on the emulator with Code:
export DISABLE_TOUCH=1 KOReader works based on modularity, so some settings only apply to a subset of documents. If you want to make changes to all documents you can edit settings.reader.lua To modify Left/Right page margins to 20 add Code:
["copt_h_page_margins"] = { [1] = 20, [2] = 20 }, Code:
["copt_t_page_margin"] = 20 Code:
["copt_b_page_margin"] = 20 ![]() Last edited by pazos; 04-13-2020 at 02:48 PM. Reason: be real |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Thankyou for that pazos!
I've added the extra, and it doesn't seem to be working (I changed to larger numbers just to check): -- we can read Lua syntax here! return { ["activate_menu"] = "swipe_tap", ["show_unsupported"] = true, ["autoturn_timeout_seconds"] = 20, ["filemanagermenu_tab_index"] = 6, ["quickstart_shown_version"] = 202003020000, ["show_hidden"] = true, ["dicts_disabled"] = {}, ["lastfile"] = "/mnt/us/documents/Bazerman, Max/Power of Noticing, The - Max Bazerman.epub", ["style_tweaks"] = { ["footnote-inpage_epub_smaller"] = true, ["footnote-inpage_fb2"] = true }, ["device_id"] = "xxx", ["copt_h_page_margins"] = { [1] = 50, [2] = 50, ["copt_b_page_margin"] = 50, ["copt_t_page_margin"] = 50 }, ["plugins_disabled"] = { ["perceptionexpander"] = true, ["goodreads"] = true, ["newsdownloader"] = true, ["evernote"] = true, ["kobolight"] = true, ["storagestat"] = true, ["keepalive"] = true }, ["night_mode"] = false, ["lastdir"] = "/mnt/us/documents/Bazerman, Max", ["dev_no_c_blitter"] = true, ["statistics"] = { ["calendar_browse_future_months"] = false, ["calendar_start_day_of_week"] = 2, ["convert_to_db"] = true, ["max_sec"] = 120, ["is_enabled"] = true, ["min_sec"] = 5, ["calendar_show_histogram"] = true, ["calendar_nb_book_spans"] = 3 }, ["auto_save_settings_interval_minutes"] = 15, ["coverbrowser_initial_default_setup_done"] = true } |
![]() |
![]() |
![]() |
#7 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
hey Tired! Instead of
Code:
["copt_h_page_margins"] = { [1] = 50, [2] = 50, ["copt_b_page_margin"] = 50, ["copt_t_page_margin"] = 50 }, Code:
["copt_h_page_margins"] = { [1] = 50, [2] = 50 }, ["copt_b_page_margin"] = 50 ["copt_t_page_margin"] = 50 |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Thankyou pazos
I've changed it - didn't work ![]() |
![]() |
![]() |
![]() |
#9 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Indeed, my fault. The file isn't intended to be updated manually, so to make sure I don't make syntax errors again I will move these key/value pairs to the beginning of the file. Now with healthy syntax
![]() Code:
-- we can read Lua syntax here! return { ["copt_h_page_margins"] = { [1] = 50, [2] = 50 }, ["copt_b_page_margin"] = 50, ["copt_t_page_margin"] = 50, |
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
This is a bit strange, deleted the settings.reader.lua and let the system re-create, pasted the code up the top on the new file, went into an epub document (no margins again), I re-opened the file and noticed the system has moved the code to two places!?
-- we can read Lua syntax here! return { ["lastfile"] = "/mnt/us/documents/Bazerman, Max/Power of Noticing, The - Max Bazerman.epub", ["style_tweaks"] = { ["footnote-inpage_epub_smaller"] = true, ["footnote-inpage_fb2"] = true }, ["device_id"] = "XXX", ["copt_h_page_margins"] = { [2] = 50, [1] = 50 }, ["coverbrowser_initial_default_setup_done"] = true, ["lastdir"] = "/mnt/us/documents/Bazerman, Max", ["dicts_disabled"] = {}, ["quickstart_shown_version"] = 202003020000, ["statistics"] = { ["calendar_browse_future_months"] = false, ["calendar_start_day_of_week"] = 2, ["convert_to_db"] = true, ["max_sec"] = 120, ["is_enabled"] = true, ["min_sec"] = 5, ["calendar_show_histogram"] = true, ["calendar_nb_book_spans"] = 3 }, ["copt_b_page_margin"] = 50, ["dev_no_c_blitter"] = true, ["copt_t_page_margin"] = 50 } |
![]() |
![]() |
![]() |
#11 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Yeah, these settings should work. Are you sure the css of that specific epub don't force specific margins?.
KOReader is intended to respect CSS rules. So if the css force specific margins you'll need to disable epub css (completely, affects everything) or go to style tweaks -> page -> ignore margins and .. -> and check both ignore vertical and horizontal margins. On touch devices a long press on a checkbox will ask you if you want to set it as default for all documents. If that doesn't happen on NT you'll need to add these style-tweaks to settings.reader.lua too. |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Hmmm, it's not having it at all even after those tweaks, looks like I'm going to have to give up on it
|
![]() |
![]() |
![]() |
#13 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
This whole topic is annoying as hell, but that's the current limitation of NT devices. Once you done this and things start to work new documents will open with your saved values. ![]() |
|
![]() |
![]() |
![]() |
#14 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Yay that worked! Thankyou!
Do you know where I can find documentation so I can set about adding system wide defaults (like fonts and ignoring the margins) I speed read and find these hard buttons invaluable, I did have a paperwhite but gave it away as couldn't get on with the touchy screen ![]() |
![]() |
![]() |
![]() |
#15 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2019
Device: Kindle 4 Paddle (2011)
|
Spent an hour this morning getting all the settings working - looking great!
The only thing that doesn't propagate across to the books is the font (I use Noto Sans, books default is always Noto Serif), but apart from selecting the font once on every book, it works! Thankyou very much for your patience and help Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader en français / KOReader in french | cramoisi | Software | 33 | 04-04-2020 12:14 PM |
Can I use KOReader on Kindle Voyage? | warface9991 | KOReader | 3 | 11-18-2019 12:04 PM |
KOreader : Kindle or Kobo | cmoim | Which one should I buy? | 0 | 05-24-2017 04:15 PM |
Kindle-KOReader | JosephWebber | KOReader | 1 | 09-25-2015 12:09 PM |
Custom ScreenSaver for Kindle NT4 black? | goodnerd | Kindle Developer's Corner | 2 | 07-29-2013 12:37 AM |