Commit Graph
11627 Commits
Author SHA1 Message Date
Euphoriyy a47ecfcdc2 kopt: option to invert document in night mode (#14954) 2026-03-08 12:31:57 +01:00
Frans de Jonge 9b03ee8c6d Add basic Dispatcher spec (#15062) 2026-03-08 12:30:28 +01:00
Frans de Jonge f873292f48 [i18n] Add Gaelic language (#15091) 2026-03-08 12:29:44 +01:00
Frans de Jonge 1ff1124a9b Update translations for v2026.03 (#15090) 2026-03-08 12:24:14 +01:00
David 33654af8a7 [Calibre] preserve uuid field in calibre metadata serialisation (#15088)
Otherwise calibre wil raise an error when its nil:

```
calibre, version 9.4.0
ERROR: Error: Error communicating with device

'uuid'

Traceback (most recent call last):
  File "calibre/gui2/device.py", line 110, in run
  File "calibre/gui2/device.py", line 581, in _books
  File "calibre/devices/smart_device_app/driver.py", line 58, in _synchronizer
  File "calibre/devices/smart_device_app/driver.py", line 1316, in books
KeyError: 'uuid'
```
2026-03-08 09:11:27 +01:00
David 5cd27cff1d fix incorrect migration comment (#15086) 2026-03-07 18:54:46 +01:00
Frans de Jonge a3f00b8bfc Tweak bug report template: nightly test not required, avoid automatic reference to nightly ticket (#15084)
See <https://github.com/koreader/koreader/pull/15072#issuecomment-4016113442>.
2026-03-07 17:27:31 +01:00
David bed8f558fa Switch virtual keyboard default to false on hasKeyboard (#15057) 2026-03-07 08:24:16 +01:00
Benoit Pierre 42aaa2031e sdl: fix scrolling when fractional values are involved (#15077)
Use accumulated whole scroll "ticks" in mouse wheel events.
2026-03-06 19:21:10 +01:00
Benoit Pierre f22ad077a6 bump base (#15080)
- zlib: minor build simplification (koreader/koreader-base#2282)
- sdl: build our version for the linux target (koreader/koreader-base#2283)
- fix: SDL3 HiDPI return value check (koreader/koreader-base#2285)
- sdl: ensure we have a recent enough version (koreader/koreader-base#2288)
- make: tweak setup target (koreader/koreader-base#2289)
- sdl: enable mouse focus click-through (koreader/koreader-base#2291)
- luajit: update to 2.1.1772619647 (koreader/koreader-base#2292)
2026-03-06 18:35:43 +01:00
Min S. Kim 0c6d217e37 OPDS: fix off-by-one in sync sub_table access (#15073)
When an OPDS catalog entry's URL resolves to a sub_table with only one
element, sub_table[2] returns nil, causing a crash on the subsequent
item.acquisitions access. Fall back to sub_table[1] when index 2 is nil.
2026-03-05 08:51:27 +01:00
Frans de Jonge 9f10243be0 [doc] Add checklist about external plugins/patches, testing nightly and searching issues to bug report template (#15072)
Also add field asking for regression info.
2026-03-05 08:47:16 +01:00
witcher a7cb81c229 [plugin] NewsDownloader: allow downloading supported documents (EPUB etc.) (#15065) 2026-03-04 16:56:09 +01:00
T. Li f12ff96ad6 KoptInterface: fix panel zooming when dewatermark is on (#15067) 2026-03-03 23:33:11 +01:00
Min S. Kim 4cc49962c3 OPDS: guard against entries with no URL in sync
Add a nil check on entry URL in getSyncDownloadList to prevent a
crash when a feed entry has no navigation link. Add a test for
single-quoted attribute feeds.
2026-03-03 23:06:10 +01:00
Min S. Kim 5241e20bea luxl: support single-quoted XML attribute values
Add a CCLASS_SQUOTE character class and ST_ATTR_VAL_SQ state to the
lexer FSM so single-quoted attributes are parsed correctly without
cross-matching with double-quoted ones. Both quoting styles are valid
XML per the spec.
2026-03-03 23:06:10 +01:00
Benoit Pierre e4143e23c4 ci/macos: update upload-artifact action (#15046) 2026-03-02 22:04:21 +01:00
David 59e70d5f4d [Dispatcher] remove Gesture overview from non-touch devices (#15059) 2026-03-02 17:58:00 +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
hius07 3f2cd054d8 PDF: import embedded highlights (#15040) 2026-03-01 20:51:11 +02:00
Benoit Pierre 7fdba6a997 bump base (#15052)
- zlib: update to 1.3.2 (koreader/koreader-base#2278)
- Expose MuPDF's search function (koreader/koreader-base#2279)
- mupdf: add getMarkupAnnotationBoxesFromPage() (koreader/koreader-base#2280)
- luajit: update to 2.1.1772148810 (koreader/koreader-base#2281)
2026-03-01 00:16:57 +01:00
hius07 0ad981ff54 'Open file' fixes (#15047) 2026-02-28 18:56:31 +02:00
David 06d9512da7 [Language] i18n: add Slovenian language (#15050)
* #15048
* closes #15049
2026-02-28 17:22:48 +01:00
ge-roy 0ffe37f8bb SSH.koplugin: option to force key-only auth (#15038)
User can enable key-only access to enhance security,
useful when using public WiFi networks, and just a good rule
even for well-known or home networks.
2026-02-27 09:17:49 +01:00
Min S. Kim 3e796f3b4d calibre: escape dot in gsub pattern for series index cleanup (#15037)
The unescaped `.` in `".00"` matches any character followed by two
zeros. For a series entry like `"00001.00 | Title - Author"`, the
pattern matches `000` at position 1 instead of the intended literal
`.00` at position 6, producing `"01.00 | Title - Author"`.

Escape as `"%.00"` to match a literal period.
2026-02-25 08:55:50 +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 d4b884808e filemanagerfilesearcher: restore patterns support (#15036) 2026-02-24 17:23:46 +02:00
hius07 77d1ae8911 InputDialog: fix adding widget with 'fullscreen' (#15028) 2026-02-24 17:23:14 +02:00
Min S. Kim ccd0a8004c fix(coverimage): fix operator precedence and parameter usage in cache functions (#15032)
Fix two bugs in the coverimage plugin:

1. cleanCache(): Fix operator precedence in while loop condition. In Lua,
   `and` has higher precedence than `or`, so the bounds check `index <= #files`
   was only applied to the cache size condition, not the file count condition.
   Added parentheses to ensure the bounds check applies to both conditions.

2. getCacheFiles(): Use the function parameters `cache_path` and `cache_prefix`
   consistently instead of mixing them with `self.cover_image_cache_path` and
   `self.cover_image_cache_prefix`.
2026-02-23 22:49:02 +01: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 7af08d43e5 Ask to open file (#15024) 2026-02-23 19:57:07 +02: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
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