Commit Graph
3679 Commits
Author SHA1 Message Date
poire-z 61f4542b6b Wikipedia full: avoid crash when not available in other languages 2026-04-19 22:39:21 +02:00
hius07 c5c0b1aa0c inputtext: undo (#15238) 2026-04-10 17:40:56 +03:00
hius07 0b2173297f ReaderBookmark, BookmarkBrowser: unified bookmark details window (#15250) 2026-04-09 19:54:03 +03:00
David 9cef2f1198 [MultiInputDialog] Split password field and checkbox (#15234) 2026-04-08 10:26:33 +02:00
hius07 8e8ca98c37 Book status: reset rating (#15227) 2026-04-04 17:43:10 +03:00
hius07 f48f68f311 File browser: fix "Folders and files mixed" menu item (#15202) 2026-03-28 16:45:12 +02:00
David 15f86981a5 [DictQuickLookup] detection and key-event injection for SDL devices (#15158) 2026-03-25 14:52:20 +00:00
hius07 72aa026318 Cloud storage+ (#15150) 2026-03-25 08:06:18 +02:00
poire-z 81576c4e03 css_tweaks: fix typo in Disable first-line tweak name (#15161) 2026-03-22 11:18:11 +01:00
poire-z c3c24bf59c bump crengine: support ::first-line, COLRv0 fonts, CHM and CSS fixes (#15155)
Includes:
- CHM: improve Chinese encoding handling
- renderFinalBlock(): fix background color propagation among inlines
- first-letter: resets some CSS, ignore invisible, stop on <br/>
- CSS: support for pseudo element ::first-line
- CSS: add support for float/clear: inline-start/inline-end
- lvfntman, lvdrawbuf: add COLR v0 color font rendering support

Also add style tweaks to disable first-letter and first-line.
2026-03-21 23:12:20 +01:00
hius07 c8fecc8a8a bookmarkbrowser: default book source (#15143) 2026-03-21 17:32:38 +02:00
David 80cb27dbf5 [HtmlBoxWidget, DictQuickLookup] add capability to search within dictionary definitions (#15001)
Adds in-definition search to DictQuickLookup relaying on MuPDF's word-matching implementation, uses tap handling for navigation by allowing temporary disable/restore of Tap events.
2026-03-21 13:29:45 +00:00
poire-z 9e44aa5cf4 Footnote popup: add option to justify (or not) text (#15129) 2026-03-21 08:56:54 +01:00
hius07 886a8cf400 Export highlights: filters (#15003) 2026-03-20 09:18:01 +02:00
Benoit Pierre dfc45a8fc0 otamanager: honor http proxy (#15131)
Ensure zsync network calls go through the HTTP proxy too.
2026-03-18 23:42:16 +01:00
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