Commit Graph
6492 Commits
Author SHA1 Message Date
Euphoriyy 049e63c70b kopt: fix Invert Document regression with Reflow/Auto Straighten (#15123)
Due to changes to renderOptimizedPage(...) made by #15067, which was merged after #14954 was made, a regression was introduced that causes instability and even crashes on mobile devices and e-readers when Invert Document is enabled along with Reflow or Auto Straighten.

This PR fixes the regression and simplifies the drawContextPage(...) method.
2026-03-17 09:31:21 +01:00
Benoit Pierre c1e3e585e9 appimage: fix ota model
Account for architecture.
2026-03-15 23:00:26 +01:00
Euphoriyy 20bf0b75aa creopt: fix toggle order for Invert Images to be consistent (#15112) 2026-03-15 10:05:32 +01:00
hius07 5ffbeb52d8 readerhighlight: don't try to write page bookmarks into PDF (#15097) 2026-03-09 17:09:52 +02:00
jonnyl2 0f8f24b79b [ReaderFooter] Adds a fixed-width setting for progress bar alongside items (#14980)
Also increased the available range for the minimum width in the UI from 50% of the screen width to 90%, since with the fixed setting it could otherwise never get larger than 50%, but a wider size will be useful if only few and short items fill up less than 50% of the remaining space.
2026-03-09 15:57:24 +01:00
zeeyado 54de4f188c fix: import embedded PDF annotations properly (#15076)
Fix annotation import to preserve notes, filter by type, deduplicate,
map drawer, and delete originals from PDF after import.

Closes #15075. Depends on koreader-base#2287.
2026-03-08 13:02:02 +01:00
k4rnaj1k 9f7a0e420d [Kindle Scribe] Add support for kindle scribe stylus events (#14908) 2026-03-08 12:37:23 +01:00
Euphoriyy a47ecfcdc2 kopt: option to invert document in night mode (#14954) 2026-03-08 12:31:57 +01:00
Frans de Jonge f873292f48 [i18n] Add Gaelic language (#15091) 2026-03-08 12:29:44 +01:00
David 5cd27cff1d fix incorrect migration comment (#15086) 2026-03-07 18:54:46 +01:00
David bed8f558fa Switch virtual keyboard default to false on hasKeyboard (#15057) 2026-03-07 08:24:16 +01:00
Benoit Pierre 42aaa2031e sdl: fix scrolling when fractional values are involved (#15077)
Use accumulated whole scroll "ticks" in mouse wheel events.
2026-03-06 19:21:10 +01:00
T. Li f12ff96ad6 KoptInterface: fix panel zooming when dewatermark is on (#15067) 2026-03-03 23:33:11 +01:00
Min S. Kim 5241e20bea luxl: support single-quoted XML attribute values
Add a CCLASS_SQUOTE character class and ST_ATTR_VAL_SQ state to the
lexer FSM so single-quoted attributes are parsed correctly without
cross-matching with double-quoted ones. Both quoting styles are valid
XML per the spec.
2026-03-03 23:06:10 +01:00
David 59e70d5f4d [Dispatcher] remove Gesture overview from non-touch devices (#15059) 2026-03-02 17:58:00 +01:00
Frans de Jonge d4f99025f5 [fix] BookStatusWidget: remove unused (#15060) 2026-03-02 17:54:21 +01:00
Frans de Jonge 6783e7bd1d BookStatusWidget: fix impossible to exit review editing due to focus loop (#15055)
Due to the way this was wired, #14937 trigged BookStatusWidget:onSwitchFocus() when closing, which caused the review input dialog to pop right back up again.

But it doesn't look like you're actually supposed to be able to type in there at all, so I replaced it with a TextBoxWidget.
2026-03-01 21:51:53 +01:00
hius07 3f2cd054d8 PDF: import embedded highlights (#15040) 2026-03-01 20:51:11 +02:00
hius07 0ad981ff54 'Open file' fixes (#15047) 2026-02-28 18:56:31 +02:00
David 06d9512da7 [Language] i18n: add Slovenian language (#15050)
* #15048
* closes #15049
2026-02-28 17:22:48 +01:00
David 34c77238e0 [DictQuickLookup] NT: fix utf8 byte drift during text selection (#15015)
* refactor handling of faked event HoldRelease for text selection on NT, make sure we close the cycle properly so we don't get any byte drift when dealing with non-ascii characters.
2026-02-24 22:08:32 +00:00
hius07 d4b884808e filemanagerfilesearcher: restore patterns support (#15036) 2026-02-24 17:23:46 +02:00
hius07 77d1ae8911 InputDialog: fix adding widget with 'fullscreen' (#15028) 2026-02-24 17:23:14 +02:00
Mihai Vasiliu 5f68c2254f [i18n] Add context for bottom menu options (#15031)
Not all languages translate all options the same. Add context to allow different translations depending on usage.
2026-02-23 19:32:10 +01:00
hius07 7af08d43e5 Ask to open file (#15024) 2026-02-23 19:57:07 +02:00
hius07 2c5dae9efd bookmarkbrowser: fix search (#15022) 2026-02-21 20:40:33 +02:00
hius07 18090dfc42 inputdialog: fix adding widget with 'use available height' (#15010) 2026-02-21 19:56:11 +02:00
hius07 7c33042aea readerpagemap: fix saving page labels to sdr (#15007) 2026-02-18 21:59:28 +02:00
Tempura San 9e6b15878d [PB623] fix crashing due to NetMgrPing() missing (#14961)
the firmware version of the PocketBook 623 does not provide NetMgrPing()
this leads to the application crashing after WiFi is activated and the
keepalive is scheduled
2026-02-17 20:31:44 +01:00
oscargolding d8fc84240e fix: Wikipedia 429 due to incorrect user agent (#14981)
Wikipedia recently started enforcing user agents to contain a contact
link. Without a contact, the request is subject to 429 errors when
requesting images.
2026-02-17 08:23:31 +01:00
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