The viewport introduced in #11302 is a bit conservative and as a result, after opening KOReader menus, some artifacts remain on the right screen margin as black bars, which are disturbing.
Solution: Increase the viewport until no artifacts can be seen and also make sure book is not rendered behind the screen bezel.
Calibre's author_sort field carries the curated "Surname, Forename"
form for each author -- distinct from the display string in authors,
and the only reliable way to get surname-ordering right for compound
names, particles, and inverted-naming cultures (CJK, Hungarian).
slim() currently strips this field when writing the device-side
.metadata.calibre after a wireless transfer, even when desktop Calibre
includes it in the transfer payload. Downstream plugins that want
correct surname ordering can't get at it for libraries synced via the
Calibre Companion plugin -- reported in the Bookshelf koplugin issue
tracker by a user with ~2250 books all showing empty author_sort
after sync, despite their desktop Calibre having the field populated
on every book.
Add "author_sort" to the used_metadata whitelist so it's preserved on
the device-side file. Books without the field continue to load
cleanly (slim's "or rapidjson.null" handles missing fields); on-disk
size grows by a small per-book constant.
search_used_metadata stays unchanged -- search displays the author
string, not the sort form.
If you have a Tolino device and have switched it into "Kobo mode" using the
developer options, the codename of the device is updated as well. This adds the
codenames for these devices to the device detection for Kobo devices.
The externalkeyboard plugin was unconditionally disabled on Kindle
because it gates on Kobo-specific OTG sysfs paths (ci_hdrc.0/role,
usbc0/otg_role). However, the keyboard detection and hotplug handling
machinery (findAndSetupKeyboards, onEvdevInputInsert, setupKeyboard)
is already fully generic — it uses fbink_input which works on Kindle.
With the companion koreader-base patch adding a uevent listener to
input-kindle.h, EvdevInputInsert events now fire on Kindle when UHID
devices are created (e.g., by kindle-hid-passthrough). This patch
lets the plugin load on Kindle to handle those events.
Changes:
- Replace the OTG-only gate with a check that allows Kindle through
- Guard OTG role management (init, menu, onExit) behind has_otg_role
so it only runs on platforms with OTG sysfs knobs
- On Kindle init, scan for any keyboards already present
- Hide OTG menu items on Kindle (only show Help)
Kobo behavior is completely unchanged.
Closes: https://github.com/koreader/koreader/issues/14359
Send a metadata object (filename, title, authors) with progress sync
requests when the user opts in via a new 'Send document metadata' toggle
(default off). The metadata is silently ignored by the official sync
server but can be used by custom sync servers.
Closes#13810
Ref: #8764