|
|
@ -8,7 +8,6 @@ require "ui/infomessage"
|
|
|
|
require "document/document"
|
|
|
|
require "document/document"
|
|
|
|
require "alt_getopt"
|
|
|
|
require "alt_getopt"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function showReader(file, pass)
|
|
|
|
function showReader(file, pass)
|
|
|
|
local document = DocumentRegistry:openDocument(file)
|
|
|
|
local document = DocumentRegistry:openDocument(file)
|
|
|
|
if not document then
|
|
|
|
if not document then
|
|
|
@ -105,6 +104,12 @@ if optarg["G"] ~= nil then
|
|
|
|
globalgamma = optarg["G"]
|
|
|
|
globalgamma = optarg["G"]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if Device.isKindle4() then
|
|
|
|
|
|
|
|
-- remove menu item shortcut for K4
|
|
|
|
|
|
|
|
Menu.is_enable_shortcut = false
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- set up reader's setting: font
|
|
|
|
-- set up reader's setting: font
|
|
|
|
G_reader_settings = DocSettings:open(".reader")
|
|
|
|
G_reader_settings = DocSettings:open(".reader")
|
|
|
|
fontmap = G_reader_settings:readSetting("fontmap")
|
|
|
|
fontmap = G_reader_settings:readSetting("fontmap")
|
|
|
|