Commit Graph
292 Commits
Author SHA1 Message Date
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) 2025-07-12 20:29:41 +03:00
hius07 ad3dddbdd2 readerhighlight: fix accidental tap while long-pressing (#14004) 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)
* 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) 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
hius07 fbfb993c6b readerhighlight: stop highlighting when sboxes are absent 2025-03-12 18:15:34 +02:00
hius07 a06be7636a Highlights: edit boundaries in pdf (#13364) 2025-03-09 07:44:43 +02:00
David 316eb87116 [ReaderHighlight] NT: account for status and alt-status bars in text selection (#13348) 2025-03-02 22:24:52 +01:00
David 546cb14ccc [DictQuickLookup] NT: add text selection to the dictionary widget (#13232)
Initially, when you open the dictionary widget from the reader, FocusManager will function as usual. On Kindle 4 or devices with a keyboard, I have assigned the shortcuts <kbd>screenkb</kbd> + <kbd>up</kbd>/<kbd>down</kbd>   or <kbd>shift</kbd> + <kbd>up</kbd>/<kbd>down</kbd> to initiate text selection (as a remainder, on kindle text selection in reader is initiated with <kbd>up</kbd>/<kbd>down</kbd> so it is fairly similar). At this point, FocusManager is disabled, allowing the cursor keys (and press) to control the now-visible crosshairs. Pressing <kbd>back</kbd> should stop text selection and restore FocusManager’s control of the widget.
2025-02-17 21:41:34 +01:00
hius07 70fcc90a3c Highlights: quicker Style and Note marker dialogs (#13223) 2025-02-12 09:14:03 +02:00
hius07 4c431e7566 Highlights: fix page boxes cache (#13200) 2025-02-07 08:30:21 +02:00
hius07 8606b132e4 Couple of minor fixes (#13185) 2025-02-01 21:25:51 +02:00
David 1698f22a9d [NT] ReaderHighlight: improve selection of hyphenated words (#13129) 2025-01-28 16:52:27 +01:00
Frans de Jonge 2b23b2f8ee ReaderHighlight: add overlooked "crosshairs" (#13152)
See #13145.
2025-01-27 12:11:23 +01:00
David 011552279a [ReaderHighlight] rewrite some UI strings (#13145) 2025-01-26 19:33:31 +01:00
hius07 ea46d71634 Highlights: anchored dialogs (#12810) 2024-12-05 18:53:59 +02:00
hius07 47feaaa1df Highlights: page boxes cache (#12768) 2024-11-23 14:05:05 +02:00
hius07 93f2fa6702 Highlight: line height (#12721) 2024-11-21 07:54:23 +02:00
jonnyl2 fa20344a15 ReaderHighlight: Highlight menu, change 'Delete' to Trash can icon (#12758)
Closes #12754; as discussed there.
2024-11-20 20:31:20 +01:00
Frans de Jonge 11981821f6 [minor] ReaderHighlight: normalize more spelling of PDF (#12732) 2024-11-12 21:06:31 +01:00
Frans de Jonge d3893b6cf1 [minor] ReaderHighlight: normalize spelling of PDF (#12731) 2024-11-12 21:05:16 +01:00
hius07 54e33d27ea ReaderHighlight: fix color for extended highlight in pdf (#12654)
Closes #12653.
2024-10-18 20:59:31 +02:00
hius07 f143f5f8b1 ReaderHighlight: adjustable "Edit highlight" dialog position (#12599) 2024-10-11 19:26:33 +03:00
hius07 bf290e0c2b Write highlights into PDF: revisited (#12509) 2024-09-14 15:21:26 +03:00
hius07 7572a812cc Highlights popup dialog: add "Color" and "Details" buttons (#12461) 2024-09-07 17:56:40 +03:00
NiLuJe ffc4929504 ReaderHighlight: Fix an old typo in the OCR help string (#12479)
Noticed while triaging #12478 ;)
2024-09-07 16:23:56 +02:00
NiLuJe f8df76e5c4 misc: Move cleanupSelectedText to util (#12477)
Instead of duplicating it across ReaderHighlight, languagesupport, and potentially VocabBuilder.

Re: #12469
2024-09-06 23:06:28 +02:00
hius07 49e885321a Exporter: choose highlight styles to be exported (#12431) 2024-08-31 19:28:48 +03:00
hius07 38c8d66b5b readerhighlight: fix showing anchored popup dialog 2024-08-31 15:18:18 +02:00
Rowan Decker 60e0e3ef45 Add color highlight menu (#11044) 2024-08-30 22:10:43 +02:00
NiLuJe 46a5d20513 Document: Do not cache panel-zoom tiles to disk and fix their caching and rendering (#12303)
* Use a dedicated cache hash for partial tiles from panel-zoom
* Never dump them to disk, as it confuses DocCache's crappy heuristics that rewinds the cache to skip over the hinted page to try to dump the on-screen page to disk.
* Apply the zoom factor in the exact same way as any other page rect (i.e., floor coordinates, ceil dimensions), and make sure said rect is actually a Geom so it doesn't break the cache hash, which relies on Geom's custom tostring method for rects. Said scaling method *also* belongs to the Geom class anyway.
* Handle such pre-scaled rects properly in renderPage, so as not to apply the zoom factor to the full page, which would attempt to create a gigantic buffer.
* And now that the rect is rendered properly in an appropriately-sized buffer, use the rendered tile as-is, no need to blit it to another (potentially way too large because of the above issue) blank BB.
* The zoom factor is now computed for a scale to best-fit (honoring `imageviewer_rotate_auto_for_best_fit`), ensuring the best efficiency (ImageViewer won't have to re-scale).
* Cache: Reduce the maximum item size to 50% of the cache, instead of 75%.
* Warn about the legacy ReaderRotation module, as it turned out to be horribly broken. The whole machinery (which is spread over *a lot* of various codepaths) is left as-is, peppered with notes & fixmes hinting at the problem. Thankfully, that's not how we actually handle rotation, so it was probably hardly ever used (which possibly explains why nobody ever noticed it breaking, and that nugget possibly dates back to the inception of the kpv -> ko refactor!). (#12309)
2024-08-08 04:52:24 +02:00