Skip to content

Commit 1ffcff7

Browse files
committed
Merge tag '0.9.16' into master
2 parents cf4ee37 + 177305a commit 1ffcff7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1539
-1225
lines changed

Cargo.lock

Lines changed: 250 additions & 295 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Bastien Dejean <[email protected]>"]
33
name = "plato"
4-
version = "0.9.13"
4+
version = "0.9.16"
55
edition = "2018"
66

77
[[bin]]
@@ -27,32 +27,32 @@ required-features = ["fetcher"]
2727
bitflags = "1.2.1"
2828
downcast-rs = "1.2.0"
2929
lazy_static = "1.4.0"
30-
libc = "0.2.82"
30+
libc = "0.2.88"
3131
png = "0.16.8"
3232
regex = "1.4.3"
33-
serde = { version = "1.0.119", features = ["derive"] }
34-
serde_json = "1.0.61"
33+
serde = { version = "1.0.124", features = ["derive"] }
34+
serde_json = "1.0.64"
3535
titlecase = "1.1.0"
36-
unicode-normalization = "0.1.16"
36+
unicode-normalization = "0.1.17"
3737
toml = "0.5.8"
38-
zip = "0.5.9"
38+
zip = "0.5.11"
3939
kl-hyphenate = "0.7.3"
4040
entities = "1.0.1"
4141
paragraph-breaker = "0.4.3"
4242
xi-unicode = "0.3.0"
43-
septem = "1.0.1"
43+
septem = "1.1.0"
4444
byteorder = "1.4.2"
4545
flate2 = "1.0.14"
46-
levenshtein = "1.0.4"
47-
nix = "0.19.1"
48-
indexmap = { version = "1.6.1", features = ["serde-1"] }
46+
levenshtein = "1.0.5"
47+
nix = "0.20.0"
48+
indexmap = { version = "1.6.2", features = ["serde-1"] }
4949
anyhow = "1.0.38"
50-
thiserror = "1.0.23"
50+
thiserror = "1.0.24"
5151
walkdir = "2.3.1"
5252
globset = "0.4.6"
53-
filetime = "0.2.13"
53+
filetime = "0.2.14"
5454
fxhash = "0.2.1"
55-
rand_core = "0.6.1"
55+
rand_core = "0.6.2"
5656
rand_xoshiro = "0.6.0"
5757
percent-encoding = "2.1.0"
5858
libremarkable = "0.4.3"
@@ -63,7 +63,7 @@ version = "0.2.21"
6363
optional = true
6464

6565
[dependencies.reqwest]
66-
version = "0.11.0"
66+
version = "0.11.1"
6767
features = ["rustls-tls", "json", "blocking"]
6868
default-features = false
6969
optional = true
@@ -77,7 +77,7 @@ version = "0.34.3"
7777
optional = true
7878

7979
[dependencies.signal-hook]
80-
version = "0.3.3"
80+
version = "0.3.6"
8181
optional = true
8282

8383
[features]

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM buildpack-deps:stretch
55
ENV RUSTUP_HOME=/usr/local/rustup \
66
CARGO_HOME=/usr/local/cargo \
77
PATH=/usr/local/cargo/bin:$PATH \
8-
RUST_VERSION=1.48.0
8+
RUST_VERSION=1.50.0
99

1010
RUN set -eux; \
1111
dpkgArch="$(dpkg --print-architecture)"; \

contrib/grayscale-256.svg

Lines changed: 258 additions & 0 deletions
Loading

contrib/hilbert-256.svg

Lines changed: 258 additions & 0 deletions
Loading

doc/GUIDE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ Pick one of the [one-click install packages](https://www.mobileread.com/forums/s
66

77
The settings are saved in and read from `Settings.toml`. You can edit this file when *Plato* isn't running or is in shared mode. You can enter the shared mode by connecting your device to a computer.
88

9-
The default ePUB stylesheet, `css/epub.css`, can be overriden via `css/epub-user.css`.
9+
The default ePUB stylesheet, `css/epub.css`, can be overridden via `css/epub-user.css`.
10+
11+
## Upgrade
12+
13+
Install the corresponding one-click package on top of the previous one. Check out the [release notes](https://github.com/baskerville/plato/releases) before upgrading: manual intervention might be required.

doc/HOOKS.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ selected.
2222
The *Toogle Select* sub-menu of the library menu can be used to trigger a hook
2323
when there's no imported documents in `path`. Otherwise, you can just tap the
2424
directory in the navigation bar. When the hook is triggered, the associated
25-
`program` is executed as a background process. It will receive the directory
26-
path, wifi and online statuses (*true* or *false*) as arguments.
25+
`program` is executed as a background process. It will receive the library path,
26+
directory path, wifi and online statuses (*true* or *false*) as arguments.
2727

2828
A fetcher can use its standard output (resp. standard input) to send events to
2929
(resp. receive events from) *Plato*. An event is a JSON object with a required
@@ -37,23 +37,21 @@ The events that can be written to standard output are:
3737
// Add a document to the current library. `info` is the camel cased JSON version
3838
// of the `Info` structure defined in `src/metadata.rs`.
3939
{"type": "addDocument", "info": OBJECT}
40+
// Remove a document from the current library.
41+
{"type": "removeDocument", "path": STRING}
4042
// Enable or disable the WiFi.
4143
{"type": "setWifi", "enable": BOOL}
4244
// Search for books inside `path` matching `query` and sort the results by `sortBy`.
4345
{"type": "search", "path": STRING, "query": STRING, "sortBy": [STRING, BOOL]}
44-
// Import new entries and update existing entries in the current library.
45-
{"type": "import"}
46-
// Remove entries with dangling paths from the current library.
47-
{"type": "cleanUp"}
4846
```
4947

5048
The events that can be read from standard input are:
5149

5250
```
5351
54-
// Sent in response to `search`. `path` is the path of the library
55-
// that was searched for. `results` is an array of *Info* objects.
56-
{"type": "search": "path": STRING, "results": ARRAY}
52+
// Sent in response to `search`.
53+
// `results` is an array of *Info* objects.
54+
{"type": "search": "results": ARRAY}
5755
// Sent to all the fetchers when the network becomes available.
5856
{"type": "network", "status": "up"}
5957
```

doc/MANUAL.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ The following swipe sequences are recognized:
88

99
## Address bar
1010

11-
When the navigation bar is present, this optional bar can be shown by swipping from the top bar to the shelf, and hidden by swipping from the shelf to the top bar.
11+
When the navigation bar is present, this optional bar can be shown by swiping from the top bar to the shelf, and hidden by swiping from the shelf to the top bar.
1212

1313
## Navigation bar
1414

15-
This optional bar can be shown by swipping from the top bar to the shelf, and hidden by swipping from the shelf to the top bar.
15+
This optional bar can be shown by swiping from the top bar to the shelf, and hidden by swiping from the shelf to the top bar.
1616

1717
This bar shows at most `max-levels` directory levels starting at the current directory. It can be used to navigate within the directory hierarchy.
1818

@@ -27,6 +27,11 @@ This is a view of the books within the current directory.
2727
- Swipe west/east to go to the next/previous page.
2828
- Tap on a book entry to open it.
2929

30+
The following swipe sequences are recognized:
31+
32+
- Arrow west/east: go to the first/last page.
33+
- Top or bottom left/right corner: go to the previous/next status change.
34+
3035
## Search bar
3136

3237
The input's text is interpreted as a regular expression, and a book will match if any of its title, subtitle, author, series or file path matches.

0 commit comments

Comments
 (0)