Commit Graph

6074 Commits

Author SHA1 Message Date
Martín Fernández
e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00
weijiuqiao
9df814593d VocabBuilder.koplugin: support PDF context extraction for multi-word phrase (#12917)
Closes #12916. Closes #12475.
2024-12-18 14:13:37 +01:00
hius07
f025cce059 Collections: add books from a folder (#12892) 2024-12-15 18:22:05 +02:00
hius07
72086b7a26 CoverBrowser: minor fix and remove unused (#12895)
Remove unused UIManager:clearRenderStack().
Previously it was used by CoverBrowser plugin when extending the FileManager popup file dialog with aditional buttons.
Now the buttons are inserted through the api added in https://github.com/koreader/koreader/pull/12845.
2024-12-15 09:14:01 +02:00
David
378519ccf3 [NT] Remove gesture mentions from Dispatcher (#12889) 2024-12-12 22:28:27 +01:00
David
8f1461316c [HotKeys] Add a 'type to search' setting to hasKeyboard devices (#12860) 2024-12-12 22:23:49 +01:00
TnS-hun
f232b0e8e6 Dictionary: fix missing images (#12877)
Pass the dictionary's res directory to Mupdf.openDocumentFromText to allow MuPDF to display images referenced by HTML dictionaries.

Depends on: https://github.com/koreader/koreader-base/pull/2002
Fixes: https://github.com/koreader/koreader/issues/12628
2024-12-12 21:58:35 +01:00
Frans de Jonge
0e4bd1be89 Screenshoter: add filename and page number (#12887)
Closes #12695.
2024-12-11 20:56:01 +01:00
hius07
7444ec53e9 Remove onSetFullScreen() (#12871) 2024-12-09 12:33:16 +02:00
hius07
0386e2619e Patch management: plugin -> core (#12862) 2024-12-08 09:33:46 +02:00
hius07
157c03c42d FileManager: Plus dialog button from CoverBrowser (#12857) 2024-12-07 09:18:18 +02:00
Martín Fernández
162685df50 remove autofrontlight + backgroundrunner (#12809)
* remove autofrontlight
* remove background-runner

thirparty plugins that rely on the backgroundrunner no longer work.
2024-12-06 21:28:56 +01:00
hius07
89fd0061fb filemanagerbookinfo: fix logic in getCoverImage() (#12852) 2024-12-06 14:36:30 +02:00
hius07
cd8ef3ceb5 FileManager, History, Collections: expose file dialog buttons (#12845) 2024-12-05 18:54:32 +02:00
hius07
ea46d71634 Highlights: anchored dialogs (#12810) 2024-12-05 18:53:59 +02:00
poire-z
cdc0cc58e7 CreDocument: tweak when the default font is set (#12846)
Reseting the default font each time we refresh metadata
(ie. when refreshing a cover in History) could cause
the rendering hash of the currently opened document
to be messed up, with strange effects.
Hoping setting one in engineInit() is enough to avoid
the crashes the removed comment talks about.
2024-12-05 01:34:09 +01:00
Benedikt McMullin
1438caf529 Style tweaks: add Override font-based normal line height (#12483) 2024-12-05 01:33:51 +01:00
hius07
58adb685d1 Collections: search (#12776) 2024-12-04 14:09:26 +02:00
Eric P Hutchins
76a7633531 Translator: add romanizations setting in Translation settings (#12829)
This adds a new setting in "Translation settings" called "Show romanizations" which tells the translation popup to include in the query the parameter dt=rm and then extracts romanizations from the results to display.
2024-12-02 23:05:52 +01:00
Lostish
f5c6b56899 Screensaver: add dynamic battery symbol to sleep screen message (#12548)
- %B was added to frontend/ui/screensaver.lua to reference the battery symbol
  generated by powerd
- The default English screensaver help message was updated informing users
  of the addition
2024-11-25 20:58:56 +01:00
Brendan LeFebvre
798a64998f webdav: show folders with same name as current folder (#12788)
Closes #12783
2024-11-24 08:59:12 +01:00
David
de7c5920b8 [screensaver menu] remove gesture based option from NT devices (#12747) 2024-11-23 20:41:56 +01:00
mergen3107
e95541ffd3 [Kindle NT] fix terminal and timesync (#12765)
Closes #12760
Credits go to @benoit-pierre (Thank you!)
2024-11-23 19:30:48 +01:00
Wim de With
d1d5e949a0 Decode wpa_supplicant SSID when already connected (#12782)
Overlooked in #11089.
2024-11-23 19:29:51 +01: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
hius07
24d8baf3ec Notebook file (#12699) 2024-11-21 07:53:22 +02:00
Benoit Pierre
0fd8c5af81 kopt: implement reflow
Factorized from lower layers' implementations (djvu & mupdf).
2024-11-20 22:23:02 +01:00
Benoit Pierre
94ee6813f6 kopt: minor factorization 2024-11-20 22:23:02 +01:00
hius07
2b763c70f9 Screenshoter: fix screenshot folder (#12750)
Check for existance and create if absent.
Closes #12742.
2024-11-20 22:19:52 +01:00
Benoit Pierre
24f983b580 pocketbook: support "extended" key events (#12707)
Only for devices running with SDK >= 6.

Close #12703.
2024-11-20 21:45:53 +01: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
Martín Fernández
fd3727274b bump android-luajit-launcher (#12734)
Includes:

https://github.com/koreader/android-luajit-launcher/pull/526
https://github.com/koreader/android-luajit-launcher/pull/527
https://github.com/koreader/android-luajit-launcher/pull/528
https://github.com/koreader/android-luajit-launcher/pull/529
2024-11-13 14:55:40 +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
Benoit Pierre
18d2ec6761 kopt: fix OCR segmentation mode (#12726)
Previously unused by `libk2pdfopt`, the `ocr_type` argument passed to `k2pdfopt_tocr_single_word`
and forwarded to `ocrtess_ocrwords_from_bmp8` now has a big impact for some languages (e.g. Arabic).
2024-11-11 12:44:22 +01:00
hius07
5fb9216efb "Tools" menu order minor fix (#12717)
* same order in FM and Reader
* remove unused "send2ebook"
2024-11-08 19:24:53 +01:00
hius07
c2d1099976 Profiles: more auto-exec triggers 2 (#12691) 2024-10-31 20:26:21 +02:00
hius07
8b710d183c Focus: fixes (#12688) 2024-10-30 20:09:59 +02:00
hius07
97a7ebefb9 Text editor: rotate (#12658) 2024-10-29 20:49:43 +02:00
NiLuJe
b42b9a8799 DeviceListener: Restore onExit callback passing
That callback is used for custom exit paths (e.g., OTA).

Regression in #12509
2024-10-27 01:34:20 +02:00
NiLuJe
4c91bf9f63 OTA: Make the final ConfirmBox undismissable
It's relatively easy to miss-click the buttons, especially on devices
with questionable touch panels...

And while doing so is perfectly fine, you miss the InfoMessage telling
you that the update will be applied on restart, which is potentially
confusing.

Re: #12674
2024-10-27 01:34:20 +02:00
mergen3107
f8446538c0 Fix KOReader spelling in the code (#12670) 2024-10-24 10:46:46 +02:00
hius07
1778c698b5 Profiles: more auto-exec triggers (#12651) 2024-10-23 12:56:46 +03:00
Martín Fernández
04161c0e9e translated deprecation reasons (#12636)
Keep translated strings around on deprecation
2024-10-23 10:43:40 +02:00
NiLuJe
2497d8f352 Misc: Some more FocusManager fallout (#12667)
Don't show initial focus in KVP & CalendarView

Fix https://github.com/koreader/koreader/pull/12583#issuecomment-2427403108
2024-10-22 10:38:02 +02:00
NiLuJe
fdd342de40 Menu: Fix fallout from #12583 on hasDPad devices (#12657)
Tweak `mergeTitleBarIntoLayout` to keep the current selection (adjusted for the added rows) instead of resetting the focus.

It only actually called `moveFocusTo` on `hasDPad` devices, which explains why this was missed during testing.

Fix https://github.com/koreader/koreader/pull/12583#issuecomment-2423554770
2024-10-21 13:35:44 +02:00
mergen3107
ee17b44b58 Kindle Scribe: fix elseif for orientation code (#12663)
Fixes #12662
2024-10-20 18:58:34 +02:00
hius07
54e33d27ea ReaderHighlight: fix color for extended highlight in pdf (#12654)
Closes #12653.
2024-10-18 20:59:31 +02:00
jonnyl2
a4dcfd2d52 ReaderFont: fix "new" fonts in generated font test document (#12646)
New fonts were not rendering in their own font because
the font names were modified directly in the face_list table.
2024-10-18 16:46:57 +02:00