Thanks a lot for excellent release. One remark: it's quite common to pack fb2-files. I've just a bit modified your lua-scripts and found out that just simple adding one more extention file_type == "zip" in filechooser.lua and reader.lua does allow to open zipped fb2 in kindlepfdviewer. Awesome!
BTW, crengine supports mobi as well.
Could you, please, give a tip how could i change default font for crengine to display main text?
[EDIT] It might also be useful to add a possibility to delete files / folders and to make new folders like
Quote:
Originally Posted by filechooser.lua
function FileChooser:choose(ypos, height)
...
elseif ev.code == KEY_DEL then
local newdir = self.dirs[perpage*(self.page-1)+self.current]
if newdir ~= ".." then
answer = InputBox:input(height-100, 100, "Delete (y/n)?")
if answer == "y" then
if newdir then
-- delete directory under cursor
os.remove(self.path.."/"..newdir)
self:setPath(self.path)
else
-- delete file under cursor
os.remove(self.path.."/"..self.files[perpage*(self.page-1)+self.current - #self.dirs])
self:setPath(self.path)
end
end
end
pagedirty = true
elseif ev.code == KEY_M then
dir = InputBox:input(height-100, 100, "Make New Dir:")
if dir then
return nil, function()
os.execute("mkdir "..self.path.."/"..dir)
self:setPath(self.path)
pagedirty = true
end
end
self:setPath(self.path)
pagedirty = true
elseif ev.code == KEY_BACK or ev.code == KEY_HOME then
return nil
|