Thread: Kobo Start Menu
View Single Post
Old 04-04-2014, 05:43 AM   #129
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by gong View Post
I would like to be able to launch koreader with 2 different readerpaging.lua (I need 2 different values for page overlap).
An alternative way to the one proposed by Ken might be the following. However, be warned: I have no experience with lua, and I did not test what I am proposing. And it is a lot more work than Ken's solution. But (if it works) it could serve as a template for alternative configuration that include several lua-files.
Spoiler:
Step 1
copy readerpaging.lua to readerpaging2.lua; make the appropriate changes in readerpaging2.lua

Step 2
copy koreader\frontend\ui\readerui.lua to koreader\frontend\ui\readerui2.lua

Replace in readerui2.lua
Code:
local ReaderPaging = require("ui/reader/readerpaging")
with
Code:
local ReaderPaging = require("ui/reader/readerpaging2")
Step 3
copy koreader\reader.lua to koreader\reader2.lua
Replace in reader2.lua
Code:
local ReaderUI = require("ui/readerui")
with
Code:
local ReaderUI = require("ui/readerui2")
Step 4
copy kbmenu\onstart\koreader_kobo.sh to kbmenu\scripts\koreader_kobo2.sh
replace in koreader_kobo2.sh
Code:
./reader.lua /mnt/onboard 2> crash.log
with
Code:
./reader2.lua /mnt/onboard 2> crash.log

To start the koreader with this configuration, select "scripts > koreader kobo2.sh." If this works, we can can think about how to automatically include such alternative koreader options to the main menu (home).

Quote:
Originally Posted by gong View Post
I think I found a typo in the help file for script section, backup is spelled packup (?).
Apart from typos, there are certainly several unclear, if not wrong passages in the Kobo Start Menu. And I happily correct them with the next update, if somebody tells me about it. I will correct this one in the next version. Thank you!

Last edited by tshering; 04-04-2014 at 06:25 AM.
tshering is offline   Reply With Quote