2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

10669 Commits

Author SHA1 Message Date
Martín Fernández
ba8891082c
fix after #11833 (#11849) 2024-05-18 17:47:28 +02:00
Tomáš Janoušek
e94550a261
PocketBook: Open links in the on-device web browser (#11787)
Many PocketBook devices include a web browser, but when clicking a link in KOReader, there was no option to open the link in the browser, there was only an option to show a QR code (which can then be scanned by a smartphone).

This commit implements `canOpenLink`/`openLink` on PocketBook using the "browser.app", if available.

Tested on PB740 (InkPad 3).

Fixes: https://github.com/koreader/koreader/issues/11782
Related: https://github.com/koreader/koreader/issues/6597
2024-05-18 16:57:03 +02:00
Martín Fernández
7bded465eb
SDL: add flatpak flavor (#11833)
* ship metadata with generic linux binaries
* append release version & data at build time
2024-05-18 13:21:59 +02:00
Martín Fernández
d801af6d41
bump metadata translations (#11842)
updating metadata for 50 languages
short_description.txt: 8 new | 18 updated | 24 not translated
full_description.txt: 10 new | 15 updated | 25 not translated
2024-05-17 22:25:32 +02:00
hius07
daf0fa4b4b
MultiInputDialog: fix keyboard height changed (#11832) 2024-05-16 22:10:43 +03:00
hius07
6b192c346a
Annotations: Bookmark list improvement (#11825) 2024-05-16 21:57:04 +03:00
hius07
46449eb06e
Page overlap: add dashed line marker (#11804)
Requested by our contributor in #11734 (comment).
2024-05-16 20:44:53 +02:00
nairyo
126c01e1b5
Replace tweak_buttons_func with an event instead (#11777)
Also see https://github.com/Ajatt-Tools/anki.koplugin/issues/22
2024-05-16 20:44:01 +02:00
hius07
db63db11b2
FileManager: safe initial path (#11774)
We do not like trailing slash in the path (except root).
Closes #11772.
2024-05-16 20:42:08 +02:00
NiLuJe
05168b22f5
Kindle: Don't forget about fiveways on legacy devices & fix a couple input-scan misdetections (#11827)
* Kindle: Don't forget to open INPU_DPAD devices for the fiveways. Somehow managed to skip my mind, they're often on a separate input device.

Regression since #11807

* Update FBInk to fix a few cases of input_scan misdetection (on misconfigured drivers (e.g., no DIRECT prop on supported kernels), or old kernels with no EVIOCGPROP support).

Fix #11824
2024-05-15 23:58:01 +02:00
Philip Chan
5d63907cae
fix #11810: only set FocusManager layout if hasDPod (#11811) 2024-05-15 18:29:32 +02:00
NiLuJe
fd5260f2ce
Support auto-detection of input devices via fbink_input (#11807)
* Kobo: Drop a bunch of if ladder crap and switch to auto-detection of input devices via fbink_input
* Kindle: Drop an even larger bundle of crap to do the same ;p. (re: #11392)
* ExternalKeyboard: Switch to fbink_input to whitelist keyboards instead of the manual parsing of caps via its FindKeyboard class
* Input: Extended open/close wrappers to handle logging & tracking of dupe open/close calls.
2024-05-15 05:42:48 +02:00
Martín Fernández
79be8a10b1
appimage: keep metadata in sync with flathub (#11819)
Because it is actually pulled from here :p
2024-05-14 14:44:11 +02:00
Benoit Pierre
a9a023c062
doc: fix android NDK / SDK instructions (#11818) 2024-05-14 12:17:59 +02:00
Benoit Pierre
ea538900ba ci/macos: install ninja 2024-05-14 10:33:21 +02:00
Benoit Pierre
b2d495fcdd ci: force color output 2024-05-14 10:33:21 +02:00
Benoit Pierre
0aaa8e7c5b ci/macos: drop unnecessary permissions stanza 2024-05-14 10:33:21 +02:00
Benoit Pierre
f82cc31717 ci/macos: add caching to speedup workflow 2024-05-14 10:33:21 +02:00
Benoit Pierre
a12b075e07 ci/macos: avoid concurrent workflow runs on the same ref 2024-05-14 10:33:21 +02:00
Benoit Pierre
b28c58b902 ci/circle: tweak resource classes 2024-05-14 10:33:21 +02:00
Benoit Pierre
76bdb7e65c ci/circle: improve caching
Don't cache the whole base directory; instead independently cache:
- the build output directory
- the ccache directory

This allow completely avoiding the need for building base if a
cache (keyed on the relevant parts of the git tree for base) is
successfully restored, as well as reducing the amount of cached
data.

Additionally, ensure caches are isolated by branch name (but allow
falling back to a "master" cache for restore): we don't want PRs
using each others' caches.
2024-05-14 10:33:21 +02:00
mergen3107
8a316f928a
Kindle: remove separate L and R orientations (#11780)
Fixes #11743
2024-05-14 10:31:14 +02:00
Benoit Pierre
25d29aca4a
android: fix building with kodev (#11817)
If the Android NDK and/or SDK are not setup, `kodev` will try to invoke
the `android-ndk` and/or `android-sdk` make targets.  This can't be done
with `TARGET=android`, as `base/Makefile.defs` will error out trying to
call the (missing) compiler to get the target machine. Those rules need
to be available to all targets.
2024-05-14 10:30:15 +02:00
Benoit Pierre
c9c8089188
bump base (#11814)
- https://github.com/koreader/koreader-base/pull/1782
- https://github.com/koreader/koreader-base/pull/1783
- https://github.com/koreader/koreader-base/pull/1784
2024-05-13 21:08:17 +02:00
Martín Fernández
2c6808ba78
Add generic Linux package (#9351)
Relates to https://github.com/koreader/koreader/issues/9268
Requires https://github.com/koreader/koreader-base/pull/1504

Usage: 
- `kodev release linux` for native package (same arch as host)
- `LINUX_ARCH=arm release linux` for armhf on a x86_64 host.
- `LINUX_ARCH=arm64 release linux` for arm64 on a x86_64 host.

It produces a `koreader-linux-$ARCH-$VERSION.tar.xz` archive, where $ARCH follows `uname -m` convention {x86_64, armv7l, aarch64}

To generate the debian package from the generic archive the following command is required

`./platform/linux/do_debian_package.sh path_to.tar.xz`
2024-05-13 12:11:11 +02:00
sdasda7777
eb7af994e1
Check if /usr/bin symlink is present to fix instance reuse issue on older Pocketbooks (#11764)
Fixes #11760.
2024-05-13 12:08:16 +02:00
Nico Hirsch
3e04184638
calibre: add wireless connectionstart/stop actions (#11806)
* Register start stop connection actions

* Match code order

* Title to lowercase
2024-05-13 00:16:17 +02:00
Philip Chan
f0a3bcf05b
NT: add Hot swapping dictionaries button and edit button into FocusManager's layout (#11803)
fix #11783
2024-05-12 09:50:15 +02:00
Benoit Pierre
7ba42579eb bump base 2024-05-12 09:48:15 +02:00
Benoit Pierre
8c0362f9ed make: ignore thirdparty directory when installing 2024-05-12 09:48:15 +02:00
Benoit Pierre
5a146414db make: symlink fonts / plugins on install 2024-05-12 09:48:15 +02:00
Benoit Pierre
49e3251e7b make: support changing the build / install directory location 2024-05-12 09:48:15 +02:00
Benoit Pierre
f749fc2fd9 make: move target specific rules to dedicated files 2024-05-12 09:48:15 +02:00
Benoit Pierre
417d56b440 make: small improvement
Avoid duplicate `make -C base` call when building from scratch, as well
as support avoiding the remaining call (using `make --assume-old=base`).
2024-05-12 09:48:15 +02:00
Benoit Pierre
a4526633dd make: reduce the number of $(shell …) calls
Through use of `$(INSTALL_DIR)`.
2024-05-12 09:48:15 +02:00
Benoit Pierre
5efba26d80 make: ensure base/Makefile.defs can be included
Automatically run `fetchthirdparty`.
2024-05-12 09:48:15 +02:00
Benoit Pierre
3f8f87d294 make: minor cleanup 2024-05-12 09:48:15 +02:00
Benoit Pierre
a4400b3ccb tools/mk7z: support debian unstable / ubuntu 22.04
The version of `7z` provided by `p7zip-full` is now the same as `7zip`:

- symlinks are dereferenced by default (no support for `-l`)
- `7z -ba h` appends a trailing `/` to directories
  (not present in the output of `7z -slt l`)
2024-05-12 09:47:44 +02:00
Benoit Pierre
2d4b12c99c tools/mk7z: tweak manifest handling code
To support mawk (default awk on debian unstable).
2024-05-12 09:47:44 +02:00
Benoit Pierre
e921ed1bc7 tools/mk7z: fix subtle bug in manifest handling
A string like `1E2` is interpreted as `100` (`1×10²`):

```bash
▹ echo 0E036904 | awk '{ if ($1) print $1 }'
▹ echo 0E036904 | awk '{ if ($1!="") print $1 }'
0E036904
```
2024-05-12 09:47:44 +02:00
SomeGuy
baab326332
[ReaderHighlight] Remove duplicated setting on NT devices (#11750)
Closes #11747.
2024-05-11 21:25:50 +02:00
Joshua Bullock
1398154546
Gesture: Add toggle for orientation lock (#11795) 2024-05-11 11:47:33 +02:00
Predrag Đokić
eb6e5e3c20
Kindle: Fix missing Amazon UI screensaver after exiting KOreader (#11794) 2024-05-10 22:18:41 +02:00
hius07
12c3c190b0
Annotations: fixes 2 (#11788)
* readerbookmark: fix index for reverse sorting

* readerhighlight: fix pdf tap on highlight detection
2024-05-09 20:53:53 +03:00
Benoit Pierre
075edf9980 tests/readerhighlight: speedup
Reduce time to run those tests by 74% on my machine (~8.8s → ~2.3s).
2024-05-09 14:04:57 +02:00
Benoit Pierre
554e8daf99 tests/readerhighlight: avoid changing versioned files
Work on a copy of `test/sample.pdf`.
2024-05-09 14:04:57 +02:00
Benoit Pierre
089c19cb39 tests/readerbookmark: avoid changing versioned files
Work on a copy of `test/sample.pdf`.
2024-05-09 14:04:57 +02:00
Benoit Pierre
3e809b6c7b tests/readerlink: speedup
Reduce time to run those tests by 95% on my machine (~17s → 0.8s).
2024-05-09 14:04:57 +02:00
Benoit Pierre
fdf19e98c3 tests/readerlink: factorize setup/teardown code 2024-05-09 14:04:57 +02:00
Benoit Pierre
d0ca04c48d tests/readerlink: reorganize
Group tests by file type (EPUB or PDF).
2024-05-09 14:04:57 +02:00