mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
3a76ec91fd
- long lines (filenames in 'Document Info') are now splitted in more human-readable way (by spaces, dots, slashes or some other characters - see screenshot) - the selection of fonts in filemanager (key 'F' or 'Aa') looks now more user-friendly - fixed too long strings in most menues (TOC, Bookmarks, Fonts...) and in the popup with the reading progress (called by key 'Menu') - the position inside the cr-documents (epub, mobi...) now remain nearly the same after rescaling the document (i.e. changing the font face, size, boldface and interline distance) - when you open TOC-menu or Fonts Menu, it highlights the current item (i.e. current chapter and current fontface). - i've a bit changed the way to read the battery level values, it might now work even without Amazon Kindle framework.
25 lines
538 B
Lua
25 lines
538 B
Lua
-- List of acceptable extentions
|
|
|
|
ext = {
|
|
djvuRead = ";djvu;",
|
|
pdfRead = ";pdf;xps;cbz;",
|
|
creRead = ";epub;txt;rtf;htm;html;mobi;prc;azw;fb2;chm;pdb;doc;tcr;zip;"
|
|
-- seems to accept pdb-files for PalmDoc only
|
|
}
|
|
|
|
function ext:getReader(ftype)
|
|
local s = ";"
|
|
if ftype == "" then
|
|
return nil
|
|
elseif string.find(self.djvuRead,s..ftype..s) then
|
|
return DJVUReader
|
|
elseif string.find(self.pdfRead,s..ftype..s) then
|
|
return PDFReader
|
|
elseif string.find(self.creRead,s..ftype..s) then
|
|
return CREReader
|
|
else
|
|
return nil
|
|
end
|
|
end
|
|
|