Commit Graph
6462 Commits
Author SHA1 Message Date
hius07 ae5e94db77 Stable pages in file browser 3 (#14952)
Patterns %c (current page) and %t (total pages) will show the same values in reader and file browser.
2026-02-16 21:12:31 +02:00
David 09982fe6cb NT: stop text selection before any reflow action occurs (#14949)
* refactor onStopHighlightIndicator so it returns early

* stop text selection when opening menus or triggering hotkeys

* use self.ui.highlight (naturally)

* remove duplicated setDirty
2026-02-16 14:23:02 +00:00
Benoit Pierre 37cf09b12d sdl: switch to SDL3 (3.4.0) (#14983) 2026-02-15 16:43:29 +01:00
poire-z bda24c8755 Wikipedia EPUBs: use 1.5x image when 2x not available (#14984)
Looks like there are more images with srcset 1.5x than with 2x.
2026-02-15 16:34:21 +01:00
poire-z e535b2b6e6 ReaderHighlight:onHoldPan(): remove abort on empty selection
We may happen to have an empty selection while panning,
no reason to abort the selection yet before release.
Also add get_segments=true to remaining calls to
getScreenBoxesFromPositions() that we forgot to
update to use it.
2026-02-14 22:18:29 +01:00
poire-z 3e931f72a9 Dispatcher: add "Edit/toggle book-specific style tweak" (#14944) 2026-02-10 00:58:00 +01:00
hius07 01156923de readerhighlight: invert dialog colors in night mode (#14923) 2026-02-07 18:15:44 +02:00
hius07 788d4e0c52 Fix long-pressing on unopened book with status (#14947) 2026-02-07 17:28:37 +02:00
David 642ec66d68 [InputText, ReaderStyleTweak] Add copy/paste to NT devices (#14941)
Closes #12772.
2026-02-06 22:44:50 +01:00
David 3103627ff9 [DictQuickLookup] NT: add key_event for following links and switching (dict-wiki) domains (#14909)
* Removed the hold-duration logic for switching between dictionary and wiki lookups, simplifying the process and removing timing-based domain switching, this was a terrible idea on my part (in hindsight, the implementation I mean). 
* Added a new `TextSelectorModifierPress` key event and corresponding handler (`onTextSelectorModifierPress`) to explicitly switch domains (Dict <-> Wiki) during text selection, and for following links inside dictionary entries, thus making the feature more discoverable and reliable.
* Refactored the lookup logic into a dedicated `_performLookupOnSelection` function, improving code clarity.
* Updated the gesture coordinate calculation in `_createTextSelectionGesture` to use `text_widget` absolute position instead of `definition_widget`, ensuring correct screen coordinates and accounting for container padding.
2026-02-06 11:27:35 +01:00
David 0fb2840a0d [InputText] Decouple text input state from VirtualKeyboard visibility pt. 2 (#14937)
Follow-up to https://github.com/koreader/koreader/pull/14901
2026-02-05 23:59:47 +01:00
hius07 d62de31b5b Page turns by swipes with disabled touch input (#14914)
- Discussed in #10273
2026-02-05 22:11:18 +01:00
David 2cb6f157ff [TextViewer] bug fix, don't crash on Menu press (#14936) 2026-02-05 17:03:34 +01:00
David 66e22590ef [NT] ImageViewer: add pan key_events to viewer (#14938)
Fixes #14934.
2026-02-05 16:25:11 +01:00
hius07 18dd8db12d Bookmark browser: fix item font size init (#14926) 2026-02-04 21:03:37 +02:00
David 8285f4e3bb [InputText] Decouple text input from VirtualKeyboard visibility (#14901)
Previously, on SDL targets (Desktop, Ubuntu Touch), the system text input loop was gated by the visibility of the On-Screen Virtual Keyboard. Hiding the VK would call Device:stopTextInput, effectively disabling the physical keyboard.

This commit binds the text input state to the lifecycle of the InputText widget instead:

* Improve up/down behavior. Down at the end of an input moves focus down, up at the beginning moves focus up.

* Undo removal of key_event for touch devices, allowing vk to work regardless of vk state, #FreeTheKeyboard
2026-02-03 22:10:53 +01:00
hius07 0244595c6d filemanagercollection: fix disabling 'Export highlights' button (#14917) 2026-02-03 16:07:33 +02:00
hius07 08ea73f733 Bookmark browser (#14899)
* Add BookmarkBrowser widget

* filemanager: add bookmark browser

* filemanagercollection: add bookmark browser

* filemanagerhistory: add bookmark browser

* readerui: add after_open_callback to showReader()

* filemanager_menu_order: add bookmark browser

* reader_menu_order: add bookmark browser

* dispatcher: add bookmark browser

* util: add stringLower()

* bookmarkbrowser: show chapter in bookmark details

* bookmarkbrowser: detect currently opened new book

* readerbookmark: fix updating BookInfo cache on removing a bookmark
2026-02-03 08:02:07 +02:00
Jannick Fahlbusch 323e6223a0 [Pocketbook] Also apply rotation fix on Era Color (#14904)
@theboomr reported [here](https://github.com/koreader/koreader/issues/11033#issuecomment-3826561716), that the rotation issue #11033 is also affecting the Pocketbook Era Color.
2026-01-31 22:58:53 +01:00
Emdioh 4d38174e30 util.urlEncode: encode parentheses and quote (#14718)
Closes #14715.
2026-01-31 01:13:18 +01:00
hius07 ae09757e48 ReaderBookmark: color in bookmark list (#14714) 2026-01-30 07:54:48 +02:00
hius07 b2b02e7813 Highlights: improve 'Set color' dialog (#14699) 2026-01-30 07:50:04 +02:00
Jannick Fahlbusch da34d0e958 [PB700] Simplify rotation suspension fix (#14897)
https://github.com/koreader/koreader/pull/14895 is a bit inefficient and does not take the option to lock the orientation in place.

This change reuses the existing functionality and in turn respects the other settings as well
2026-01-29 16:49:14 +01:00
poire-z 34f9f3c5ec TextBoxWidget: invert images when in night mode (#14893)
So Wikipedia articles images don't look inverted.
2026-01-29 00:44:22 +01:00
Jannick Fahlbusch 3554b6aa5d [PB700] Fix auto-orientation inversion after suspension (#14895)
Fixes https://github.com/koreader/koreader/issues/11033.

Depends on additional change in the available C-bindings from https://github.com/koreader/koreader-base/pull/2260

Also includes https://github.com/koreader/koreader-base/pull/2233
2026-01-29 00:10:14 +01:00
David cd49bf335a [ReaderDictionary] clean stress marks from selection for dict search (#14856) 2026-01-27 14:20:22 +01:00
hius07 ea6089b6d8 readerhighlight: fix tapping on self-overlapping highlight (#14852) 2026-01-20 20:58:24 +02:00
Mickaël Schoentgen f01c1171c2 feat: add lithuanian reader.dict monolingual dictionary (#14839) 2026-01-18 11:49:57 +01:00
Benoit Pierre 75d47c9aa7 kindle: fix restart on special offers devices (#14837)
Fix leftover use of `ffi/input` (removed in #12486). Close #14833.
2026-01-18 10:23:24 +01:00
hius07 8aa0322ab7 Execute multi-action gesture/profile one by one (#14803) 2026-01-16 08:42:13 +02:00
cb12tre 9702aaaed9 Add error handling to Kindle Wi-Fi functions (#14817)
Wrap LIPC calls in pcall() to prevent crashes when accessing Wi-Fi properties.

This PR adds error handling to five critical functions that interact with the Kindle's LIPC (Lab126 IPC) system for Wi-Fi management. Without proper error handling, these functions can crash KOReader when LIPC calls fail.
2026-01-15 19:36:08 +01:00
jonnyl2 3e6d50f464 Readerlink: add notification when following internal links on pdf (#12933) 2026-01-12 15:18:48 +01:00
Erik f9270bfec2 Update device.lua to support Tolino Vision Color (monzaKobo) (#14801) 2026-01-08 22:58:45 +01:00
poire-z e1c5f35d37 Wikipedia: revamp languages handling
Replace the cumbersome implementation of language rotation
with a more natural language selection:
- replace the "en > fr" button with a "Language" button,
  which on tap shows a popup with the user languages allowing
  direct selection (instead of having to rotate through
  all the intermediate languages and wait for each result)
- we don't touch anymore the user-set wikipedia_languages
  array when switching language
- the newly selected language is stored in doc_settings, and
  will be used for next queries on this book. It is also
  stored in G_reader_settings as the language to be used
  for next newly opened books and for lookups done when
  in FileBrowser

Also:
On Wikipedia full articles, the top left hamburger menu
shows a popup with the other Wikipedia languages the
current article is available for, and allows reading
them.
Wikipedia article ToC: the 'sections' properties
of the Wikipedia API is now deprecated: use its
replacement 'tocdata'.
2026-01-08 21:11:30 +01:00
poire-z 43d52a1c08 ScrollTextWidget: fix resetScroll()
Could cause some refreshes (actually triggered when
the scrollbar changes) in DictQuickLookup to be ignored
in some rare circonstances (2 consecutive results from
a text dictionary having the exact same nb of lines).
2026-01-08 21:11:30 +01:00
poire-z e72ca3045e KeyValuePage, scrollablecontainer: allow mousewheel scrolling 2026-01-08 21:11:30 +01:00
oscargolding 338f3b059a fix: 429 when querying Wikipedia images (#14766)
Avoid 429 error messages from Wikipedia by caching the returned cookie
from the initial response header. Using a cookie for image requests
treats each koreader image request as its own user with separate throttling
rates.
2026-01-08 14:51:46 +01:00
Benoit Pierre 4186cde33a move startup script check where it belongs
At reader startup, so the intended use case is correctly handled:
- an update is downloaded, and the user restarts KOReader
- the LuaJIT process returns control to the startup script which extracts the update
- the LuaJIT process is restarted, and if the startup script was changed, the user
  is asked to quit and restart KOReader from the parent launcher
2026-01-06 21:26:30 +01:00
Benoit Pierre 0b53cefb9f cervantes: detect if launcher script has changed
And a complete restart from the parent launcher is needed.
2026-01-06 21:26:30 +01:00
Benoit Pierre 8d7b0792fb kindle / pocketbook / remarkable: fix startup script change detection
- prior to #14719, `$KOREADER_DIR` was not part of the environment,
  so an update relying on it without a restart from the parent
  launcher would crash KOReader on startup
- pocketbook: fix check (`koreader.app` is located in `$KOREADER_DIR/..`)
- remarkable: ensure `$KOREADER_DIR` remain correct after relocalization
2026-01-06 21:26:30 +01:00
Benoit Pierre f731870427 kobo: simplify startup script change detection 2026-01-06 21:26:30 +01:00
hius07 6dbc1be8fa Status bar: adjustable font face (#14755) 2026-01-06 13:25:19 +02:00
hius07 610fc24f8a readerfooter: percent_finished in continious mode (#14794) 2026-01-05 21:04:02 +02:00
hius07 1da6dfe1e5 ReaderRolling: save percent_finished on flushing settings (#14787) 2026-01-04 08:00:57 +02:00
hius07 6ab2a8fe75 "Ignore long-press on corners for time period" action (#14764) 2026-01-01 09:51:11 +02:00
hius07 bf707d45ff menu_activate: no restart (#14771) 2025-12-31 09:51:06 +02:00
hius07 05faeb0597 filemanagerbookinfo: fix "time left in chapter" (#14754) 2025-12-26 16:55:54 +02:00
NiLuJe 3712e14a82 Kindle: Autodetect & handle the fancy gesture_tap input device (#14506)
The input device is autodetected by FBInk, which should hopefully mean we don't have to think about this again when it hits new devices ;).

(Supported devices were the PW6 & CS at time of writing)

Re #14461
2025-12-26 03:33:20 +01:00
Benoit Pierre 2e2a4875c9 remarkable: detect if launcher script has changed
And a complete restart from the parent launcher is needed.
2025-12-13 10:59:04 +01:00
Benoit Pierre 0094ea2cb0 pocketbook: detect if launcher script has changed
And a complete restart from the parent launcher is needed.
2025-12-13 10:59:04 +01:00