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 GEMINI_API_KEY = "here is my key" | |
local MY_LANGUAGE = "English" | |
local CONFIGURATION = { | |
-- Choose your preferred AI provider: "anthropic", "openai", "gemini", "openrouter", "deepseek" or "ollama" | |
provider = "gemini", | |
-- Provider-specific settings | |
provider_settings = { | |
anthropic = { |
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
-- MOVED TO https://github.com/sebdelsol/KOReader.patches | |
-- based on https://gist.github.com/IntrovertedMage/d759ff214f799cfb5e1f8c85daab6cae | |
-- 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 Blitbuffer = require("ffi/blitbuffer") | |
local Math = require("optmath") | |
local ProgressWidget = require("ui/widget/progresswidget") |
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
-- **MOVED to https://github.com/sebdelsol/KOReader.patches** | |
-- enhance compact items: | |
-- use the better frontlight icons, and add the battery percentage | |
-- better separator for title/chapter/author in compact mode with no separator | |
local ReaderFooter = require("apps/reader/modules/readerfooter") | |
local userpatch = require("userpatch") | |
local footerTextGeneratorMap = userpatch.getUpValue(ReaderFooter.applyFooterMode, "footerTextGeneratorMap") | |
local symbol_prefix = userpatch.getUpValue(footerTextGeneratorMap.frontlight, "symbol_prefix") |
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
-- **MOVED to https://github.com/sebdelsol/KOReader.patches** | |
-- fallback if there's no source for reference pages | |
-- gives the actual number of pages in the status bar page_progress & page_left_book instead of a label | |
local ReaderFooter = require("apps/reader/modules/readerfooter") | |
local ReaderPageMap = require("apps/reader/modules/readerpagemap") | |
local userpatch = require("userpatch") | |
local footerTextGeneratorMap = userpatch.getUpValue(ReaderFooter.applyFooterMode, "footerTextGeneratorMap") |
OlderNewer