Commit Graph
3664 Commits
Author SHA1 Message Date
Euphoriyy 20bf0b75aa creopt: fix toggle order for Invert Images to be consistent (#15112) 2026-03-15 10:05:32 +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
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
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 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 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
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
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 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
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
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
Mickaël Schoentgen f01c1171c2 feat: add lithuanian reader.dict monolingual dictionary (#14839) 2026-01-18 11:49:57 +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
hius07 6dbc1be8fa Status bar: adjustable font face (#14755) 2026-01-06 13:25:19 +02:00
hius07 bf707d45ff menu_activate: no restart (#14771) 2025-12-31 09:51:06 +02:00
hius07 5b2f2cbdb3 Sleep screen: improve 'Exit sleep screen' message (#14691) 2025-12-10 14:17:58 +02:00
hius07 776eb69184 screensaverwidget: fix unlock (#14689) 2025-12-10 14:17:26 +02:00
hius07 9dc068b50d TextViewer: pin page (#14668) 2025-12-09 07:43:23 +02:00
poire-z fd54ddbd8f TextBoxWidget: clear highlights when hold release on an image
Otherwise, any highlight made while panning would stick even
after we show and close ImageViewer, even when turning pages.
2025-12-08 13:18:51 +01:00
poire-z 8723b25f9e Menu: avoid crash with large post_text
Currently not met with our current use of it,
but let's avoid this crash when experimenting.
2025-12-08 13:18:51 +01:00
poire-z f4a87ba22a Style tweaks: Ignore publisher font families: keep monospace 2025-12-08 13:18:51 +01:00
Benoit Pierre 60a475773c progressbardialog: fix refresh 2025-11-28 08:43:41 +01:00
Benoit Pierre ea3a8a7dbe progressbardialog: support dismissing the dialog 2025-11-28 08:43:41 +01:00
Benoit Pierre d6310207f7 progressbardialog: tweak API
So `reportProgress` returns true when the progress bar was actually updated.
2025-11-28 08:43:41 +01:00
Benoit Pierre 6ce4b5d8ee inputcontainer: handle horizontal center alignment 2025-11-28 08:43:41 +01:00
hius07 bf8274d47c Show next locations in Book map and Page browser (#14643) 2025-11-23 08:48:17 +02:00
hius07 7a6c4db693 TouchMenu: fix menu height with/without separators (#14627) 2025-11-18 08:38:07 +02:00
Benoit Pierre 054df8e86d renderimage: improve JPEG handling (#14505)
No need to go through MuPDF: use the TurboJPEG API via the `jpeg` module.
2025-11-12 08:12:48 +01:00
Mickaël Schoentgen 576aaed08a feat: add japanese reader.dict monolingual dictionary (#14579) 2025-11-07 12:07:40 +01:00
hius07 6beff03d49 Stable pages in file browser (#14570) 2025-11-07 08:19:41 +02:00
hius07 7d3d51add4 Gestures/profiles: allow disabling popup messages (#14543) 2025-11-05 07:48:08 +02:00