Commit Graph

10753 Commits

Author SHA1 Message Date
Frans de Jonge
706ab3bdfe [plugin] Exporter: fix typo (#12592)
Fixes #12591.
2024-10-04 11:27:05 +02:00
David
cba79bca1c Quickstart guide Kindle illustrations (#12577) 2024-10-02 23:49:56 +02:00
jkl16
6138779124 Disabled rotation map for Android devices where "hw media keys follow gravity" (#12557) 2024-10-02 14:41:47 +02:00
Benoit Pierre
35918326f0 android: fix apkanalyzer location
- fix SDK location: our install has 2 different versions: under
  `tools/bin/apkanalyzer` and `cmdline-tools/latest/bin/apkanalyzer`,
   but only the later is functional (trying to use the former raise
   some classpath exceptions)
- always use the SDK location, don't try to detect it: it's better to
  fail with a more explanatory "apkanalyzer: command not found" error
  than having the shell try to run a command with the wrong executable
  (`manifest …` because `$(APKANALYZER)` is empty)
2024-10-02 14:35:56 +02:00
Benoit Pierre
120d418b7e android: switch to monolibtic mode (#12576)
We can get rid of the `libs` and `sdcv` symlink in application files.

Depend on koreader/koreader-base#1920.

Close #12348.
2024-10-02 09:19:57 +02:00
NiLuJe
e45119453e Bump base
https://github.com/koreader/koreader-base/pull/1943
2024-10-01 23:26:03 +02:00
NiLuJe
3c60d440ad Bump platform/android/luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/514
https://github.com/koreader/android-luajit-launcher/pull/513
https://github.com/koreader/android-luajit-launcher/pull/512
https://github.com/koreader/android-luajit-launcher/pull/515
2024-10-01 23:26:03 +02:00
NiLuJe
a6584e312d Add kobov4 & kobov5 targets
kobov4 exists solely because there's a dedicated TC for it,
but we don't distribute binaries for it (it doesn't differ enough from
kobo, and experience has taught us that this kind of split was not a
great idea (e.g., kindle5 vs. kindlepw2)).

kobov5 targets a massively updated userland, and requires further
changes, including to the delivery mechanism, so it very much warrants a
dedicated package (re: #12401)
2024-10-01 23:26:03 +02:00
Benoit Pierre
521deb5f37 sdl: use our compiled version for the AppImage (#12575) 2024-10-01 21:30:16 +02:00
Benoit Pierre
ffb3da6fb5 bump base (#12578)
- https://github.com/koreader/koreader-base/pull/1939
- https://github.com/koreader/koreader-base/pull/1942
- https://github.com/koreader/koreader-base/pull/1944
- https://github.com/koreader/koreader-base/pull/1945
2024-10-01 20:07:54 +02:00
hius07
cb84dbd552 Exporter: export to book folder, register to Dispatcher (#12569) 2024-10-01 17:08:41 +03:00
hius07
b937a079ea Profiles: auto-execute on events (#12564) 2024-09-30 19:22:20 +03:00
David
e2d1c55ec5 [DictQuickLookup] shortcuts for editing searches (#12539) 2024-09-29 20:25:26 +02:00
hius07
4cdef40f97 File search: improve (#12549) 2024-09-28 19:47:56 +03:00
Chris Heywood
9e73a88e59 Fix typos in quickstart (#12566) 2024-09-28 08:42:19 +02:00
Benoit Pierre
d98fe14ba8 input: fix loading of fbink_input library (#12560)
The library is versioned.
2024-09-26 23:07:15 +02:00
Benoit Pierre
a1edbbf0c4 use new ffi.loadlib helper (#12545)
To load our native libraries.
2024-09-26 18:36:09 +02:00
Benoit Pierre
88aea09f73 input: fix pocketbook init (#12555)
Regression from #12486.
2024-09-25 21:17:30 +02:00
David
08205c47c8 [ReaderFooter] Update status bar in real time when inverting page turning (#12424) 2024-09-25 21:16:06 +02:00
Benoit Pierre
beaad4d337 input: fix kobo init (#12553)
I missed converting one call of `Input.open` to a method call in #12486.
2024-09-25 20:16:25 +02:00
Benoit Pierre
c6dc34b937 small base bump (#12550)
- https://github.com/koreader/koreader-base/pull/1936
- https://github.com/koreader/koreader-base/pull/1937
2024-09-25 11:40:11 +02:00
Benoit Pierre
a4a04ac356 ci/circle: fix tests parallelism (#12551)
Use `BUSTED_OVERRIDES`, as `BUSTED_SPEC_FILE` was
removed in 93c7ceccd9.
2024-09-25 08:10:40 +02:00
Benoit Pierre
72b7a1a92a sdl: use versioned library for the AppImage 2024-09-24 16:08:58 +02:00
Benoit Pierre
0c0d2ab9f1 input: drop use of ffi/input
Get rid of the weird interaction between device implementations,
`ffi.util` (`isSDL`, `noSDL`) and the device input code: each
device knows if it's using SDL or not, so rely on that to load
the right underlying input implementation.
2024-09-24 16:08:58 +02:00
Benoit Pierre
283c764351 sdl: minor cleanup; remove dead code 2024-09-24 16:08:58 +02:00
hius07
e15c1abe8b Statistics: fix null terminated strings, add toggle stats (#12547)
(1) Followup to koreader/koreader-base#1921, #12503: when getting a pdf book id in the stats db, check for old records with null terminated authors and title.
Discussed in #11318. There are some other reasons for disappearing old stats for pdf (md5 changes when converting/writing to pdf or something else), hence not closing the issue.
(2) Add Dispatcher action for toggling statistics. Closes #11422.
2024-09-23 20:46:20 +02:00
Benoit Pierre
ca569c1355 bump base (#12543)
- https://github.com/koreader/koreader-base/pull/1932
- https://github.com/koreader/koreader-base/pull/1933
- https://github.com/koreader/koreader-base/pull/1934
- https://github.com/koreader/koreader-base/pull/1935
2024-09-22 20:17:49 +02:00
Frans de Jonge
776cc21f1d Bump luajit-launcher for Onyx Boox Go 10.3 support (#12533)
https://github.com/koreader/android-luajit-launcher/pull/509
2024-09-19 18:30:01 +02:00
Frans de Jonge
7ee598c667 Revert "Profiles: make sure to close menu/quickmenu before executing action (…" (#12534)
This reverts commit 880b7c5ed1.
2024-09-19 18:29:25 +02:00
ElimGarak1
6dcafb329a Add PocketBook Verse Pro Color (PB634K3) (#12476) 2024-09-18 20:07:05 +02:00
weijiuqiao
2e6407357d VocabBuilder.koplugin: save dict headword as entry (#12530)
Closes #12529.
2024-09-18 18:54:09 +02:00
NiLuJe
3401bed3d1 Kindle: Restore hall effect sensor state on startup (#12521)
Fix #11744
2024-09-18 15:06:23 +02:00
NiLuJe
03aa96dc7d optionsutil: Document optionsutil.showValues
Specifically, the whole unit interactions ;).
2024-09-16 17:12:43 +02:00
NiLuJe
e887be693f optionsutil: Simplify the public formatFlexSize wrapper
Pull the dimension_units from in there,
instead of asking callers to do that.
2024-09-16 17:12:43 +02:00
NiLuJe
3cbd75b385 ReaderTypeset: Use formatFlexSize in onSetPageMargins
Instead of enforcing px.

Also decouple the footer from the bottom margin report to make things
clearer given this change.
2024-09-16 17:12:43 +02:00
NiLuJe
e47aeb77b7 optionsutil: Switch to PostScript point
Because that's what most people are probably thinking of.

But, more importantly, it's what *FreeType* assumes ;).
2024-09-16 17:12:43 +02:00
NiLuJe
9dfd4f949c CREOptions: Simplify a few name_text_hold_callback calls when we want to
display a size unit

Rely on `name_text_unit` instead of wrapping `optionsutil.showValues`
2024-09-16 17:12:43 +02:00
NiLuJe
cd0d8ca8bd UI: Support appending the value in pixels when formating metric/imperial dimensions 2024-09-16 17:12:43 +02:00
NiLuJe
f8890a310d optionsutil: Rename real_size_string to formatFlexSize, and make it public
Use it in the ReaderView:onPageGapUpdate notification, instead of
enforcing "px" there.
2024-09-16 17:12:43 +02:00
NiLuJe
d537ef5c76 UI: Expand the "Units" configuration menu to include "Pixels"
Rename it to "Dimension units", and make it a radio submenu.

Migrate the previous metric_length setting to this new dimension_units
one.

Update optionsutil to follow it.
2024-09-16 17:12:43 +02:00
NiLuJe
77b6ef785a koptoptions: Stop making page gap a special snowflake
Use the user-preferred display unit for dimensions.
2024-09-16 17:12:43 +02:00
NiLuJe
7239cf391d optiuonsutil: unbreak real_size_string
Don't mangle string input values when a unit was passed.
(i.e., keep displaying them as their actual string instead of as nil).

(e.g., when current is set to a number, but default is still unset,
which translates to "not set" in showValues).
2024-09-16 17:12:43 +02:00
NiLuJe
9333843919 optionsutil: tweak showValuesHMargins text string
Attempting to align the numbers on the same column was a fool's errand.
Our default UI font is not monospaced, to begin with,
and to do it right, we'd need to align the rightmost number, not the
leftmost ;).

i.e., T() would need to have much fancier justification capabilities ;).
Or, err, *any* text justification features, really ^^.
2024-09-16 17:12:43 +02:00
NiLuJe
da2957392a optionsutil: Refactor size conversion/printing
DRYer, simpler. Will make it easier to make "px" a real viable display
format.
2024-09-16 17:12:43 +02:00
NiLuJe
65ce72df27 KOptOptions: Make Page Gap a buttonprogress instead of a toggle
We want to be able to set a custom value (i.e., more_options),
because on high-dpi devices, the scaling can lead to pretty large
differences; but more_options on a toggle is ugly and clunky.

So, switch to something more suited to what this actually sets,
which is ultimately an absolute pixel value, like margins.

Add a few more steps on the low end to fill out the bar (and because
that's where I found them most useful on high-dpi devices).
2024-09-16 17:12:43 +02:00
NiLuJe
af51bfafad ReaderView: Fix onPageGapUpdate
The input value should go through Screen:scaleBySize(), as in onReadSettings

Otherwise, choosing an option from ConfigDialog leads to different
results than on document open, as one is scaled, but not the other.

Issue extant since the inception of page gap configuration,
way back in #5705

(The intended and correct behavior if of course to scale this, e.g., the
setting is a "koreader flex pixel", not an absolute actual px value ;).
2024-09-16 17:12:43 +02:00
NiLuJe
a55b1038d7 optionsutil: Make sure showValues can actually use the real_size_string helper effectively
configdialog doesn't actually pass a unit argument to
name_text_hold_callback, so pull it instead from a new name_text_unit
field.

Expand said helper to support a "px" unit, which simply converts from
our arbitrary pixels to actual on-device pixels (e.g., a plain
scaleBySize).

Enable real_size_string usage when name_text_true_values is set
(it's a NOP in terms of the generated string if no unit is specified).
2024-09-16 17:12:43 +02:00
NiLuJe
da74691515 Chore: Don't cache static data tables (ui/elements, ui/data, kb layouts & co) (#12519)
Using `require` didn't make much sense since most of them are only used in a single place anyway, and it takes care of a few weird interactions in the process (besides not polluting `package.loaded` with useless crap ;)).
2024-09-16 17:11:42 +02:00
NiLuJe
aa6cadb1ee SyncService: Only require online connectivity when using Dropbox (#12520)
Aligns with the CloudStorage behavior.

Fix #12518
2024-09-16 17:10:45 +02:00
hius07
bf290e0c2b Write highlights into PDF: revisited (#12509) 2024-09-14 15:21:26 +03:00