Commit Graph
11595 Commits
Author SHA1 Message Date
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
David 7de4f4c6ef [Hotkeys] correct function call to stop crosshairs (#15009) 2026-02-19 15:33:02 +00:00
hius07 7c33042aea readerpagemap: fix saving page labels to sdr (#15007) 2026-02-18 21:59:28 +02:00
Benoit Pierre 75066acb3e bump base (#15000)
- https://github.com/koreader/koreader-base/pull/2277 (close #14993)
2026-02-18 08:02:01 +01: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
Min S. Kim cffae09d50 calibre: use local callback for willRerunWhenConnected (#14998)
`self.re` isn't assigned until later in connect() (line 292), so at line
244 it is always nil — either never set, or cleared by a previous
disconnect(). This caused willRerunWhenConnected to receive nil as its
callback, so after Wi-Fi was brought up the coroutine was never resumed
and the Calibre connection silently died.

Use the local `re` (defined on line 234) which is the correct resume
callback for this coroutine.
2026-02-17 19:06:36 +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
Min S. Kim 06b3a4e5b1 Fix max port number typo in Calibre plugin (#14991)
65355 → 65535: the transposed digits caused ports 65356–65535 to
be silently rejected and reset to the default (9090).
2026-02-16 22:14:06 +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
Min S. Kim 2932a4a6a2 CoverImage: fix inconsistent vertical alignment of cover image (#14987)
Center the scaled cover image on both axes unconditionally instead
of branching on which dimension is the limiting factor. The branch
was susceptible to floating point rounding in math.floor causing
scaled_w to be 1 pixel less than s_w, flipping the alignment from
vertically centered to top-aligned depending on the cover's pixel
dimensions.

Fixes #14986.
2026-02-16 11:20:15 +01:00
Florian Snow 17281b2f1f Properly set bootlogo on PocketBook (#14985)
* CoverImage: call iv2sh to update PocketBook startup logo on cover change

After the cover image file is written or reset, invoke PocketBook's
iv2sh WriteStartupLogo command so the device's boot logo is actually
updated. The command runs in the background to avoid blocking KOReader.

* CoverImage: use correct screen dimensions on PocketBook for boot logo

For PocketBook devices, Screen:getWidth/getHeight returns
dimensions that iv2sh will not accept. In that case, we should call
Screen:getScreenWidth and Screen:getScreenHeight instead so the
generated boot logo has the correct size.
2026-02-15 19:27:30 +01: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 2326bb5d4c bump base & crengine: CSS enhancements and other fixes
Includes:
- Add support for CSS width: fit-content
- fb2def.h: add a few common attributes
- lvtext: includes src->t.offset in word->t.start
- CSS: support for pseudo element ::first-letter
- ::first-letter: fix when single letter text node
- ldomXPointer::getRectEx(): return optional context
- ldomXRange::getSegmentRects(): fix when BiDi/RTL
- testAuthorDotTitleFormat: fix off-by-one error
- Epub ncx TOC: don't skip items with invalid href
- Avoid some compiler warnings
- ldomDocument::createXPointer(pt): better consistency
- CSS: add support for "ruby-position: over/under/alternate"
- MathML: don't handle anything when no def style set

cre.cpp:
- add requestRender()
- getTextFromPositions(): improvements

base:
- Fix offs_x/offs_y typo in BB_add_blit_from fast path
- lua-Spore: fix matching plain application/json
- libpng: update to 1.6.55
- luajit: update to 2.1.1770989063
- ci/circle: bump docker images
2026-02-14 22:18:29 +01:00
Benoit Pierre 6b068c3bb7 ci: bump docker image (#14976) 2026-02-14 16:17:26 +01:00
Christoph Michel 82115dac74 NewsDownloader: fix path separator encoding bug (#14975) 2026-02-14 12:23:15 +01:00
Frans de Jonge 6d86891d92 Bump base for lua-Spore: Patch to accept more content-types as json (#14964)
https://github.com/koreader/koreader-base/pull/2262

See https://github.com/koreader/koreader/issues/14596#issuecomment-3884542800
2026-02-11 15:07:50 +01:00
Benoit Pierre aa2b20159d AppImage: switch to mkappimage (#14963)
For generating the appimage, since it includes appstreamcli (for linting the appstream metadata).
2026-02-11 11:10:42 +01:00
Benoit Pierre 2237dce2e3 appimage: fix metadata
- correct appstream metadata filename and location
- correct desktop entry filename
2026-02-10 08:04:24 +01:00
Benoit Pierre d18736fcc4 fix appstream metadata warnings
```
P: rocks.koreader.KOReader:4: cid-contains-uppercase-letter rocks.koreader.KOReader
P: rocks.koreader.KOReader:376: screenshot-no-caption
P: rocks.koreader.KOReader:379: screenshot-no-caption
P: rocks.koreader.KOReader:382: screenshot-no-caption
```
2026-02-10 08:04:24 +01:00
Benoit Pierre db9e64c54d update metadata translations 2026-02-10 08:04:24 +01:00
poire-z 3e931f72a9 Dispatcher: add "Edit/toggle book-specific style tweak" (#14944) 2026-02-10 00:58:00 +01:00
Min S. Kim ba0e6e5838 Add support for Onyx Boox Note Air 5C, Fix Onyx Boox black screen on wake after font size change (#14956)
On some Onyx Boox devices, the SurfaceView surface is not recreated
after the rapid activity cycling that the Boox system performs on wake,
leaving android.app.window permanently nil. This caused a black screen
after font size change + sleep + wake.

The SurfaceView with setZOrderOnTop(true) was introduced for NGL4/Tolino
devices. The Onyx Qualcomm EPD API (View.refreshScreen) does not require
a SurfaceView — einkUpdate() already falls back to the DecorView content
view when no SurfaceView exists. Setting
OnyxEPDController.needsView()=false makes Onyx devices use
NativeActivity's default DecorView surface, which follows the standard
activity lifecycle and correctly survives wake.

Fixes #12445
2026-02-09 21:35:41 +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
rspilk 9eedae379b kosync.koplugin: add custom hostname option (#14172) 2026-02-04 21:08:46 +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
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
Jannick Fahlbusch da34d0e958 [PB700] Simplify rotation suspension fix (#14897)
https://github.com/koreader/koreader/pull/14895 is a bit inefficient and does not take the option to lock the orientation in place.

This change reuses the existing functionality and in turn respects the other settings as well
2026-01-29 16:49:14 +01: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
Jannick Fahlbusch 3554b6aa5d [PB700] Fix auto-orientation inversion after suspension (#14895)
Fixes https://github.com/koreader/koreader/issues/11033.

Depends on additional change in the available C-bindings from https://github.com/koreader/koreader-base/pull/2260

Also includes https://github.com/koreader/koreader-base/pull/2233
2026-01-29 00:10:14 +01:00
Benoit Pierre f94e00ebc7 docs: update macOS build requirements (#14894)
Need meson >= 1.8.3 to work around koreader/koreader-base#2258.
2026-01-28 22:49:37 +01:00
David cd49bf335a [ReaderDictionary] clean stress marks from selection for dict search (#14856) 2026-01-27 14:20:22 +01:00
Adrián Mora 7162708429 [plugin] NewsDownloader: add URL path encoding to improve request handling (#14870)
For example for blank spaces in path.
2026-01-26 12:45:29 +01:00
hius07 ea6089b6d8 readerhighlight: fix tapping on self-overlapping highlight (#14852) 2026-01-20 20:58:24 +02:00