This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- based on https://gist.github.com/IntrovertedMage/d759ff214f799cfb5e1f8c85daab6cae and https://gist.github.com/sebdelsol/eba2e492473ac1f9e0ecb003d403b7de | |
-- Menu added in the Reader menu: | |
-- settings > Status bar > Progress bar > Thickness, height & colors > Read color | |
-- settings > Status bar > Progress bar > Thickness, height & colors > Unread color | |
local ReaderFooter = require("apps/reader/modules/readerfooter") | |
local ProgressWidget = require("ui/widget/progresswidget") | |
local BD = require("ui/bidi") | |
local Blitbuffer = require("ffi/blitbuffer") | |
local Geom = require("ui/geometry") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local readerFooter = require("apps/reader/modules/readerfooter") | |
local ProgressWidget = require("ui/widget/progresswidget") | |
local BD = require("ui/bidi") | |
local Blitbuffer = require("ffi/blitbuffer") | |
local Geom = require("ui/geometry") | |
local Math = require("optmath") | |
local Screen = require("device").screen | |
-- Somewhat empirically chosen threshold to switch between the two designs ;o) | |
local INITIAL_MARKER_HEIGHT_THRESHOLD = Screen:scaleBySize(12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local FileManager = require("apps/filemanager/filemanager") | |
local BD = require("ui/bidi") | |
local Device = require("device") | |
local filemanagerutil = require("apps/filemanager/filemanagerutil") | |
local Screen = Device.screen | |
FileManager.title = "" | |
function FileManager:updateTitleBarPath(path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--SETTINGS--======================================== | |
local api_key = "ENTER API KEY HERE" | |
local USE_FOR_TRANSLATION = true | |
local USE_FOR_DETECTION = true | |
local SHOW_DEEPL_LANGUAGES_AS_OPTIONS = true | |
-------------========================= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReaderHighlight = require("apps/reader/modules/readerhighlight") | |
local Translator = require("ui/translator") | |
local _ = require("gettext") | |
local ffiUtil = require("ffi/util") | |
local T = ffiUtil.template | |
ReaderHighlight.onTranslateText = function (self, text, index) | |
Translator:showTranslation(text, true, nil,self.ui.doc_settings:readSetting("translator_to_language",G_reader_settings:readSetting("translator_to_language")) , true, index) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local FileManager = require("apps/filemanager/filemanager") | |
-- Type what you want to replace the 'KOReader' title above your filemanger in the quotes on the next line | |
local title = "ENTER CUSTOM TITLE HERE (ORIGINALLY 'KOReader')" | |
-- Example: local title = "Library" | |
FileManager.title = title |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--=====SETTINGS==================================================================== | |
local maxEntries = 1000 | |
local onlyShowPreferred = true | |
--================================================================================= | |
local ReaderDictionary = require("apps/reader/modules/readerdictionary") | |
local ButtonDialog = require("ui/widget/buttondialog") | |
local Device = require("device") |