Plato 0.9.0
The rotation key in the reading states is now device independent.
Within a library you can compute the distribution of the device dependent values:
jq '.rotation' .reading-states/*.json | sort | uniq -c
You'll most likely want to map the most frequent (numeric) value to 0:
mkdir .new-reading-states
for x in .reading-states/*.json; do grep -q '"rotation": MOST_FREQUENT_VALUE' "$x" && jq '.rotation = 0' "$x" > .new-reading-states/"${x##*/}"; done
And the second most frequent value to either the clockwise (1) or counter-clockwise (3) landscape rotation.
You can then overwrite the reading states:
mv .new-reading-states/* .reading-states
rmdir .new-reading-states
Other changes:
- Update the
ivy
binary (used by the Calculator application): the)help
special command has become much more useful (try)help binary
for example). - Handle dictd dictionaries that weren't generated by
dictfmt
. - Don't skip the first entry after the last metadata entry in a dictionary's index.
- Handle negative x advances when computing a render plan's width.
- Don't return in
FontFamily::from_name
when encountering an invalid font. - Ignore invisible files when walking in directories.
- Add the ability to sort by title.