Commit Graph
318 Commits
Author SHA1 Message Date
hius07 c53b0cf6bd readerhighlight: fix highlight extending (#16246) 2026-10-17 10:40:24 +03:00
Adam Buntain-Cooper 0deae50039 CreDocuments: save EPubCFI alongside xpointers (last_pos, annotations)
EPubCFI is the per-EPUB-specs equivalent of our xpointers.
Save the EPubCFI version of our xpointers in metadata.epub.lua
so they can be used by plugins or external tools.
They are not used internally.
2026-10-09 08:38:20 +02:00
David 0563d799a6 restore pokeball (long_hold_reached_action) after key selection ends (#16132) 2026-10-01 12:02:13 +01:00
hius07 1f780ac65f readerhighlight: keep style/color for extended sentence (#16122) 2026-09-27 08:22:50 +03:00
hius07 a5d860ae9d Merge overlapping highlights (pdf) (#16051) 2026-09-13 08:35:10 +03:00
hius07 85e906dffb readerhighlight: merge overlapping highlights (#16035) 2026-09-10 09:25:49 +03:00
Commodore64user 722ca15a75 ReaderHighlight: add physical key_binfings to showHighlightDialog 2026-09-09 16:57:13 +01:00
hius07 dc99fca9a1 Highlights: invert highlight color in night mode (#16006) 2026-09-08 09:46:07 +03:00
hius07 47a472003e Highlights: clear highlight on auto Translate (#15970) 2026-08-31 16:54:25 +03:00
hius07 98f11a51f1 readerhighlight: don't pass gray to save highlight to PDF (#15922) 2026-08-22 19:26:02 +03:00
jonnyl2 941f64ca5f HighlightDialog: add long-press actions for Search and Dictionary buttons (#15859) 2026-08-12 12:11:32 +02:00
hius07 8e26ac7b57 Highlight: custom colors (#15676) 2026-08-01 20:09:33 +03:00
hius07 0d5a2724a5 QuickMenu position (#15640) 2026-07-07 17:35:25 +03:00
hius07 7182dda32b Highlights: note format (#15599) 2026-06-30 08:17:48 +03:00
David bb3514bdf1 flash word when starting indicator (#15571) 2026-06-21 17:29:57 +01:00
David 33b7143223 [ReaderKeySelection] NT: add indicator overlay (#15547) 2026-06-17 19:24:46 +01:00
poire-z a92dccfb39 ReaderSearch: enhanced search on CreDocuments 2026-06-16 07:38:40 +02:00
hius07 e48161c166 Highlights: temporary highlight color (#15486) 2026-06-05 16:48:41 +03:00
hius07 203f6aa164 Highlights: pre-highlighting prompt (#15473) 2026-06-01 08:19:10 +03:00
Commodore64user 952ebafe2d KeySelection: add new event handlers and call startIndicator from keyselection instead of readerui 2026-05-27 14:21:26 +02:00
Commodore64user adf60de731 KeySelection: add registerToMainMenu in readerkeyselection, remove old creation from readerhighlight 2026-05-27 14:21:26 +02:00
Commodore64user 41c562c4c4 KeySelection: move text selection from readerhighlight to readerkeyselection 2026-05-27 14:21:26 +02:00
Frans de Jonge b83b24307d ReaderHighlight: clear selection after showing OCR infomessage (#15213)
Fixes #15209.
2026-05-19 22:50:09 +02:00
poire-z 93170259b1 Highlighting: avoid crash on PDF when nothing selected
Oversight in 148449df6.
2026-05-18 01:05:10 +02:00
David 1e0e859ba8 [Hotkeys] add single-key shortcuts (#14867) 2026-04-28 15:09:12 +01:00
poire-z 148449df6a Highlighting/lookup: avoid getting stuck when nothing selected
Fixes 2 cases where we could get stuck in an exepected state:
- if onHold would get us nothing to act on, we would stay stuck
  in "hold" state (until a next hold) and taps for page turn
  would not work
- if text selection would get us some text (ie. some punctuation)
  that would be stripped to an empty string, we would just not
  do the lookup, but the selection would stay: best to do that
  lookup and get a "no result" window, that when closed would
  do the normal cleanup.
2026-04-19 22:39:21 +02:00
hius07 886a8cf400 Export highlights: filters (#15003) 2026-03-20 09:18:01 +02:00
hius07 5ffbeb52d8 readerhighlight: don't try to write page bookmarks into PDF (#15097) 2026-03-09 17:09:52 +02: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
hius07 3f2cd054d8 PDF: import embedded highlights (#15040) 2026-03-01 20:51:11 +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
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
hius07 01156923de readerhighlight: invert dialog colors in night mode (#14923) 2026-02-07 18:15:44 +02:00
hius07 b2b02e7813 Highlights: improve 'Set color' dialog (#14699) 2026-01-30 07:50:04 +02:00
hius07 ea6089b6d8 readerhighlight: fix tapping on self-overlapping highlight (#14852) 2026-01-20 20:58:24 +02:00
David 92effcf9fb Replace checkboxes with radio buttons where appropriate (#14431) 2025-10-14 22:53:47 +02:00
David 6d49c261fa [ReaderHighlight] preserve highlight when using highlight dialogue (#14437) 2025-10-14 15:22:27 +02:00
hius07 d0abd59143 readerhighlight: fix long-press with Do nothing (#14227) 2025-08-26 18:18:53 +03:00
adva-cg 6c0a5c30ba Add support for character-by-character highlighting for partial word translation (#14153)
Long-pressing on the "edit" buttons switches between "word" and "char" modes of the following single taps.
Long-pressing always moves the boundary by char.
2025-08-20 08:33:14 +03:00
hius07 92a6c7c6dc readerhighlight: fix datetime_updated for new highlights (#14155) 2025-08-09 09:43:39 +03:00
hius07 c4c95a0e90 ReaderHighlight: fix long-pressing on image (#14048)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
2025-07-12 20:29:41 +03:00
hius07 ad3dddbdd2 readerhighlight: fix accidental tap while long-pressing (#14004)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
2025-07-01 21:44:39 +03:00
David d993146480 [ReaderHighlight] NT: add better support for extending highlights (#13917) 2025-06-21 11:37:01 +02:00
David 6bc5b16282 [ReaderHighlight] NT: add key event to simulate a very long press (#13914) 2025-06-21 11:36:10 +02:00
hius07 b59734dfab Minor fixes (#13930) 2025-06-13 07:42:08 +03:00
hius07 d358b26d61 Highlights: extend (#13815) 2025-05-22 17:59:44 +03:00
jonnyl2 fce94ce1de ReaderHighlight, ReaderBookmark: Highlight button labels, Bookmark details button order (#13735)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
* Add Xs to highlight erase buttons

* Change order of buttons
2025-05-05 21:57:04 +02:00
hius07 4b3248700e Gesture intervals: adjust long- and very-long-press intervals (#13690)
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled
2025-04-28 08:40:04 +03:00
David 667ab754e4 [ReaderLink] Add missing footnote settings to NT devices (#13597) 2025-04-21 18:58:22 +02:00
hius07 969f58bc56 readerhighlight: comment 2025-03-13 08:13:04 +02:00