2017-03-05 11:46:27 +00:00
|
|
|
local order = {
|
|
|
|
["KOMenu:menu_buttons"] = {
|
|
|
|
"navi",
|
|
|
|
"typeset",
|
|
|
|
"setting",
|
|
|
|
"tools",
|
|
|
|
"search",
|
|
|
|
"filemanager",
|
|
|
|
"main",
|
|
|
|
},
|
|
|
|
navi = {
|
|
|
|
"table_of_contents",
|
|
|
|
"bookmarks",
|
2017-09-23 16:25:22 +00:00
|
|
|
"bookmark_browsing_mode",
|
2017-04-06 12:56:40 +00:00
|
|
|
"----------------------------",
|
2017-03-05 11:46:27 +00:00
|
|
|
"go_to",
|
|
|
|
"skim_to",
|
2017-04-06 12:56:40 +00:00
|
|
|
"----------------------------",
|
2018-01-17 19:28:33 +00:00
|
|
|
"go_to_previous_location",
|
2017-03-05 11:46:27 +00:00
|
|
|
"follow_links",
|
|
|
|
},
|
|
|
|
typeset = {
|
|
|
|
"set_render_style",
|
2018-05-12 21:24:43 +00:00
|
|
|
"style_tweaks",
|
2017-04-06 12:56:40 +00:00
|
|
|
"----------------------------",
|
2017-03-05 11:46:27 +00:00
|
|
|
"change_font",
|
|
|
|
"hyphenation",
|
2018-05-14 18:35:49 +00:00
|
|
|
"floating_punctuation",
|
2017-04-06 12:56:40 +00:00
|
|
|
"----------------------------",
|
2018-05-14 18:35:49 +00:00
|
|
|
"switch_zoom_mode",
|
|
|
|
"----------------------------",
|
|
|
|
"page_overlap",
|
2017-04-06 12:56:40 +00:00
|
|
|
"speed_reading_module_perception_expander",
|
2018-05-14 18:35:49 +00:00
|
|
|
"----------------------------",
|
|
|
|
"highlight_options",
|
2017-03-05 11:46:27 +00:00
|
|
|
},
|
|
|
|
setting = {
|
|
|
|
"read_from_right_to_left",
|
|
|
|
-- common settings
|
|
|
|
-- those that don't exist will simply be skipped during menu gen
|
|
|
|
"frontlight", -- if Device:hasFrontlight()
|
|
|
|
"night_mode",
|
|
|
|
"----------------------------",
|
|
|
|
"network",
|
|
|
|
"screen",
|
|
|
|
"screensaver",
|
2018-01-30 11:12:52 +00:00
|
|
|
"document",
|
2018-04-09 07:22:16 +00:00
|
|
|
"navigation",
|
2017-03-05 11:46:27 +00:00
|
|
|
"----------------------------",
|
|
|
|
"language",
|
2017-08-15 17:54:02 +00:00
|
|
|
"time",
|
2017-03-05 11:46:27 +00:00
|
|
|
"----------------------------",
|
|
|
|
"djvu_render_mode",
|
|
|
|
"status_bar",
|
|
|
|
},
|
2018-05-13 19:27:52 +00:00
|
|
|
network = {
|
|
|
|
"network_wifi",
|
|
|
|
"network_proxy",
|
|
|
|
"network_restore",
|
|
|
|
"network_info",
|
|
|
|
"network_before_wifi_action",
|
|
|
|
"----------------------------",
|
|
|
|
"ssh",
|
|
|
|
},
|
2017-03-05 11:46:27 +00:00
|
|
|
tools = {
|
2017-04-06 09:12:35 +00:00
|
|
|
"read_timer",
|
2017-03-05 11:46:27 +00:00
|
|
|
"calibre_wireless_connection",
|
|
|
|
"evernote",
|
|
|
|
"statistics",
|
|
|
|
"progress_sync",
|
|
|
|
"zsync",
|
2017-05-08 20:15:42 +00:00
|
|
|
"news_downloader",
|
2018-02-22 23:02:32 +00:00
|
|
|
"send2ebook",
|
2017-06-24 07:55:31 +00:00
|
|
|
"----------------------------",
|
|
|
|
"more_plugins",
|
|
|
|
},
|
|
|
|
more_plugins = {
|
|
|
|
"auto_frontlight",
|
|
|
|
"frontlight_gesture_controller",
|
|
|
|
"battery_statistics",
|
|
|
|
"synchronize_time",
|
|
|
|
"keep_alive",
|
2017-04-02 06:50:24 +00:00
|
|
|
"terminal",
|
2017-06-24 07:55:31 +00:00
|
|
|
"storage_stat",
|
2017-03-05 11:46:27 +00:00
|
|
|
},
|
|
|
|
search = {
|
|
|
|
"dictionary_lookup",
|
2017-10-07 20:13:46 +00:00
|
|
|
"dictionary_lookup_history",
|
2017-08-22 15:24:31 +00:00
|
|
|
"dictionary_settings",
|
2017-07-03 06:29:11 +00:00
|
|
|
"----------------------------",
|
2017-03-05 11:46:27 +00:00
|
|
|
"wikipedia_lookup",
|
2017-12-17 12:02:08 +00:00
|
|
|
"wikipedia_history",
|
2017-08-22 15:24:31 +00:00
|
|
|
"wikipedia_settings",
|
2017-04-06 12:56:40 +00:00
|
|
|
"----------------------------",
|
|
|
|
"goodreads",
|
|
|
|
"----------------------------",
|
2017-03-05 11:46:27 +00:00
|
|
|
"fulltext_search",
|
|
|
|
},
|
|
|
|
filemanager = {},
|
|
|
|
main = {
|
|
|
|
"history",
|
|
|
|
"book_status",
|
2017-07-01 10:11:44 +00:00
|
|
|
"book_info",
|
2017-03-05 11:46:27 +00:00
|
|
|
"----------------------------",
|
2017-09-03 13:40:50 +00:00
|
|
|
"system_statistics",
|
|
|
|
"----------------------------",
|
2017-05-14 16:43:08 +00:00
|
|
|
"ota_update", --[[ if Device:isKindle() or Device:isKobo() or
|
|
|
|
Device:isPocketBook() or Device:isAndroid() ]]--
|
2017-03-05 11:46:27 +00:00
|
|
|
"version",
|
|
|
|
"help",
|
2017-05-14 16:43:08 +00:00
|
|
|
"----------------------------",
|
2017-09-03 13:40:50 +00:00
|
|
|
"exit_menu",
|
2017-03-05 11:46:27 +00:00
|
|
|
},
|
2017-04-03 21:52:47 +00:00
|
|
|
help = {
|
2017-04-15 12:45:56 +00:00
|
|
|
"quickstart_guide",
|
|
|
|
"----------------------------",
|
2017-04-03 21:52:47 +00:00
|
|
|
"report_bug",
|
|
|
|
"----------------------------",
|
|
|
|
"about",
|
|
|
|
},
|
2017-09-03 13:40:50 +00:00
|
|
|
exit_menu = {
|
|
|
|
"restart_koreader",
|
|
|
|
"----------------------------",
|
|
|
|
"sleep", -- if Device:isKindle() or Device:isKobo()
|
|
|
|
"poweroff", -- if Device:isKobo()
|
|
|
|
"reboot", -- if Device:isKobo()
|
|
|
|
"----------------------------",
|
|
|
|
"exit",
|
|
|
|
}
|
2017-03-05 11:46:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return order
|