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

10554 Commits

Author SHA1 Message Date
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
Benoit Pierre
b67c6147d5 tests: ensure successive testsuite runs work
Don't carry over some old settings. Additionally, avoid clobbering the standard reader settings.
2024-05-09 14:04:57 +02:00
peicuiping
a7e34673e6
chore: remove repetitive words (#11785) 2024-05-09 12:10:53 +02:00
Valentin Dubois
526a1fb727
Initial support for new Kobo (Clara B/W + Colour, Libra Colour) (#11737)
* Support the Clara B&W, Clara Colour & Libra Colour
* Enable HW dithering on *all* the Kobo MTK devices
* Enforce 32bpp instead of 8bpp for Kobo devices with a color panel (the driver doesn't actually support 8bpp anyway)
* Enable standby support on MTK (whenever possible, i.e., not when plugged in, as that is horribly, horribly broken).
* Enforce the dedicated "color" waveform mode for image content in ScreenSaver, ImageViewer & Reader.
* Fix charging LED support on MTK
* Tweak the frontlight ramp on MTK + LM3630 so that it actually ramps smoothly
2024-05-09 03:27:37 +02:00
Benoit Pierre
821120828b
tests: fix EPUB test (#11776)
The `droid sans fallback` test incorrectly assumes `Droid Sans Mono`
will be the first font in the list of fallback fonts, but the list
is alphabetically sorted.

Cf. https://github.com/koreader/koreader/pull/10566
2024-05-08 20:03:40 +02:00
sdasda7777
8530282d38
Add Czech keyboard layout (#11769)
Fixes #11339.
2024-05-08 11:04:23 +02:00
hius07
725df17c45
Annotations: fixes (#11761) 2024-05-07 19:54:57 +03:00
hius07
c47d3b3177
Menu widget: cleanup (#11759) 2024-05-07 09:34:30 +03:00
zwim
bf58723af1
[CoverImage] Honor rotation after opening of a book (#11752)
If rotation changes, create a new cache entry and use that if necessary.

Fixes #11713.
2024-05-06 22:53:13 +02:00
SomeGuy
e51b71f463
[Gestures.plugin] Clarify some rotation gesture strings (#11753) 2024-05-06 17:59:00 +02:00
poire-z
001e90db1e ReaderSearch: delay adding to location stack until we change page
Search may highlight matches on the current page, and if there
are no others in the book, we would stay there and resume reading;
but we would get a spurious previous location (ie. in Book map)
that we would not expect keeping, and we may accidently go back
to previous location, losing our reading position.
Avoid this by only adding current page to location stack when
actually leaving the current page.
Because of complications with other reading modes, this is
currently only enabled for CRE document when in page mode.
2024-05-05 21:02:21 +02:00
poire-z
03d16270d9 Statistics: handle correctly page change when reading paused
As currently we only handle ReadingPaused/Resumed on suspend
and resume, no page change should happen while paused, so
there is no current issue to fix. But let's get ready for
other use cases (which may be brought in by user patches,
ie. pausing while the SkimWidget is displayed, and obviously
triggers page changes).
2024-05-05 21:02:21 +02:00
poire-z
7d94562602 ReaderToc: fix issues when on a page before first Toc Item
When on a page before the first ToC item (the first chapter),
that first chapter title may be shown in the footer instead
of a more correct blank title.
This bug might still have had other small effect elsewhere.
2024-05-05 21:02:21 +02:00
poire-z
ca90b982b4 ReaderStyleTweak: reword CSS suggestions info text 2024-05-05 21:02:21 +02:00
poire-z
1c9a6509a2 HttpInspector: allow browsing global variables 2024-05-05 21:02:21 +02:00
Benoit Pierre
89b1280166
bump base (#11748)
- https://github.com/koreader/koreader-base/pull/1773
- https://github.com/koreader/koreader-base/pull/1775
- https://github.com/koreader/koreader-base/pull/1776
- https://github.com/koreader/koreader-base/pull/1777
- https://github.com/koreader/koreader-base/pull/1778
2024-05-04 20:43:35 +02:00