From 95ce9d927c4489f8fed46d2ddaab7251a93ac4c8 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 28 Nov 2026 23:21:08 +0800 Subject: [PATCH 1/7] feat(store): localize the App Store and Google Play listings in 8 languages (#8054) Every storefront showed the English listing, so searches in other languages matched only the English name and subtitle. Each listing now has its own title, subtitle or short description, keywords and description in Simplified and Traditional Chinese, Japanese, German, French, Spanish (Spain and Latin America) and Brazilian Portuguese. - App Store (iOS and macOS): name, subtitle, keywords and description per locale. The macOS name and subtitle link to the iOS files, since App Store Connect keeps one name and subtitle per app. Support and marketing URLs link to en-US. - Google Play: title per locale in metadata-play, with the descriptions in metadata/android, which F-Droid reads too. - deliver's release notes use the "default" key, so every localization gets What's New (in English, from release-notes.json). Without it the new localizations would block the submission. Screenshots stay English; the stores fall back to the default language. Co-authored-by: Claude Opus 5.5 --- fastlane/Fastfile | 7 +++- fastlane/metadata-macos/de-DE/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/de-DE/keywords.txt | 1 + .../metadata-macos/de-DE/marketing_url.txt | 1 + fastlane/metadata-macos/de-DE/name.txt | 1 + fastlane/metadata-macos/de-DE/privacy_url.txt | 1 + fastlane/metadata-macos/de-DE/subtitle.txt | 1 + fastlane/metadata-macos/de-DE/support_url.txt | 1 + fastlane/metadata-macos/es-ES/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/es-ES/keywords.txt | 1 + .../metadata-macos/es-ES/marketing_url.txt | 1 + fastlane/metadata-macos/es-ES/name.txt | 1 + fastlane/metadata-macos/es-ES/privacy_url.txt | 1 + fastlane/metadata-macos/es-ES/subtitle.txt | 1 + fastlane/metadata-macos/es-ES/support_url.txt | 1 + fastlane/metadata-macos/es-MX/description.txt | 1 + fastlane/metadata-macos/es-MX/keywords.txt | 1 + .../metadata-macos/es-MX/marketing_url.txt | 1 + fastlane/metadata-macos/es-MX/name.txt | 1 + fastlane/metadata-macos/es-MX/privacy_url.txt | 1 + fastlane/metadata-macos/es-MX/subtitle.txt | 1 + fastlane/metadata-macos/es-MX/support_url.txt | 1 + fastlane/metadata-macos/fr-FR/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/fr-FR/keywords.txt | 1 + .../metadata-macos/fr-FR/marketing_url.txt | 1 + fastlane/metadata-macos/fr-FR/name.txt | 1 + fastlane/metadata-macos/fr-FR/privacy_url.txt | 1 + fastlane/metadata-macos/fr-FR/subtitle.txt | 1 + fastlane/metadata-macos/fr-FR/support_url.txt | 1 + fastlane/metadata-macos/ja/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/ja/keywords.txt | 1 + fastlane/metadata-macos/ja/marketing_url.txt | 1 + fastlane/metadata-macos/ja/name.txt | 1 + fastlane/metadata-macos/ja/privacy_url.txt | 1 + fastlane/metadata-macos/ja/subtitle.txt | 1 + fastlane/metadata-macos/ja/support_url.txt | 1 + fastlane/metadata-macos/pt-BR/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/pt-BR/keywords.txt | 1 + .../metadata-macos/pt-BR/marketing_url.txt | 1 + fastlane/metadata-macos/pt-BR/name.txt | 1 + fastlane/metadata-macos/pt-BR/privacy_url.txt | 1 + fastlane/metadata-macos/pt-BR/subtitle.txt | 1 + fastlane/metadata-macos/pt-BR/support_url.txt | 1 + .../metadata-macos/zh-Hans/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/zh-Hans/keywords.txt | 1 + .../metadata-macos/zh-Hans/marketing_url.txt | 1 + fastlane/metadata-macos/zh-Hans/name.txt | 1 + .../metadata-macos/zh-Hans/privacy_url.txt | 1 + fastlane/metadata-macos/zh-Hans/subtitle.txt | 1 + .../metadata-macos/zh-Hans/support_url.txt | 1 + .../metadata-macos/zh-Hant/description.txt | 42 +++++++++++++++++++ fastlane/metadata-macos/zh-Hant/keywords.txt | 1 + .../metadata-macos/zh-Hant/marketing_url.txt | 1 + fastlane/metadata-macos/zh-Hant/name.txt | 1 + .../metadata-macos/zh-Hant/privacy_url.txt | 1 + fastlane/metadata-macos/zh-Hant/subtitle.txt | 1 + .../metadata-macos/zh-Hant/support_url.txt | 1 + .../android/de-DE/full_description.txt | 1 + .../android/de-DE/short_description.txt | 1 + .../metadata-play/android/de-DE/title.txt | 1 + .../android/es-419/full_description.txt | 1 + .../android/es-419/short_description.txt | 1 + .../metadata-play/android/es-419/title.txt | 1 + .../android/es-ES/full_description.txt | 1 + .../android/es-ES/short_description.txt | 1 + .../metadata-play/android/es-ES/title.txt | 1 + .../android/fr-FR/full_description.txt | 1 + .../android/fr-FR/short_description.txt | 1 + .../metadata-play/android/fr-FR/title.txt | 1 + .../android/ja-JP/full_description.txt | 1 + .../android/ja-JP/short_description.txt | 1 + .../metadata-play/android/ja-JP/title.txt | 1 + .../android/pt-BR/full_description.txt | 1 + .../android/pt-BR/short_description.txt | 1 + .../metadata-play/android/pt-BR/title.txt | 1 + .../android/zh-CN/full_description.txt | 1 + .../android/zh-CN/short_description.txt | 1 + .../metadata-play/android/zh-CN/title.txt | 1 + .../android/zh-TW/full_description.txt | 1 + .../android/zh-TW/short_description.txt | 1 + .../metadata-play/android/zh-TW/title.txt | 1 + fastlane/metadata/README.md | 32 ++++++++++++++ .../android/de-DE/full_description.txt | 34 +++++++++++++++ .../android/de-DE/short_description.txt | 1 + .../android/es-ES/full_description.txt | 34 +++++++++++++++ .../android/es-ES/short_description.txt | 1 + .../android/fr-FR/full_description.txt | 34 +++++++++++++++ .../android/fr-FR/short_description.txt | 1 + .../android/ja-JP/full_description.txt | 34 +++++++++++++++ .../android/ja-JP/short_description.txt | 1 + .../android/pt-BR/full_description.txt | 34 +++++++++++++++ .../android/pt-BR/short_description.txt | 1 + .../android/zh-CN/full_description.txt | 34 +++++++++++++++ .../android/zh-CN/short_description.txt | 1 + .../android/zh-TW/full_description.txt | 34 +++++++++++++++ .../android/zh-TW/short_description.txt | 1 + fastlane/metadata/de-DE/description.txt | 41 ++++++++++++++++++ fastlane/metadata/de-DE/keywords.txt | 1 + fastlane/metadata/de-DE/marketing_url.txt | 1 + fastlane/metadata/de-DE/name.txt | 1 + fastlane/metadata/de-DE/privacy_url.txt | 1 + fastlane/metadata/de-DE/subtitle.txt | 1 + fastlane/metadata/de-DE/support_url.txt | 1 + fastlane/metadata/es-ES/description.txt | 41 ++++++++++++++++++ fastlane/metadata/es-ES/keywords.txt | 1 + fastlane/metadata/es-ES/marketing_url.txt | 1 + fastlane/metadata/es-ES/name.txt | 1 + fastlane/metadata/es-ES/privacy_url.txt | 1 + fastlane/metadata/es-ES/subtitle.txt | 1 + fastlane/metadata/es-ES/support_url.txt | 1 + fastlane/metadata/es-MX/description.txt | 1 + fastlane/metadata/es-MX/keywords.txt | 1 + fastlane/metadata/es-MX/marketing_url.txt | 1 + fastlane/metadata/es-MX/name.txt | 1 + fastlane/metadata/es-MX/privacy_url.txt | 1 + fastlane/metadata/es-MX/subtitle.txt | 1 + fastlane/metadata/es-MX/support_url.txt | 1 + fastlane/metadata/fr-FR/description.txt | 41 ++++++++++++++++++ fastlane/metadata/fr-FR/keywords.txt | 1 + fastlane/metadata/fr-FR/marketing_url.txt | 1 + fastlane/metadata/fr-FR/name.txt | 1 + fastlane/metadata/fr-FR/privacy_url.txt | 1 + fastlane/metadata/fr-FR/subtitle.txt | 1 + fastlane/metadata/fr-FR/support_url.txt | 1 + fastlane/metadata/ja/description.txt | 41 ++++++++++++++++++ fastlane/metadata/ja/keywords.txt | 1 + fastlane/metadata/ja/marketing_url.txt | 1 + fastlane/metadata/ja/name.txt | 1 + fastlane/metadata/ja/privacy_url.txt | 1 + fastlane/metadata/ja/subtitle.txt | 1 + fastlane/metadata/ja/support_url.txt | 1 + fastlane/metadata/pt-BR/description.txt | 41 ++++++++++++++++++ fastlane/metadata/pt-BR/keywords.txt | 1 + fastlane/metadata/pt-BR/marketing_url.txt | 1 + fastlane/metadata/pt-BR/name.txt | 1 + fastlane/metadata/pt-BR/privacy_url.txt | 1 + fastlane/metadata/pt-BR/subtitle.txt | 1 + fastlane/metadata/pt-BR/support_url.txt | 1 + fastlane/metadata/zh-Hans/description.txt | 41 ++++++++++++++++++ fastlane/metadata/zh-Hans/keywords.txt | 1 + fastlane/metadata/zh-Hans/marketing_url.txt | 1 + fastlane/metadata/zh-Hans/name.txt | 1 + fastlane/metadata/zh-Hans/privacy_url.txt | 1 + fastlane/metadata/zh-Hans/subtitle.txt | 1 + fastlane/metadata/zh-Hans/support_url.txt | 1 + fastlane/metadata/zh-Hant/description.txt | 41 ++++++++++++++++++ fastlane/metadata/zh-Hant/keywords.txt | 1 + fastlane/metadata/zh-Hant/marketing_url.txt | 1 + fastlane/metadata/zh-Hant/name.txt | 1 + fastlane/metadata/zh-Hant/privacy_url.txt | 1 + fastlane/metadata/zh-Hant/subtitle.txt | 1 + fastlane/metadata/zh-Hant/support_url.txt | 1 + 152 files changed, 986 insertions(+), 1 deletion(-) create mode 100644 fastlane/metadata-macos/de-DE/description.txt create mode 100644 fastlane/metadata-macos/de-DE/keywords.txt create mode 120000 fastlane/metadata-macos/de-DE/marketing_url.txt create mode 120000 fastlane/metadata-macos/de-DE/name.txt create mode 120000 fastlane/metadata-macos/de-DE/privacy_url.txt create mode 120000 fastlane/metadata-macos/de-DE/subtitle.txt create mode 120000 fastlane/metadata-macos/de-DE/support_url.txt create mode 100644 fastlane/metadata-macos/es-ES/description.txt create mode 100644 fastlane/metadata-macos/es-ES/keywords.txt create mode 120000 fastlane/metadata-macos/es-ES/marketing_url.txt create mode 120000 fastlane/metadata-macos/es-ES/name.txt create mode 120000 fastlane/metadata-macos/es-ES/privacy_url.txt create mode 120000 fastlane/metadata-macos/es-ES/subtitle.txt create mode 120000 fastlane/metadata-macos/es-ES/support_url.txt create mode 120000 fastlane/metadata-macos/es-MX/description.txt create mode 120000 fastlane/metadata-macos/es-MX/keywords.txt create mode 120000 fastlane/metadata-macos/es-MX/marketing_url.txt create mode 120000 fastlane/metadata-macos/es-MX/name.txt create mode 120000 fastlane/metadata-macos/es-MX/privacy_url.txt create mode 120000 fastlane/metadata-macos/es-MX/subtitle.txt create mode 120000 fastlane/metadata-macos/es-MX/support_url.txt create mode 100644 fastlane/metadata-macos/fr-FR/description.txt create mode 100644 fastlane/metadata-macos/fr-FR/keywords.txt create mode 120000 fastlane/metadata-macos/fr-FR/marketing_url.txt create mode 120000 fastlane/metadata-macos/fr-FR/name.txt create mode 120000 fastlane/metadata-macos/fr-FR/privacy_url.txt create mode 120000 fastlane/metadata-macos/fr-FR/subtitle.txt create mode 120000 fastlane/metadata-macos/fr-FR/support_url.txt create mode 100644 fastlane/metadata-macos/ja/description.txt create mode 100644 fastlane/metadata-macos/ja/keywords.txt create mode 120000 fastlane/metadata-macos/ja/marketing_url.txt create mode 120000 fastlane/metadata-macos/ja/name.txt create mode 120000 fastlane/metadata-macos/ja/privacy_url.txt create mode 120000 fastlane/metadata-macos/ja/subtitle.txt create mode 120000 fastlane/metadata-macos/ja/support_url.txt create mode 100644 fastlane/metadata-macos/pt-BR/description.txt create mode 100644 fastlane/metadata-macos/pt-BR/keywords.txt create mode 120000 fastlane/metadata-macos/pt-BR/marketing_url.txt create mode 120000 fastlane/metadata-macos/pt-BR/name.txt create mode 120000 fastlane/metadata-macos/pt-BR/privacy_url.txt create mode 120000 fastlane/metadata-macos/pt-BR/subtitle.txt create mode 120000 fastlane/metadata-macos/pt-BR/support_url.txt create mode 100644 fastlane/metadata-macos/zh-Hans/description.txt create mode 100644 fastlane/metadata-macos/zh-Hans/keywords.txt create mode 120000 fastlane/metadata-macos/zh-Hans/marketing_url.txt create mode 120000 fastlane/metadata-macos/zh-Hans/name.txt create mode 120000 fastlane/metadata-macos/zh-Hans/privacy_url.txt create mode 120000 fastlane/metadata-macos/zh-Hans/subtitle.txt create mode 120000 fastlane/metadata-macos/zh-Hans/support_url.txt create mode 100644 fastlane/metadata-macos/zh-Hant/description.txt create mode 100644 fastlane/metadata-macos/zh-Hant/keywords.txt create mode 120000 fastlane/metadata-macos/zh-Hant/marketing_url.txt create mode 120000 fastlane/metadata-macos/zh-Hant/name.txt create mode 120000 fastlane/metadata-macos/zh-Hant/privacy_url.txt create mode 120000 fastlane/metadata-macos/zh-Hant/subtitle.txt create mode 120000 fastlane/metadata-macos/zh-Hant/support_url.txt create mode 120000 fastlane/metadata-play/android/de-DE/full_description.txt create mode 120000 fastlane/metadata-play/android/de-DE/short_description.txt create mode 100644 fastlane/metadata-play/android/de-DE/title.txt create mode 120000 fastlane/metadata-play/android/es-419/full_description.txt create mode 120000 fastlane/metadata-play/android/es-419/short_description.txt create mode 120000 fastlane/metadata-play/android/es-419/title.txt create mode 120000 fastlane/metadata-play/android/es-ES/full_description.txt create mode 120000 fastlane/metadata-play/android/es-ES/short_description.txt create mode 100644 fastlane/metadata-play/android/es-ES/title.txt create mode 120000 fastlane/metadata-play/android/fr-FR/full_description.txt create mode 120000 fastlane/metadata-play/android/fr-FR/short_description.txt create mode 100644 fastlane/metadata-play/android/fr-FR/title.txt create mode 120000 fastlane/metadata-play/android/ja-JP/full_description.txt create mode 120000 fastlane/metadata-play/android/ja-JP/short_description.txt create mode 100644 fastlane/metadata-play/android/ja-JP/title.txt create mode 120000 fastlane/metadata-play/android/pt-BR/full_description.txt create mode 120000 fastlane/metadata-play/android/pt-BR/short_description.txt create mode 100644 fastlane/metadata-play/android/pt-BR/title.txt create mode 120000 fastlane/metadata-play/android/zh-CN/full_description.txt create mode 120000 fastlane/metadata-play/android/zh-CN/short_description.txt create mode 100644 fastlane/metadata-play/android/zh-CN/title.txt create mode 120000 fastlane/metadata-play/android/zh-TW/full_description.txt create mode 120000 fastlane/metadata-play/android/zh-TW/short_description.txt create mode 100644 fastlane/metadata-play/android/zh-TW/title.txt create mode 100644 fastlane/metadata/android/de-DE/full_description.txt create mode 100644 fastlane/metadata/android/de-DE/short_description.txt create mode 100644 fastlane/metadata/android/es-ES/full_description.txt create mode 100644 fastlane/metadata/android/es-ES/short_description.txt create mode 100644 fastlane/metadata/android/fr-FR/full_description.txt create mode 100644 fastlane/metadata/android/fr-FR/short_description.txt create mode 100644 fastlane/metadata/android/ja-JP/full_description.txt create mode 100644 fastlane/metadata/android/ja-JP/short_description.txt create mode 100644 fastlane/metadata/android/pt-BR/full_description.txt create mode 100644 fastlane/metadata/android/pt-BR/short_description.txt create mode 100644 fastlane/metadata/android/zh-CN/full_description.txt create mode 100644 fastlane/metadata/android/zh-CN/short_description.txt create mode 100644 fastlane/metadata/android/zh-TW/full_description.txt create mode 100644 fastlane/metadata/android/zh-TW/short_description.txt create mode 100644 fastlane/metadata/de-DE/description.txt create mode 100644 fastlane/metadata/de-DE/keywords.txt create mode 120000 fastlane/metadata/de-DE/marketing_url.txt create mode 100644 fastlane/metadata/de-DE/name.txt create mode 120000 fastlane/metadata/de-DE/privacy_url.txt create mode 100644 fastlane/metadata/de-DE/subtitle.txt create mode 120000 fastlane/metadata/de-DE/support_url.txt create mode 100644 fastlane/metadata/es-ES/description.txt create mode 100644 fastlane/metadata/es-ES/keywords.txt create mode 120000 fastlane/metadata/es-ES/marketing_url.txt create mode 100644 fastlane/metadata/es-ES/name.txt create mode 120000 fastlane/metadata/es-ES/privacy_url.txt create mode 100644 fastlane/metadata/es-ES/subtitle.txt create mode 120000 fastlane/metadata/es-ES/support_url.txt create mode 120000 fastlane/metadata/es-MX/description.txt create mode 120000 fastlane/metadata/es-MX/keywords.txt create mode 120000 fastlane/metadata/es-MX/marketing_url.txt create mode 120000 fastlane/metadata/es-MX/name.txt create mode 120000 fastlane/metadata/es-MX/privacy_url.txt create mode 120000 fastlane/metadata/es-MX/subtitle.txt create mode 120000 fastlane/metadata/es-MX/support_url.txt create mode 100644 fastlane/metadata/fr-FR/description.txt create mode 100644 fastlane/metadata/fr-FR/keywords.txt create mode 120000 fastlane/metadata/fr-FR/marketing_url.txt create mode 100644 fastlane/metadata/fr-FR/name.txt create mode 120000 fastlane/metadata/fr-FR/privacy_url.txt create mode 100644 fastlane/metadata/fr-FR/subtitle.txt create mode 120000 fastlane/metadata/fr-FR/support_url.txt create mode 100644 fastlane/metadata/ja/description.txt create mode 100644 fastlane/metadata/ja/keywords.txt create mode 120000 fastlane/metadata/ja/marketing_url.txt create mode 100644 fastlane/metadata/ja/name.txt create mode 120000 fastlane/metadata/ja/privacy_url.txt create mode 100644 fastlane/metadata/ja/subtitle.txt create mode 120000 fastlane/metadata/ja/support_url.txt create mode 100644 fastlane/metadata/pt-BR/description.txt create mode 100644 fastlane/metadata/pt-BR/keywords.txt create mode 120000 fastlane/metadata/pt-BR/marketing_url.txt create mode 100644 fastlane/metadata/pt-BR/name.txt create mode 120000 fastlane/metadata/pt-BR/privacy_url.txt create mode 100644 fastlane/metadata/pt-BR/subtitle.txt create mode 120000 fastlane/metadata/pt-BR/support_url.txt create mode 100644 fastlane/metadata/zh-Hans/description.txt create mode 100644 fastlane/metadata/zh-Hans/keywords.txt create mode 120000 fastlane/metadata/zh-Hans/marketing_url.txt create mode 100644 fastlane/metadata/zh-Hans/name.txt create mode 120000 fastlane/metadata/zh-Hans/privacy_url.txt create mode 100644 fastlane/metadata/zh-Hans/subtitle.txt create mode 120000 fastlane/metadata/zh-Hans/support_url.txt create mode 100644 fastlane/metadata/zh-Hant/description.txt create mode 100644 fastlane/metadata/zh-Hant/keywords.txt create mode 120000 fastlane/metadata/zh-Hant/marketing_url.txt create mode 100644 fastlane/metadata/zh-Hant/name.txt create mode 120000 fastlane/metadata/zh-Hant/privacy_url.txt create mode 100644 fastlane/metadata/zh-Hant/subtitle.txt create mode 120000 fastlane/metadata/zh-Hant/support_url.txt diff --git a/fastlane/Fastfile b/fastlane/Fastfile index e76e054e6..237a00a00 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -174,7 +174,12 @@ def submit_apple_build(deliver_opts, testflight_opts) # (Before fastlane/metadata/en-US existed this only sent the two inline # fields and left the rest of App Store Connect untouched.) skip_metadata: false, - release_notes: { "en-US" => release_notes_text }, + # "default" fills every localization in the metadata folder, not just en-US. + # An update needs What's New in each language it is listed in, so without it + # the zh-Hans, ja, de-DE... folders would make the submission fail. The notes + # come from release-notes.json, which is English, so every language gets them + # in English until that file carries translations. + release_notes: { "default" => release_notes_text }, promotional_text: { "en-US" => PROMOTIONAL_TEXT }, precheck_include_in_app_purchases: false, submission_information: { add_id_info_uses_idfa: false }, diff --git a/fastlane/metadata-macos/de-DE/description.txt b/fastlane/metadata-macos/de-DE/description.txt new file mode 100644 index 000000000..f70ca48e4 --- /dev/null +++ b/fastlane/metadata-macos/de-DE/description.txt @@ -0,0 +1,42 @@ +Readest ist ein E-Book-Reader für Menschen, die viel lesen und ihre Bücher, Notizen und Leseposition auf dem Gerät haben möchten, das gerade am nächsten liegt. + +Auf dem Mac haben Sie Platz, sich auszubreiten. Öffnen Sie mehrere Bücher in eigenen Fenstern, behalten Sie Text und Notizen gleichzeitig im Blick und steuern Sie alles über die Tastatur. + +Gemacht für den Mac +• Bücher in eigenen Fenstern öffnen und nebeneinander anordnen +• Blättern, suchen, markieren und durch die Bibliothek navigieren, ohne zur Maus zu greifen +• Jedes Wort in den bereits installierten macOS-Wörterbüchern nachschlagen +• Bis zu vier Bücher gleichzeitig öffnen, mit flexiblen Layouts + +Lesen +• Seitenweise oder scrollend, mit eigenen Schriften, Themen, Abständen und Rändern +• Vertikaler Text für CJK-Bücher +• Kontrast und Bildaufbau für E-Ink-Displays abgestimmt +• Volltextsuche im Buch + +Ihre Bibliothek +• EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT und Markdown öffnen +• OPDS-Kataloge und öffentliche Bibliotheken durchsuchen und Bücher herunterladen +• Mit Calibre oder Calibre-Web verbinden, samt Covern und Metadaten +• Mit umbenennbaren Bücherregal-Gruppen ordnen + +Notizen +• Markierungen, Lesezeichen und strukturierte Notizen +• Eine Markierung samt Deep Link zurück zur Textstelle kopieren +• Anmerkungen exportieren + +Zuhören und Sprachen +• Sprachausgabe mit herunterladbaren Offline-Stimmen +• Einen Satz, eine Seite oder ein ganzes Buch übersetzen +• Wikipedia und Wörterbuch nachschlagen, ohne die Seite zu verlassen + +Synchronisierung +• Readest Cloud oder Ihr eigener Speicher: iCloud, Google Drive, OneDrive, WebDAV, S3 +• KOReader-Sync hält Ihren Lesefortschritt mit Ihrem E-Reader auf demselben Stand +• Mac, iPhone, iPad, alle anderen Plattformen und das Web + +Readest ist Open Source. + +Support: support@readest.com +Datenschutzerklärung: https://readest.com/privacy-policy +Nutzungsbedingungen: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/de-DE/keywords.txt b/fastlane/metadata-macos/de-DE/keywords.txt new file mode 100644 index 000000000..642345f3c --- /dev/null +++ b/fastlane/metadata-macos/de-DE/keywords.txt @@ -0,0 +1 @@ +ebook,bücher,lesen,mobi,azw3,bibliothek,notizen,übersetzen,wörterbuch,mac,calibre,opds,koreader diff --git a/fastlane/metadata-macos/de-DE/marketing_url.txt b/fastlane/metadata-macos/de-DE/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/de-DE/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/de-DE/name.txt b/fastlane/metadata-macos/de-DE/name.txt new file mode 120000 index 000000000..55b97d3fc --- /dev/null +++ b/fastlane/metadata-macos/de-DE/name.txt @@ -0,0 +1 @@ +../../metadata/de-DE/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/de-DE/privacy_url.txt b/fastlane/metadata-macos/de-DE/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/de-DE/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/de-DE/subtitle.txt b/fastlane/metadata-macos/de-DE/subtitle.txt new file mode 120000 index 000000000..13b157c6d --- /dev/null +++ b/fastlane/metadata-macos/de-DE/subtitle.txt @@ -0,0 +1 @@ +../../metadata/de-DE/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/de-DE/support_url.txt b/fastlane/metadata-macos/de-DE/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/de-DE/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-ES/description.txt b/fastlane/metadata-macos/es-ES/description.txt new file mode 100644 index 000000000..76355353a --- /dev/null +++ b/fastlane/metadata-macos/es-ES/description.txt @@ -0,0 +1,42 @@ +Readest es un lector de ebooks para quienes leen mucho y quieren tener sus libros, notas y posición de lectura en el dispositivo que tengan más cerca. + +En el Mac tienes espacio de sobra. Abre varios libros, cada uno en su ventana, mantén a la vista el texto y tus notas al mismo tiempo y controla todo desde el teclado. + +Hecho para el Mac +• Abre libros en ventanas separadas y colócalos uno junto a otro +• Pasa páginas, busca, anota y recorre tu biblioteca sin tocar el ratón +• Consulta cualquier palabra en los diccionarios de macOS que ya tienes instalados +• Abre hasta cuatro libros a la vez con diseños flexibles + +Lectura +• Paginado o con desplazamiento, con fuentes, temas, espaciado y márgenes personalizados +• Texto vertical para libros CJK +• Contraste y actualización ajustados para pantallas de tinta electrónica +• Búsqueda de texto completo dentro de un libro + +Tu biblioteca +• Abre EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT y Markdown +• Explora, busca y descarga de catálogos OPDS y bibliotecas públicas +• Conéctate a Calibre o Calibre-Web, con portadas y metadatos incluidos +• Organiza con grupos de estanterías que puedes renombrar + +Notas +• Resaltados, marcadores y notas estructuradas +• Copia un resaltado junto con un enlace directo al pasaje +• Exporta tus anotaciones + +Escucha e idiomas +• Texto a voz con voces descargables sin conexión +• Traduce una frase, una página o un libro entero +• Consulta Wikipedia y el diccionario sin salir de la página + +Sincronización +• Readest Cloud, o tu propio almacenamiento: iCloud, Google Drive, OneDrive, WebDAV, S3 +• La sincronización con KOReader mantiene tu progreso al día con tu lector de libros electrónicos +• Mac, iPhone, iPad, todas las demás plataformas y la web + +Readest es de código abierto. + +Soporte: support@readest.com +Política de privacidad: https://readest.com/privacy-policy +Términos del servicio: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/es-ES/keywords.txt b/fastlane/metadata-macos/es-ES/keywords.txt new file mode 100644 index 000000000..118fe2316 --- /dev/null +++ b/fastlane/metadata-macos/es-ES/keywords.txt @@ -0,0 +1 @@ +ebook,leer,libro,mobi,azw3,biblioteca,resaltar,traducir,diccionario,mac,calibre,opds,koreader diff --git a/fastlane/metadata-macos/es-ES/marketing_url.txt b/fastlane/metadata-macos/es-ES/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/es-ES/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-ES/name.txt b/fastlane/metadata-macos/es-ES/name.txt new file mode 120000 index 000000000..a4ef7a9db --- /dev/null +++ b/fastlane/metadata-macos/es-ES/name.txt @@ -0,0 +1 @@ +../../metadata/es-ES/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-ES/privacy_url.txt b/fastlane/metadata-macos/es-ES/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/es-ES/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-ES/subtitle.txt b/fastlane/metadata-macos/es-ES/subtitle.txt new file mode 120000 index 000000000..2c1e9d8b0 --- /dev/null +++ b/fastlane/metadata-macos/es-ES/subtitle.txt @@ -0,0 +1 @@ +../../metadata/es-ES/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-ES/support_url.txt b/fastlane/metadata-macos/es-ES/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/es-ES/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/description.txt b/fastlane/metadata-macos/es-MX/description.txt new file mode 120000 index 000000000..2f77b1f4d --- /dev/null +++ b/fastlane/metadata-macos/es-MX/description.txt @@ -0,0 +1 @@ +../es-ES/description.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/keywords.txt b/fastlane/metadata-macos/es-MX/keywords.txt new file mode 120000 index 000000000..a3a5815f2 --- /dev/null +++ b/fastlane/metadata-macos/es-MX/keywords.txt @@ -0,0 +1 @@ +../es-ES/keywords.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/marketing_url.txt b/fastlane/metadata-macos/es-MX/marketing_url.txt new file mode 120000 index 000000000..5cdb5bf62 --- /dev/null +++ b/fastlane/metadata-macos/es-MX/marketing_url.txt @@ -0,0 +1 @@ +../es-ES/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/name.txt b/fastlane/metadata-macos/es-MX/name.txt new file mode 120000 index 000000000..a36215db3 --- /dev/null +++ b/fastlane/metadata-macos/es-MX/name.txt @@ -0,0 +1 @@ +../es-ES/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/privacy_url.txt b/fastlane/metadata-macos/es-MX/privacy_url.txt new file mode 120000 index 000000000..f936c95ac --- /dev/null +++ b/fastlane/metadata-macos/es-MX/privacy_url.txt @@ -0,0 +1 @@ +../es-ES/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/subtitle.txt b/fastlane/metadata-macos/es-MX/subtitle.txt new file mode 120000 index 000000000..c97c0a22b --- /dev/null +++ b/fastlane/metadata-macos/es-MX/subtitle.txt @@ -0,0 +1 @@ +../es-ES/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/es-MX/support_url.txt b/fastlane/metadata-macos/es-MX/support_url.txt new file mode 120000 index 000000000..83561c262 --- /dev/null +++ b/fastlane/metadata-macos/es-MX/support_url.txt @@ -0,0 +1 @@ +../es-ES/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/fr-FR/description.txt b/fastlane/metadata-macos/fr-FR/description.txt new file mode 100644 index 000000000..720a4deef --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/description.txt @@ -0,0 +1,42 @@ +Readest est un lecteur d'ebooks pour celles et ceux qui lisent beaucoup et veulent retrouver leurs livres, leurs notes et leur position de lecture sur l'appareil le plus proche. + +Sur Mac, vous avez de la place. Ouvrez plusieurs livres dans leurs propres fenêtres, gardez le texte et vos notes sous les yeux en même temps et pilotez le tout au clavier. + +Conçu pour Mac +• Ouvrez des livres dans des fenêtres séparées et placez-les côte à côte +• Tournez les pages, cherchez, annotez et parcourez votre bibliothèque sans toucher à la souris +• Cherchez n'importe quel mot dans les dictionnaires macOS déjà installés +• Ouvrez jusqu'à quatre livres à la fois avec des dispositions flexibles + +Lecture +• Mode paginé ou défilement, avec polices, thèmes, espacements et marges personnalisés +• Texte vertical pour les livres CJK +• Contraste et rafraîchissement adaptés aux écrans e-ink +• Recherche plein texte dans un livre + +Votre bibliothèque +• Ouvrez EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT et Markdown +• Parcourez, cherchez et téléchargez depuis des catalogues OPDS et des bibliothèques publiques +• Connectez-vous à Calibre ou Calibre-Web, couvertures et métadonnées comprises +• Rangez vos livres dans des groupes d'étagères renommables + +Notes +• Surlignages, signets et notes structurées +• Copiez un surlignage avec un lien direct vers le passage +• Exportez vos annotations + +Écoute et langues +• Synthèse vocale avec des voix hors ligne téléchargeables +• Traduisez une phrase, une page ou un livre entier +• Consultez Wikipédia et le dictionnaire sans quitter la page + +Synchronisation +• Readest Cloud, ou votre propre stockage : iCloud, Google Drive, OneDrive, WebDAV, S3 +• La synchro KOReader garde votre progression alignée avec votre liseuse +• Mac, iPhone, iPad, toutes les autres plateformes et le Web + +Readest est open source. + +Assistance : support@readest.com +Politique de confidentialité : https://readest.com/privacy-policy +Conditions d'utilisation : https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/fr-FR/keywords.txt b/fastlane/metadata-macos/fr-FR/keywords.txt new file mode 100644 index 000000000..9dfce2ca4 --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/keywords.txt @@ -0,0 +1 @@ +livre,lire,numérique,mobi,azw3,bibliothèque,traduire,dictionnaire,notes,mac,calibre,opds,koreader diff --git a/fastlane/metadata-macos/fr-FR/marketing_url.txt b/fastlane/metadata-macos/fr-FR/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/fr-FR/name.txt b/fastlane/metadata-macos/fr-FR/name.txt new file mode 120000 index 000000000..9cfa9719e --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/name.txt @@ -0,0 +1 @@ +../../metadata/fr-FR/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/fr-FR/privacy_url.txt b/fastlane/metadata-macos/fr-FR/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/fr-FR/subtitle.txt b/fastlane/metadata-macos/fr-FR/subtitle.txt new file mode 120000 index 000000000..854ea541e --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/subtitle.txt @@ -0,0 +1 @@ +../../metadata/fr-FR/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/fr-FR/support_url.txt b/fastlane/metadata-macos/fr-FR/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/fr-FR/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/ja/description.txt b/fastlane/metadata-macos/ja/description.txt new file mode 100644 index 000000000..11e092d06 --- /dev/null +++ b/fastlane/metadata-macos/ja/description.txt @@ -0,0 +1,42 @@ +Readest は、たくさん本を読む人のための電子書籍リーダーです。本もメモも読みかけの位置も、いちばん近くにあるデバイスでそのまま続きから。 + +Mac なら広い画面を存分に使えます。何冊もの本をそれぞれのウインドウで開き、本文とメモを同時に表示して、すべてをキーボードで操作できます。 + +Mac のために +• 本を別々のウインドウで開いて横に並べられます +• ページめくり、検索、書き込み、ライブラリの移動まで、マウスに手を伸ばさずに操作できます +• インストール済みの macOS の辞書でどんな単語も調べられます +• 最大 4 冊を同時に開き、レイアウトを自由に変えられます + +読書 +• ページめくりまたはスクロール。フォント、テーマ、間隔、余白を自由に設定 +• CJK の本の縦書きに対応 +• 電子ペーパー向けに調整したコントラストとリフレッシュ +• 本の中の全文検索 + +ライブラリ +• EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT、Markdown を開けます +• OPDS カタログや公共図書館から本を閲覧、検索、ダウンロード +• Calibre や Calibre-Web に接続。表紙とメタデータも一緒に +• 名前を変えられる本棚グループで整理 + +メモ +• ハイライト、ブックマーク、構造化されたメモ +• ハイライトを、その箇所に戻れるディープリンク付きでコピー +• 注釈をエクスポート + +読み上げと言語 +• ダウンロードできるオフライン音声でテキストを読み上げ +• 一文、1 ページ、本まるごと 1 冊を翻訳 +• ページを離れずに Wikipedia と辞書を検索 + +同期 +• Readest Cloud のほか、iCloud、Google Drive、OneDrive、WebDAV、S3 も利用可能 +• KOReader 同期で電子書籍リーダー端末と読書位置をそろえられます +• Mac、iPhone、iPad、その他すべてのプラットフォームと Web + +Readest はオープンソースです。 + +サポート:support@readest.com +プライバシーポリシー:https://readest.com/privacy-policy +利用規約:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/ja/keywords.txt b/fastlane/metadata-macos/ja/keywords.txt new file mode 100644 index 000000000..3dcd713fc --- /dev/null +++ b/fastlane/metadata-macos/ja/keywords.txt @@ -0,0 +1 @@ +本,読書,小説,漫画,マンガ,txt,mobi,azw3,fb2,cbz,ビューア,ハイライト,メモ,辞書,縦書き,本棚,ウインドウ,mac,calibre,opds,koreader diff --git a/fastlane/metadata-macos/ja/marketing_url.txt b/fastlane/metadata-macos/ja/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/ja/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/ja/name.txt b/fastlane/metadata-macos/ja/name.txt new file mode 120000 index 000000000..c3eeb9017 --- /dev/null +++ b/fastlane/metadata-macos/ja/name.txt @@ -0,0 +1 @@ +../../metadata/ja/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/ja/privacy_url.txt b/fastlane/metadata-macos/ja/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/ja/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/ja/subtitle.txt b/fastlane/metadata-macos/ja/subtitle.txt new file mode 120000 index 000000000..5e394c837 --- /dev/null +++ b/fastlane/metadata-macos/ja/subtitle.txt @@ -0,0 +1 @@ +../../metadata/ja/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/ja/support_url.txt b/fastlane/metadata-macos/ja/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/ja/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/pt-BR/description.txt b/fastlane/metadata-macos/pt-BR/description.txt new file mode 100644 index 000000000..c50a7e9c1 --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/description.txt @@ -0,0 +1,42 @@ +Readest é um leitor de ebooks para quem lê muito e quer ter seus livros, notas e posição de leitura no aparelho que estiver mais perto. + +No Mac você tem espaço de sobra. Abra vários livros, cada um em sua própria janela, mantenha o texto e suas notas à vista ao mesmo tempo e controle tudo pelo teclado. + +Feito para o Mac +• Abra livros em janelas separadas e coloque-os lado a lado +• Vire páginas, busque, anote e navegue pela biblioteca sem tocar no mouse +• Consulte qualquer palavra nos dicionários do macOS que você já tem instalados +• Abra até quatro livros ao mesmo tempo com layouts flexíveis + +Leitura +• Modo paginado ou rolagem, com fontes, temas, espaçamento e margens personalizados +• Texto vertical para livros CJK +• Contraste e atualização ajustados para telas e-ink +• Busca no texto completo do livro + +Sua biblioteca +• Abra EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT e Markdown +• Navegue, busque e baixe de catálogos OPDS e bibliotecas públicas +• Conecte ao Calibre ou Calibre-Web, com capas e metadados +• Organize com grupos de estantes que você pode renomear + +Notas +• Destaques, marcadores e notas estruturadas +• Copie um destaque junto com um link direto para o trecho +• Exporte suas anotações + +Ouvir e idiomas +• Leitura em voz alta com vozes offline para baixar +• Traduza uma frase, uma página ou um livro inteiro +• Consulte a Wikipédia e o dicionário sem sair da página + +Sincronização +• Readest Cloud, ou o seu próprio armazenamento: iCloud, Google Drive, OneDrive, WebDAV, S3 +• A sincronização com o KOReader mantém seu progresso em dia com seu leitor de ebooks +• Mac, iPhone, iPad, todas as outras plataformas e a web + +Readest é de código aberto. + +Suporte: support@readest.com +Política de privacidade: https://readest.com/privacy-policy +Termos de serviço: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/pt-BR/keywords.txt b/fastlane/metadata-macos/pt-BR/keywords.txt new file mode 100644 index 000000000..3a69946b6 --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/keywords.txt @@ -0,0 +1 @@ +livros,ler,abrir,mobi,azw3,biblioteca,destacar,traduzir,dicionário,mac,calibre,opds,koreader diff --git a/fastlane/metadata-macos/pt-BR/marketing_url.txt b/fastlane/metadata-macos/pt-BR/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/pt-BR/name.txt b/fastlane/metadata-macos/pt-BR/name.txt new file mode 120000 index 000000000..75a3ad9c4 --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/name.txt @@ -0,0 +1 @@ +../../metadata/pt-BR/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/pt-BR/privacy_url.txt b/fastlane/metadata-macos/pt-BR/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/pt-BR/subtitle.txt b/fastlane/metadata-macos/pt-BR/subtitle.txt new file mode 120000 index 000000000..37505db55 --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/subtitle.txt @@ -0,0 +1 @@ +../../metadata/pt-BR/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/pt-BR/support_url.txt b/fastlane/metadata-macos/pt-BR/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/pt-BR/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hans/description.txt b/fastlane/metadata-macos/zh-Hans/description.txt new file mode 100644 index 000000000..70e2fd772 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/description.txt @@ -0,0 +1,42 @@ +Readest 是一款为爱读书的人打造的电子书阅读器:无论身边是哪台设备,你的书、笔记和阅读进度都在那里。 + +在 Mac 上,你有足够的空间铺开。在各自的窗口里打开多本书,让正文和笔记同时留在眼前,全程用键盘操作。 + +为 Mac 打造 +• 在独立窗口中打开图书,并排摆放 +• 翻页、搜索、标注、浏览书库,都不必伸手去拿鼠标 +• 用你已安装的 macOS 词典查任意单词 +• 最多同时打开四本书,布局可灵活调整 + +阅读 +• 分页或滚动模式,可自定义字体、主题、间距和页边距 +• 支持中日韩图书竖排 +• 为墨水屏调校的对比度与刷新 +• 书内全文搜索 + +你的书库 +• 打开 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown +• 浏览、搜索并下载 OPDS 书目和公共图书馆中的图书 +• 连接 Calibre 或 Calibre-Web,封面和元数据一并获取 +• 用可重命名的书架分组整理图书 + +笔记 +• 划线、书签和结构化笔记 +• 复制划线时附带可跳回原文位置的深层链接 +• 导出你的笔记 + +朗读与语言 +• 文字转语音,可下载离线语音 +• 翻译一句话、一页,或整本书 +• 无需离开页面即可查询维基百科和词典 + +同步 +• 使用 Readest Cloud,或自选 iCloud、Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步让阅读进度与你的电子阅读器保持一致 +• Mac、iPhone、iPad、其他所有平台以及网页版 + +Readest 是开源软件。 + +支持:support@readest.com +隐私政策:https://readest.com/privacy-policy +服务条款:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/zh-Hans/keywords.txt b/fastlane/metadata-macos/zh-Hans/keywords.txt new file mode 100644 index 000000000..9d3c0bd36 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/keywords.txt @@ -0,0 +1 @@ +电子书,阅读,小说,txt,mobi,azw3,fb2,cbz,漫画,划线,笔记,书架,书库,词典,竖排,多窗口,mac,calibre,opds,koreader,webdav,开源 diff --git a/fastlane/metadata-macos/zh-Hans/marketing_url.txt b/fastlane/metadata-macos/zh-Hans/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hans/name.txt b/fastlane/metadata-macos/zh-Hans/name.txt new file mode 120000 index 000000000..19f175e23 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/name.txt @@ -0,0 +1 @@ +../../metadata/zh-Hans/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hans/privacy_url.txt b/fastlane/metadata-macos/zh-Hans/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hans/subtitle.txt b/fastlane/metadata-macos/zh-Hans/subtitle.txt new file mode 120000 index 000000000..f8d5d0c73 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/subtitle.txt @@ -0,0 +1 @@ +../../metadata/zh-Hans/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hans/support_url.txt b/fastlane/metadata-macos/zh-Hans/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/zh-Hans/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hant/description.txt b/fastlane/metadata-macos/zh-Hant/description.txt new file mode 100644 index 000000000..602dcd4a5 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/description.txt @@ -0,0 +1,42 @@ +Readest 是一款為愛讀書的人打造的電子書閱讀器:無論手邊是哪台裝置,你的書、筆記和閱讀進度都在那裡。 + +在 Mac 上,你有足夠的空間攤開來讀。在各自的視窗裡開啟多本書,讓內文和筆記同時留在眼前,全程用鍵盤操作。 + +為 Mac 打造 +• 在獨立視窗中開啟書籍,並排擺放 +• 翻頁、搜尋、標註、瀏覽書庫,都不必伸手去拿滑鼠 +• 用你已安裝的 macOS 字典查任何單字 +• 最多同時開啟四本書,版面可彈性調整 + +閱讀 +• 分頁或捲動模式,可自訂字型、主題、間距和邊界 +• 支援中日韓書籍直排 +• 針對電子紙螢幕調校的對比度與刷新 +• 書內全文搜尋 + +你的書庫 +• 開啟 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown +• 瀏覽、搜尋並下載 OPDS 書目和公共圖書館中的書籍 +• 連接 Calibre 或 Calibre-Web,封面和中繼資料一併取得 +• 用可重新命名的書架群組整理書籍 + +筆記 +• 劃線、書籤和結構化筆記 +• 複製劃線時附上可跳回原文位置的深層連結 +• 匯出你的筆記 + +朗讀與語言 +• 文字轉語音,可下載離線語音 +• 翻譯一句話、一頁,或整本書 +• 不必離開頁面即可查詢維基百科和字典 + +同步 +• 使用 Readest Cloud,或自選 iCloud、Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步讓閱讀進度與你的電子閱讀器保持一致 +• Mac、iPhone、iPad、其他所有平台以及網頁版 + +Readest 是開源軟體。 + +支援:support@readest.com +隱私權政策:https://readest.com/privacy-policy +服務條款:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata-macos/zh-Hant/keywords.txt b/fastlane/metadata-macos/zh-Hant/keywords.txt new file mode 100644 index 000000000..97cd90152 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/keywords.txt @@ -0,0 +1 @@ +電子書,閱讀,小說,txt,mobi,azw3,fb2,cbz,漫畫,劃線,筆記,書架,書庫,字典,直排,多視窗,mac,calibre,opds,koreader,webdav,開源 diff --git a/fastlane/metadata-macos/zh-Hant/marketing_url.txt b/fastlane/metadata-macos/zh-Hant/marketing_url.txt new file mode 120000 index 000000000..a72bdf77d --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/marketing_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hant/name.txt b/fastlane/metadata-macos/zh-Hant/name.txt new file mode 120000 index 000000000..97eb70dfb --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/name.txt @@ -0,0 +1 @@ +../../metadata/zh-Hant/name.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hant/privacy_url.txt b/fastlane/metadata-macos/zh-Hant/privacy_url.txt new file mode 120000 index 000000000..8ec2a33f4 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/privacy_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hant/subtitle.txt b/fastlane/metadata-macos/zh-Hant/subtitle.txt new file mode 120000 index 000000000..8aa749bb4 --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/subtitle.txt @@ -0,0 +1 @@ +../../metadata/zh-Hant/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata-macos/zh-Hant/support_url.txt b/fastlane/metadata-macos/zh-Hant/support_url.txt new file mode 120000 index 000000000..e13be333b --- /dev/null +++ b/fastlane/metadata-macos/zh-Hant/support_url.txt @@ -0,0 +1 @@ +../../metadata/en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/de-DE/full_description.txt b/fastlane/metadata-play/android/de-DE/full_description.txt new file mode 120000 index 000000000..f448ac71b --- /dev/null +++ b/fastlane/metadata-play/android/de-DE/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/de-DE/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/de-DE/short_description.txt b/fastlane/metadata-play/android/de-DE/short_description.txt new file mode 120000 index 000000000..a326f15d3 --- /dev/null +++ b/fastlane/metadata-play/android/de-DE/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/de-DE/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/de-DE/title.txt b/fastlane/metadata-play/android/de-DE/title.txt new file mode 100644 index 000000000..25cef1021 --- /dev/null +++ b/fastlane/metadata-play/android/de-DE/title.txt @@ -0,0 +1 @@ +Readest: EPUB- & PDF-Reader diff --git a/fastlane/metadata-play/android/es-419/full_description.txt b/fastlane/metadata-play/android/es-419/full_description.txt new file mode 120000 index 000000000..a0c94c29b --- /dev/null +++ b/fastlane/metadata-play/android/es-419/full_description.txt @@ -0,0 +1 @@ +../es-ES/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/es-419/short_description.txt b/fastlane/metadata-play/android/es-419/short_description.txt new file mode 120000 index 000000000..fe968c0eb --- /dev/null +++ b/fastlane/metadata-play/android/es-419/short_description.txt @@ -0,0 +1 @@ +../es-ES/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/es-419/title.txt b/fastlane/metadata-play/android/es-419/title.txt new file mode 120000 index 000000000..18a320d68 --- /dev/null +++ b/fastlane/metadata-play/android/es-419/title.txt @@ -0,0 +1 @@ +../es-ES/title.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/es-ES/full_description.txt b/fastlane/metadata-play/android/es-ES/full_description.txt new file mode 120000 index 000000000..34e480081 --- /dev/null +++ b/fastlane/metadata-play/android/es-ES/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/es-ES/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/es-ES/short_description.txt b/fastlane/metadata-play/android/es-ES/short_description.txt new file mode 120000 index 000000000..c3b726be5 --- /dev/null +++ b/fastlane/metadata-play/android/es-ES/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/es-ES/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/es-ES/title.txt b/fastlane/metadata-play/android/es-ES/title.txt new file mode 100644 index 000000000..aa700193b --- /dev/null +++ b/fastlane/metadata-play/android/es-ES/title.txt @@ -0,0 +1 @@ +Readest: lector EPUB y PDF diff --git a/fastlane/metadata-play/android/fr-FR/full_description.txt b/fastlane/metadata-play/android/fr-FR/full_description.txt new file mode 120000 index 000000000..692559f89 --- /dev/null +++ b/fastlane/metadata-play/android/fr-FR/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/fr-FR/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/fr-FR/short_description.txt b/fastlane/metadata-play/android/fr-FR/short_description.txt new file mode 120000 index 000000000..ea04b3008 --- /dev/null +++ b/fastlane/metadata-play/android/fr-FR/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/fr-FR/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/fr-FR/title.txt b/fastlane/metadata-play/android/fr-FR/title.txt new file mode 100644 index 000000000..dcc395d47 --- /dev/null +++ b/fastlane/metadata-play/android/fr-FR/title.txt @@ -0,0 +1 @@ +Readest : lecteur EPUB et PDF diff --git a/fastlane/metadata-play/android/ja-JP/full_description.txt b/fastlane/metadata-play/android/ja-JP/full_description.txt new file mode 120000 index 000000000..bf90f5e83 --- /dev/null +++ b/fastlane/metadata-play/android/ja-JP/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/ja-JP/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/ja-JP/short_description.txt b/fastlane/metadata-play/android/ja-JP/short_description.txt new file mode 120000 index 000000000..2d7dbd426 --- /dev/null +++ b/fastlane/metadata-play/android/ja-JP/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/ja-JP/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/ja-JP/title.txt b/fastlane/metadata-play/android/ja-JP/title.txt new file mode 100644 index 000000000..40b0227b0 --- /dev/null +++ b/fastlane/metadata-play/android/ja-JP/title.txt @@ -0,0 +1 @@ +Readest:EPUB・PDF電子書籍リーダー diff --git a/fastlane/metadata-play/android/pt-BR/full_description.txt b/fastlane/metadata-play/android/pt-BR/full_description.txt new file mode 120000 index 000000000..be8bdc2d9 --- /dev/null +++ b/fastlane/metadata-play/android/pt-BR/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/pt-BR/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/pt-BR/short_description.txt b/fastlane/metadata-play/android/pt-BR/short_description.txt new file mode 120000 index 000000000..6a8dd7edd --- /dev/null +++ b/fastlane/metadata-play/android/pt-BR/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/pt-BR/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/pt-BR/title.txt b/fastlane/metadata-play/android/pt-BR/title.txt new file mode 100644 index 000000000..f49a11844 --- /dev/null +++ b/fastlane/metadata-play/android/pt-BR/title.txt @@ -0,0 +1 @@ +Readest: leitor de EPUB e PDF diff --git a/fastlane/metadata-play/android/zh-CN/full_description.txt b/fastlane/metadata-play/android/zh-CN/full_description.txt new file mode 120000 index 000000000..05c97abe9 --- /dev/null +++ b/fastlane/metadata-play/android/zh-CN/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/zh-CN/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/zh-CN/short_description.txt b/fastlane/metadata-play/android/zh-CN/short_description.txt new file mode 120000 index 000000000..33122ef72 --- /dev/null +++ b/fastlane/metadata-play/android/zh-CN/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/zh-CN/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/zh-CN/title.txt b/fastlane/metadata-play/android/zh-CN/title.txt new file mode 100644 index 000000000..da2b019f3 --- /dev/null +++ b/fastlane/metadata-play/android/zh-CN/title.txt @@ -0,0 +1 @@ +Readest:EPUB电子书与PDF阅读器 diff --git a/fastlane/metadata-play/android/zh-TW/full_description.txt b/fastlane/metadata-play/android/zh-TW/full_description.txt new file mode 120000 index 000000000..42f6e624a --- /dev/null +++ b/fastlane/metadata-play/android/zh-TW/full_description.txt @@ -0,0 +1 @@ +../../../metadata/android/zh-TW/full_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/zh-TW/short_description.txt b/fastlane/metadata-play/android/zh-TW/short_description.txt new file mode 120000 index 000000000..2b073b511 --- /dev/null +++ b/fastlane/metadata-play/android/zh-TW/short_description.txt @@ -0,0 +1 @@ +../../../metadata/android/zh-TW/short_description.txt \ No newline at end of file diff --git a/fastlane/metadata-play/android/zh-TW/title.txt b/fastlane/metadata-play/android/zh-TW/title.txt new file mode 100644 index 000000000..fb6c85d65 --- /dev/null +++ b/fastlane/metadata-play/android/zh-TW/title.txt @@ -0,0 +1 @@ +Readest:EPUB電子書與PDF閱讀器 diff --git a/fastlane/metadata/README.md b/fastlane/metadata/README.md index 1136b016b..8b851d040 100644 --- a/fastlane/metadata/README.md +++ b/fastlane/metadata/README.md @@ -41,6 +41,38 @@ next release run. See "Uploads are ENABLED" below for exactly which lanes. compositor/ caption renderer (tracked) staging/ gitignored scratch; nothing here is read by a lane +### Localized listings + +Besides `en-US`, each store has a listing in seven languages whose name carries +the category word people search for in that language: 电子书阅读器, 電子書閱讀器, +電子書籍リーダー, EPUB & E-Book Reader, Lecteur EPUB, Lector EPUB, Leitor de EPUB. + +| Language | App Store folder | Play / F-Droid folder | +| --- | --- | --- | +| Simplified Chinese | `zh-Hans` | `zh-CN` | +| Traditional Chinese (Taiwan usage) | `zh-Hant` | `zh-TW` | +| Japanese | `ja` | `ja-JP` | +| German | `de-DE` | `de-DE` | +| French | `fr-FR` | `fr-FR` | +| Spanish | `es-ES`, `es-MX` (symlinks to `es-ES`) | `es-ES`, `es-419` (symlinks to `es-ES`) | +| Portuguese (Brazil) | `pt-BR` | `pt-BR` | + +- The descriptions are translations of the `en-US` text, not new copy: change + `en-US` first, then carry the change into every language. +- Name and subtitle belong to the App Store app record, which iOS and macOS + share, so `metadata-macos//{name,subtitle}.txt` link to the iOS files + instead of carrying a Mac-only subtitle that the other lane would overwrite. +- The URL files link to `en-US`; readest.com picks the visitor's language itself. +- Play's localized short and full descriptions live under `metadata/android//` + and are linked from `metadata-play/android//`, like `en-US`, so F-Droid + shows the same translations. Only `title.txt` is Play-specific. +- Keywords: at most 100 characters (CJK characters count as one), no spaces, + and no words already in the name or subtitle. +- What's New is sent as `release_notes: { "default" => ... }` in the Fastfile, + which deliver copies into every language, so each locale gets the English notes. +- Screenshots stay English: a localization with none falls back to the primary + language's set. + Play and F-Droid are deliberately split. F-Droid keeps the six plain unframed captures and the app name "Readest"; Play gets the captioned marketing composites and the keyword title. Upload Play with: diff --git a/fastlane/metadata/android/de-DE/full_description.txt b/fastlane/metadata/android/de-DE/full_description.txt new file mode 100644 index 000000000..e0432c4e9 --- /dev/null +++ b/fastlane/metadata/android/de-DE/full_description.txt @@ -0,0 +1,34 @@ +Readest ist ein moderner Open-Source-E-Book-Reader für Menschen, die viel lesen und deren Bücher, Notizen und Lesefortschritt überallhin mitkommen sollen. + +Öffnen Sie EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT und Markdown und stimmen Sie das Lesen bis ins letzte Detail ab. + +Lesen, wie Sie möchten +• Seitenweise oder scrollend, mit flüssigen Blätteranimationen +• Eigene Schriften, Themen, Abstände, Ränder und Spalten +• Vertikaler Text für CJK-Bücher +• Für E-Ink gebaut, mit Kontrast für langsam aktualisierende Displays +• Bis zu vier Bücher nebeneinander öffnen, zum Recherchieren und Vergleichen + +Ihre ganze Bibliothek +• OPDS-Kataloge und öffentliche Bibliotheken durchsuchen und Bücher herunterladen +• Mit Calibre und Calibre-Web verbinden, samt Covern und Metadaten +• Mit eigenen Bücherregal-Gruppen ordnen +• Volltextsuche im Buch + +Notizen, die bleiben +• Markierungen, Lesezeichen und strukturierte Notizen +• Eine Markierung samt Deep Link zurück zur Textstelle kopieren +• Anmerkungen exportieren + +Zuhören und verstehen +• Sprachausgabe mit herunterladbaren Offline-Stimmen und Android-Auto-Unterstützung +• Einen Satz, eine Seite oder ein ganzes Buch übersetzen +• Wikipedia und Wörterbuch nachschlagen, ohne die Seite zu verlassen + +Überall synchron +• Readest Cloud oder Ihr eigener Speicher: Google Drive, OneDrive, WebDAV, S3 +• KOReader-Sync hält Ihren Lesefortschritt mit Ihrem E-Reader auf demselben Stand +• Android, iOS, macOS, Windows, Linux und das Web + +Readest ist Open Source. Fragen oder Ideen: support@readest.com +Datenschutzerklärung: https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/de-DE/short_description.txt b/fastlane/metadata/android/de-DE/short_description.txt new file mode 100644 index 000000000..f9c245783 --- /dev/null +++ b/fastlane/metadata/android/de-DE/short_description.txt @@ -0,0 +1 @@ +EPUB, PDF und mehr lesen. Sync, Notizen, Übersetzen und Vorlesen überall. diff --git a/fastlane/metadata/android/es-ES/full_description.txt b/fastlane/metadata/android/es-ES/full_description.txt new file mode 100644 index 000000000..2c4b406e5 --- /dev/null +++ b/fastlane/metadata/android/es-ES/full_description.txt @@ -0,0 +1,34 @@ +Readest es un lector de ebooks moderno y de código abierto para quienes leen mucho y quieren que sus libros, notas y progreso los acompañen a todas partes. + +Abre EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT y Markdown, y ajusta la lectura hasta el último detalle. + +Lee a tu manera +• Modo paginado o con desplazamiento, con animaciones de página fluidas +• Fuentes, temas, espaciado, márgenes y columnas personalizados +• Texto vertical para libros CJK +• Pensado para tinta electrónica, con contraste ajustado para pantallas de refresco lento +• Abre hasta cuatro libros lado a lado para investigar y comparar + +Toda tu biblioteca +• Explora y descarga de catálogos OPDS y bibliotecas públicas +• Conéctate a Calibre y Calibre-Web, con portadas y metadatos incluidos +• Organiza con grupos de estanterías personalizados +• Búsqueda de texto completo dentro de un libro + +Notas que perduran +• Resaltados, marcadores y notas estructuradas +• Copia un resaltado junto con un enlace directo al pasaje +• Exporta tus anotaciones + +Escucha y entiende +• Texto a voz con voces descargables sin conexión y compatibilidad con Android Auto +• Traduce una frase, una página o un libro entero +• Consulta Wikipedia y el diccionario sin salir de la página + +Sincronizado en todas partes +• Readest Cloud, o tu propio almacenamiento: Google Drive, OneDrive, WebDAV, S3 +• La sincronización con KOReader mantiene tu progreso al día con tu lector de libros electrónicos +• Android, iOS, macOS, Windows, Linux y la web + +Readest es de código abierto. Preguntas o ideas: support@readest.com +Política de privacidad: https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/es-ES/short_description.txt b/fastlane/metadata/android/es-ES/short_description.txt new file mode 100644 index 000000000..8f8f1f7c8 --- /dev/null +++ b/fastlane/metadata/android/es-ES/short_description.txt @@ -0,0 +1 @@ +Lee EPUB, PDF y más. Sincroniza, anota, traduce y escucha en cualquier lugar. diff --git a/fastlane/metadata/android/fr-FR/full_description.txt b/fastlane/metadata/android/fr-FR/full_description.txt new file mode 100644 index 000000000..981dafa7b --- /dev/null +++ b/fastlane/metadata/android/fr-FR/full_description.txt @@ -0,0 +1,34 @@ +Readest est un lecteur d'ebooks moderne et open source, pour celles et ceux qui lisent beaucoup et veulent que leurs livres, leurs notes et leur progression les suivent partout. + +Ouvrez EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT et Markdown, et réglez votre lecture jusqu'au moindre détail. + +Lisez à votre façon +• Mode paginé ou défilement, avec des animations de page fluides +• Polices, thèmes, espacements, marges et colonnes personnalisés +• Texte vertical pour les livres CJK +• Pensé pour l'e-ink, avec un contraste adapté aux écrans à rafraîchissement lent +• Jusqu'à quatre livres côte à côte pour la recherche et la comparaison + +Toute votre bibliothèque +• Parcourez et téléchargez depuis des catalogues OPDS et des bibliothèques publiques +• Connectez-vous à Calibre et Calibre-Web, couvertures et métadonnées comprises +• Rangez vos livres dans des groupes d'étagères personnalisés +• Recherche plein texte dans un livre + +Des notes qui durent +• Surlignages, signets et notes structurées +• Copiez un surlignage avec un lien direct vers le passage +• Exportez vos annotations + +Écoutez et comprenez +• Synthèse vocale avec des voix hors ligne téléchargeables et prise en charge d'Android Auto +• Traduisez une phrase, une page ou un livre entier +• Consultez Wikipédia et le dictionnaire sans quitter la page + +Synchronisé partout +• Readest Cloud, ou votre propre stockage : Google Drive, OneDrive, WebDAV, S3 +• La synchro KOReader garde votre progression alignée avec votre liseuse +• Android, iOS, macOS, Windows, Linux et le Web + +Readest est open source. Questions ou idées : support@readest.com +Politique de confidentialité : https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/fr-FR/short_description.txt b/fastlane/metadata/android/fr-FR/short_description.txt new file mode 100644 index 000000000..054556bef --- /dev/null +++ b/fastlane/metadata/android/fr-FR/short_description.txt @@ -0,0 +1 @@ +Lisez EPUB, PDF et plus. Synchro, notes, traduction et lecture audio partout. diff --git a/fastlane/metadata/android/ja-JP/full_description.txt b/fastlane/metadata/android/ja-JP/full_description.txt new file mode 100644 index 000000000..0b9f9bf9f --- /dev/null +++ b/fastlane/metadata/android/ja-JP/full_description.txt @@ -0,0 +1,34 @@ +Readest は、たくさん本を読む人のためのモダンなオープンソース電子書籍リーダーです。本もメモも読書の進み具合も、どこへでも一緒に。 + +EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT、Markdown を開いて、読み心地を細部まで調整できます。 + +好きなように読む +• ページめくりまたはスクロール。なめらかなページめくりアニメーション +• フォント、テーマ、間隔、余白、段組みを自由に設定 +• CJK の本の縦書きに対応 +• 電子ペーパー向けに設計。書き換えの遅い画面に合わせたコントラスト +• 最大 4 冊を並べて開き、調べものや読み比べに + +ライブラリまるごと +• OPDS カタログや公共図書館から本を閲覧、ダウンロード +• Calibre や Calibre-Web に接続。表紙とメタデータも一緒に +• 自分で作る本棚グループで整理 +• 本の中の全文検索 + +残るメモ +• ハイライト、ブックマーク、構造化されたメモ +• ハイライトを、その箇所に戻れるディープリンク付きでコピー +• 注釈をエクスポート + +聴いて、理解する +• ダウンロードできるオフライン音声でテキストを読み上げ。Android Auto にも対応 +• 一文、1 ページ、本まるごと 1 冊を翻訳 +• ページを離れずに Wikipedia と辞書を検索 + +どこでも同期 +• Readest Cloud のほか、Google Drive、OneDrive、WebDAV、S3 も利用可能 +• KOReader 同期で電子書籍リーダー端末と読書位置をそろえられます +• Android、iOS、macOS、Windows、Linux、Web + +Readest はオープンソースです。ご質問やご要望:support@readest.com +プライバシーポリシー:https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/ja-JP/short_description.txt b/fastlane/metadata/android/ja-JP/short_description.txt new file mode 100644 index 000000000..3022ce593 --- /dev/null +++ b/fastlane/metadata/android/ja-JP/short_description.txt @@ -0,0 +1 @@ +EPUB や PDF などを読めます。すべてのデバイスで同期、メモ、翻訳、読み上げ。 diff --git a/fastlane/metadata/android/pt-BR/full_description.txt b/fastlane/metadata/android/pt-BR/full_description.txt new file mode 100644 index 000000000..8f6eb915d --- /dev/null +++ b/fastlane/metadata/android/pt-BR/full_description.txt @@ -0,0 +1,34 @@ +Readest é um leitor de ebooks moderno e de código aberto para quem lê muito e quer que seus livros, notas e progresso o acompanhem em todo lugar. + +Abra EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT e Markdown e ajuste a leitura até o último detalhe. + +Leia do seu jeito +• Modo paginado ou rolagem, com animações de página suaves +• Fontes, temas, espaçamento, margens e colunas personalizados +• Texto vertical para livros CJK +• Feito para e-ink, com contraste ajustado para telas de atualização lenta +• Abra até quatro livros lado a lado para pesquisar e comparar + +Toda a sua biblioteca +• Navegue e baixe de catálogos OPDS e bibliotecas públicas +• Conecte ao Calibre e ao Calibre-Web, com capas e metadados +• Organize com grupos de estantes personalizados +• Busca no texto completo do livro + +Notas que ficam +• Destaques, marcadores e notas estruturadas +• Copie um destaque junto com um link direto para o trecho +• Exporte suas anotações + +Ouça e entenda +• Leitura em voz alta com vozes offline para baixar e suporte ao Android Auto +• Traduza uma frase, uma página ou um livro inteiro +• Consulte a Wikipédia e o dicionário sem sair da página + +Sincronizado em todo lugar +• Readest Cloud, ou o seu próprio armazenamento: Google Drive, OneDrive, WebDAV, S3 +• A sincronização com o KOReader mantém seu progresso em dia com seu leitor de ebooks +• Android, iOS, macOS, Windows, Linux e a web + +Readest é de código aberto. Dúvidas ou ideias: support@readest.com +Política de privacidade: https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/pt-BR/short_description.txt b/fastlane/metadata/android/pt-BR/short_description.txt new file mode 100644 index 000000000..3bc60fc3b --- /dev/null +++ b/fastlane/metadata/android/pt-BR/short_description.txt @@ -0,0 +1 @@ +Leia EPUB, PDF e mais. Sincronize, anote, traduza e ouça em qualquer aparelho. diff --git a/fastlane/metadata/android/zh-CN/full_description.txt b/fastlane/metadata/android/zh-CN/full_description.txt new file mode 100644 index 000000000..92ae8e216 --- /dev/null +++ b/fastlane/metadata/android/zh-CN/full_description.txt @@ -0,0 +1,34 @@ +Readest 是一款现代、开源的电子书阅读器,为爱读书的人打造,让你的书、笔记和阅读进度随你到任何地方。 + +打开 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown,并把阅读体验调整到每一个细节。 + +按你的方式阅读 +• 分页或滚动模式,翻页动画流畅 +• 自定义字体、主题、间距、页边距和分栏 +• 支持中日韩图书竖排 +• 为墨水屏打造,对比度针对慢刷新屏幕调校 +• 最多并排打开四本书,方便研究和对照 + +完整的书库 +• 浏览并下载 OPDS 书目和公共图书馆中的图书 +• 连接 Calibre 和 Calibre-Web,封面和元数据一并获取 +• 用自定义书架分组整理图书 +• 书内全文搜索 + +留得住的笔记 +• 划线、书签和结构化笔记 +• 复制划线时附带可跳回原文位置的深层链接 +• 导出你的笔记 + +听与理解 +• 文字转语音,可下载离线语音,支持 Android Auto +• 翻译一句话、一页,或整本书 +• 无需离开页面即可查询维基百科和词典 + +处处同步 +• 使用 Readest Cloud,或自选 Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步让阅读进度与你的电子阅读器保持一致 +• Android、iOS、macOS、Windows、Linux 和网页版 + +Readest 是开源软件。问题或建议:support@readest.com +隐私政策:https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/zh-CN/short_description.txt b/fastlane/metadata/android/zh-CN/short_description.txt new file mode 100644 index 000000000..785c82d90 --- /dev/null +++ b/fastlane/metadata/android/zh-CN/short_description.txt @@ -0,0 +1 @@ +阅读 EPUB、PDF 等格式,在所有设备上同步、标注、翻译和朗读。 diff --git a/fastlane/metadata/android/zh-TW/full_description.txt b/fastlane/metadata/android/zh-TW/full_description.txt new file mode 100644 index 000000000..0b842a89d --- /dev/null +++ b/fastlane/metadata/android/zh-TW/full_description.txt @@ -0,0 +1,34 @@ +Readest 是一款現代、開源的電子書閱讀器,為愛讀書的人打造,讓你的書、筆記和閱讀進度跟著你到任何地方。 + +開啟 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown,並把閱讀體驗調整到每一個細節。 + +用你的方式閱讀 +• 分頁或捲動模式,翻頁動畫流暢 +• 自訂字型、主題、間距、邊界和分欄 +• 支援中日韓書籍直排 +• 為電子紙打造,對比度針對慢速刷新的螢幕調校 +• 最多並排開啟四本書,方便研究和對照 + +完整的書庫 +• 瀏覽並下載 OPDS 書目和公共圖書館中的書籍 +• 連接 Calibre 和 Calibre-Web,封面和中繼資料一併取得 +• 用自訂書架群組整理書籍 +• 書內全文搜尋 + +留得住的筆記 +• 劃線、書籤和結構化筆記 +• 複製劃線時附上可跳回原文位置的深層連結 +• 匯出你的筆記 + +聽與理解 +• 文字轉語音,可下載離線語音,支援 Android Auto +• 翻譯一句話、一頁,或整本書 +• 不必離開頁面即可查詢維基百科和字典 + +處處同步 +• 使用 Readest Cloud,或自選 Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步讓閱讀進度與你的電子閱讀器保持一致 +• Android、iOS、macOS、Windows、Linux 和網頁版 + +Readest 是開源軟體。問題或建議:support@readest.com +隱私權政策:https://readest.com/privacy-policy diff --git a/fastlane/metadata/android/zh-TW/short_description.txt b/fastlane/metadata/android/zh-TW/short_description.txt new file mode 100644 index 000000000..a6934c141 --- /dev/null +++ b/fastlane/metadata/android/zh-TW/short_description.txt @@ -0,0 +1 @@ +閱讀 EPUB、PDF 等格式,在所有裝置上同步、標註、翻譯和朗讀。 diff --git a/fastlane/metadata/de-DE/description.txt b/fastlane/metadata/de-DE/description.txt new file mode 100644 index 000000000..d08dc3031 --- /dev/null +++ b/fastlane/metadata/de-DE/description.txt @@ -0,0 +1,41 @@ +Readest ist ein E-Book-Reader für Menschen, die viel lesen und ihre Bücher, Notizen und Leseposition auf dem Gerät haben möchten, das gerade am nächsten liegt. + +Öffnen Sie EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT und Markdown in einer Bibliothek. Holen Sie sich Bücher aus OPDS-Katalogen oder von Ihrem eigenen Calibre-Server. Lesen, markieren, zuhören, übersetzen. + +Gemacht für iPhone und iPad +• CarPlay: unterwegs weiterhören, mit der Wiedergabesteuerung auf dem Display im Auto +• Vorlesestimmen pro Buch herunterladen und ganz ohne Verbindung zuhören +• Bücher aus Dateien, Mail oder jedem Teilen-Menü hinzufügen und direkt dort lesen, statt sie in eine zweite Bibliothek zu kopieren +• Auf dem iPad bis zu vier Bücher gleichzeitig öffnen und beliebig anordnen + +Lesen +• Seitenweise oder scrollend, mit eigenen Schriften, Themen, Abständen und Rändern +• Vertikaler Text für CJK-Bücher +• Kontrast und Bildaufbau für E-Ink-Displays abgestimmt +• Volltextsuche im Buch + +Ihre Bibliothek +• OPDS-Kataloge und öffentliche Bibliotheken durchsuchen und Bücher herunterladen +• Mit Calibre oder Calibre-Web verbinden, samt Covern und Metadaten +• Mit umbenennbaren Bücherregal-Gruppen ordnen + +Notizen +• Markierungen, Lesezeichen und strukturierte Notizen +• Eine Markierung samt Deep Link zurück zur Textstelle kopieren +• Anmerkungen exportieren + +Zuhören und Sprachen +• Sprachausgabe mit herunterladbaren Offline-Stimmen +• Einen Satz, eine Seite oder ein ganzes Buch übersetzen +• Wikipedia und Wörterbuch nachschlagen, ohne die Seite zu verlassen + +Synchronisierung +• Readest Cloud oder Ihr eigener Speicher: iCloud, Google Drive, OneDrive, WebDAV, S3 +• KOReader-Sync hält Ihren Lesefortschritt mit Ihrem E-Reader auf demselben Stand +• iPhone, iPad, Mac, alle anderen Plattformen und das Web + +Readest ist Open Source. + +Support: support@readest.com +Datenschutzerklärung: https://readest.com/privacy-policy +Nutzungsbedingungen: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/de-DE/keywords.txt b/fastlane/metadata/de-DE/keywords.txt new file mode 100644 index 000000000..692f5711e --- /dev/null +++ b/fastlane/metadata/de-DE/keywords.txt @@ -0,0 +1 @@ +ebook,bücher,lesen,mobi,azw3,bibliothek,notizen,übersetzen,wörterbuch,eink,calibre,opds,koreader diff --git a/fastlane/metadata/de-DE/marketing_url.txt b/fastlane/metadata/de-DE/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/de-DE/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/de-DE/name.txt b/fastlane/metadata/de-DE/name.txt new file mode 100644 index 000000000..3f3864c95 --- /dev/null +++ b/fastlane/metadata/de-DE/name.txt @@ -0,0 +1 @@ +Readest - EPUB & E-Book Reader diff --git a/fastlane/metadata/de-DE/privacy_url.txt b/fastlane/metadata/de-DE/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/de-DE/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/de-DE/subtitle.txt b/fastlane/metadata/de-DE/subtitle.txt new file mode 100644 index 000000000..c0a5f5ae8 --- /dev/null +++ b/fastlane/metadata/de-DE/subtitle.txt @@ -0,0 +1 @@ +PDF-Leser mit Sync & Vorlesen diff --git a/fastlane/metadata/de-DE/support_url.txt b/fastlane/metadata/de-DE/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/de-DE/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-ES/description.txt b/fastlane/metadata/es-ES/description.txt new file mode 100644 index 000000000..b666be243 --- /dev/null +++ b/fastlane/metadata/es-ES/description.txt @@ -0,0 +1,41 @@ +Readest es un lector de ebooks para quienes leen mucho y quieren tener sus libros, notas y posición de lectura en el dispositivo que tengan más cerca. + +Abre EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT y Markdown en una sola biblioteca. Obtén libros de catálogos OPDS o de tu propio servidor de Calibre. Lee, anota, escucha, traduce. + +Hecho para iPhone y iPad +• CarPlay, para seguir escuchando en la carretera con los controles de reproducción en el tablero +• Descarga voces de lectura por libro y escucha sin ninguna conexión +• Abre libros desde Archivos, Mail o cualquier menú de compartir y léelos ahí mismo, sin copiarlos a una segunda biblioteca +• Abre hasta cuatro libros a la vez en el iPad y organízalos como quieras + +Lectura +• Paginado o con desplazamiento, con fuentes, temas, espaciado y márgenes personalizados +• Texto vertical para libros CJK +• Contraste y actualización ajustados para pantallas de tinta electrónica +• Búsqueda de texto completo dentro de un libro + +Tu biblioteca +• Explora, busca y descarga de catálogos OPDS y bibliotecas públicas +• Conéctate a Calibre o Calibre-Web, con portadas y metadatos incluidos +• Organiza con grupos de estanterías que puedes renombrar + +Notas +• Resaltados, marcadores y notas estructuradas +• Copia un resaltado junto con un enlace directo al pasaje +• Exporta tus anotaciones + +Escucha e idiomas +• Texto a voz con voces descargables sin conexión +• Traduce una frase, una página o un libro entero +• Consulta Wikipedia y el diccionario sin salir de la página + +Sincronización +• Readest Cloud, o tu propio almacenamiento: iCloud, Google Drive, OneDrive, WebDAV, S3 +• La sincronización con KOReader mantiene tu progreso al día con tu lector de libros electrónicos +• iPhone, iPad, Mac, todas las demás plataformas y la web + +Readest es de código abierto. + +Soporte: support@readest.com +Política de privacidad: https://readest.com/privacy-policy +Términos del servicio: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/es-ES/keywords.txt b/fastlane/metadata/es-ES/keywords.txt new file mode 100644 index 000000000..8ab0143b3 --- /dev/null +++ b/fastlane/metadata/es-ES/keywords.txt @@ -0,0 +1 @@ +ebook,leer,libro,mobi,azw3,biblioteca,resaltar,traducir,diccionario,voz,eink,calibre,opds,koreader diff --git a/fastlane/metadata/es-ES/marketing_url.txt b/fastlane/metadata/es-ES/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/es-ES/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-ES/name.txt b/fastlane/metadata/es-ES/name.txt new file mode 100644 index 000000000..f5018e632 --- /dev/null +++ b/fastlane/metadata/es-ES/name.txt @@ -0,0 +1 @@ +Readest - Lector EPUB y PDF diff --git a/fastlane/metadata/es-ES/privacy_url.txt b/fastlane/metadata/es-ES/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/es-ES/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-ES/subtitle.txt b/fastlane/metadata/es-ES/subtitle.txt new file mode 100644 index 000000000..a174854c1 --- /dev/null +++ b/fastlane/metadata/es-ES/subtitle.txt @@ -0,0 +1 @@ +Lector de libros electrónicos diff --git a/fastlane/metadata/es-ES/support_url.txt b/fastlane/metadata/es-ES/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/es-ES/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/description.txt b/fastlane/metadata/es-MX/description.txt new file mode 120000 index 000000000..2f77b1f4d --- /dev/null +++ b/fastlane/metadata/es-MX/description.txt @@ -0,0 +1 @@ +../es-ES/description.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/keywords.txt b/fastlane/metadata/es-MX/keywords.txt new file mode 120000 index 000000000..a3a5815f2 --- /dev/null +++ b/fastlane/metadata/es-MX/keywords.txt @@ -0,0 +1 @@ +../es-ES/keywords.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/marketing_url.txt b/fastlane/metadata/es-MX/marketing_url.txt new file mode 120000 index 000000000..5cdb5bf62 --- /dev/null +++ b/fastlane/metadata/es-MX/marketing_url.txt @@ -0,0 +1 @@ +../es-ES/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/name.txt b/fastlane/metadata/es-MX/name.txt new file mode 120000 index 000000000..a36215db3 --- /dev/null +++ b/fastlane/metadata/es-MX/name.txt @@ -0,0 +1 @@ +../es-ES/name.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/privacy_url.txt b/fastlane/metadata/es-MX/privacy_url.txt new file mode 120000 index 000000000..f936c95ac --- /dev/null +++ b/fastlane/metadata/es-MX/privacy_url.txt @@ -0,0 +1 @@ +../es-ES/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/subtitle.txt b/fastlane/metadata/es-MX/subtitle.txt new file mode 120000 index 000000000..c97c0a22b --- /dev/null +++ b/fastlane/metadata/es-MX/subtitle.txt @@ -0,0 +1 @@ +../es-ES/subtitle.txt \ No newline at end of file diff --git a/fastlane/metadata/es-MX/support_url.txt b/fastlane/metadata/es-MX/support_url.txt new file mode 120000 index 000000000..83561c262 --- /dev/null +++ b/fastlane/metadata/es-MX/support_url.txt @@ -0,0 +1 @@ +../es-ES/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/fr-FR/description.txt b/fastlane/metadata/fr-FR/description.txt new file mode 100644 index 000000000..b14baee55 --- /dev/null +++ b/fastlane/metadata/fr-FR/description.txt @@ -0,0 +1,41 @@ +Readest est un lecteur d'ebooks pour celles et ceux qui lisent beaucoup et veulent retrouver leurs livres, leurs notes et leur position de lecture sur l'appareil le plus proche. + +Ouvrez EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT et Markdown dans une seule bibliothèque. Récupérez des livres depuis des catalogues OPDS ou votre propre serveur Calibre. Lisez, annotez, écoutez, traduisez. + +Conçu pour iPhone et iPad +• CarPlay, pour continuer l'écoute sur la route avec les commandes de lecture sur le tableau de bord +• Téléchargez des voix de lecture par livre et écoutez sans aucune connexion +• Ajoutez des livres depuis Fichiers, Mail ou n'importe quelle feuille de partage, et lisez-les sur place au lieu de les copier dans une seconde bibliothèque +• Ouvrez jusqu'à quatre livres à la fois sur iPad et disposez-les comme vous le souhaitez + +Lecture +• Mode paginé ou défilement, avec polices, thèmes, espacements et marges personnalisés +• Texte vertical pour les livres CJK +• Contraste et rafraîchissement adaptés aux écrans e-ink +• Recherche plein texte dans un livre + +Votre bibliothèque +• Parcourez, cherchez et téléchargez depuis des catalogues OPDS et des bibliothèques publiques +• Connectez-vous à Calibre ou Calibre-Web, couvertures et métadonnées comprises +• Rangez vos livres dans des groupes d'étagères renommables + +Notes +• Surlignages, signets et notes structurées +• Copiez un surlignage avec un lien direct vers le passage +• Exportez vos annotations + +Écoute et langues +• Synthèse vocale avec des voix hors ligne téléchargeables +• Traduisez une phrase, une page ou un livre entier +• Consultez Wikipédia et le dictionnaire sans quitter la page + +Synchronisation +• Readest Cloud, ou votre propre stockage : iCloud, Google Drive, OneDrive, WebDAV, S3 +• La synchro KOReader garde votre progression alignée avec votre liseuse +• iPhone, iPad, Mac, toutes les autres plateformes et le Web + +Readest est open source. + +Assistance : support@readest.com +Politique de confidentialité : https://readest.com/privacy-policy +Conditions d'utilisation : https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/fr-FR/keywords.txt b/fastlane/metadata/fr-FR/keywords.txt new file mode 100644 index 000000000..a02d2d800 --- /dev/null +++ b/fastlane/metadata/fr-FR/keywords.txt @@ -0,0 +1 @@ +livre,lire,numérique,mobi,azw3,bibliothèque,traduire,dictionnaire,voix,eink,calibre,opds,koreader diff --git a/fastlane/metadata/fr-FR/marketing_url.txt b/fastlane/metadata/fr-FR/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/fr-FR/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/fr-FR/name.txt b/fastlane/metadata/fr-FR/name.txt new file mode 100644 index 000000000..6d149f950 --- /dev/null +++ b/fastlane/metadata/fr-FR/name.txt @@ -0,0 +1 @@ +Readest - Lecteur EPUB & PDF diff --git a/fastlane/metadata/fr-FR/privacy_url.txt b/fastlane/metadata/fr-FR/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/fr-FR/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/fr-FR/subtitle.txt b/fastlane/metadata/fr-FR/subtitle.txt new file mode 100644 index 000000000..a4f704aed --- /dev/null +++ b/fastlane/metadata/fr-FR/subtitle.txt @@ -0,0 +1 @@ +Liseuse ebook, synchro, audio diff --git a/fastlane/metadata/fr-FR/support_url.txt b/fastlane/metadata/fr-FR/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/fr-FR/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/ja/description.txt b/fastlane/metadata/ja/description.txt new file mode 100644 index 000000000..968c3b22e --- /dev/null +++ b/fastlane/metadata/ja/description.txt @@ -0,0 +1,41 @@ +Readest は、たくさん本を読む人のための電子書籍リーダーです。本もメモも読みかけの位置も、いちばん近くにあるデバイスでそのまま続きから。 + +EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT、Markdown をひとつのライブラリで開けます。OPDS カタログや自分の Calibre サーバーから本を取り込めます。読む、書き込む、聴く、翻訳する。 + +iPhone と iPad のために +• CarPlay に対応。運転中もダッシュボードの再生コントロールで聴き続けられます +• 読み上げ音声を本ごとにダウンロードして、通信がなくても聴けます +• 「ファイル」「メール」や共有シートから本を追加し、別のライブラリにコピーせずにその場で読めます +• iPad では最大 4 冊を同時に開き、好きなように並べられます + +読書 +• ページめくりまたはスクロール。フォント、テーマ、間隔、余白を自由に設定 +• CJK の本の縦書きに対応 +• 電子ペーパー向けに調整したコントラストとリフレッシュ +• 本の中の全文検索 + +ライブラリ +• OPDS カタログや公共図書館から本を閲覧、検索、ダウンロード +• Calibre や Calibre-Web に接続。表紙とメタデータも一緒に +• 名前を変えられる本棚グループで整理 + +メモ +• ハイライト、ブックマーク、構造化されたメモ +• ハイライトを、その箇所に戻れるディープリンク付きでコピー +• 注釈をエクスポート + +読み上げと言語 +• ダウンロードできるオフライン音声でテキストを読み上げ +• 一文、1 ページ、本まるごと 1 冊を翻訳 +• ページを離れずに Wikipedia と辞書を検索 + +同期 +• Readest Cloud のほか、iCloud、Google Drive、OneDrive、WebDAV、S3 も利用可能 +• KOReader 同期で電子書籍リーダー端末と読書位置をそろえられます +• iPhone、iPad、Mac、その他すべてのプラットフォームと Web + +Readest はオープンソースです。 + +サポート:support@readest.com +プライバシーポリシー:https://readest.com/privacy-policy +利用規約:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/ja/keywords.txt b/fastlane/metadata/ja/keywords.txt new file mode 100644 index 000000000..7b39d8914 --- /dev/null +++ b/fastlane/metadata/ja/keywords.txt @@ -0,0 +1 @@ +本,読書,小説,漫画,マンガ,txt,mobi,azw3,fb2,cbz,ビューア,ハイライト,メモ,辞書,縦書き,本棚,オフライン,電子ペーパー,calibre,opds,koreader diff --git a/fastlane/metadata/ja/marketing_url.txt b/fastlane/metadata/ja/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/ja/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/ja/name.txt b/fastlane/metadata/ja/name.txt new file mode 100644 index 000000000..e8c8b2838 --- /dev/null +++ b/fastlane/metadata/ja/name.txt @@ -0,0 +1 @@ +Readest - EPUB・電子書籍リーダー diff --git a/fastlane/metadata/ja/privacy_url.txt b/fastlane/metadata/ja/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/ja/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/ja/subtitle.txt b/fastlane/metadata/ja/subtitle.txt new file mode 100644 index 000000000..f9f6b862d --- /dev/null +++ b/fastlane/metadata/ja/subtitle.txt @@ -0,0 +1 @@ +PDF対応・同期・読み上げ・翻訳 diff --git a/fastlane/metadata/ja/support_url.txt b/fastlane/metadata/ja/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/ja/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/pt-BR/description.txt b/fastlane/metadata/pt-BR/description.txt new file mode 100644 index 000000000..541cf5725 --- /dev/null +++ b/fastlane/metadata/pt-BR/description.txt @@ -0,0 +1,41 @@ +Readest é um leitor de ebooks para quem lê muito e quer ter seus livros, notas e posição de leitura no aparelho que estiver mais perto. + +Abra EPUB, PDF, MOBI, AZW3, FB2, CBZ, TXT e Markdown em uma única biblioteca. Traga livros de catálogos OPDS ou do seu próprio servidor Calibre. Leia, anote, ouça, traduza. + +Feito para iPhone e iPad +• CarPlay, para continuar ouvindo na estrada com os controles de reprodução no painel +• Baixe vozes de leitura por livro e ouça sem nenhuma conexão +• Adicione livros pelo app Arquivos, pelo Mail ou por qualquer menu de compartilhamento e leia ali mesmo, sem copiá-los para uma segunda biblioteca +• Abra até quatro livros ao mesmo tempo no iPad e organize-os como quiser + +Leitura +• Modo paginado ou rolagem, com fontes, temas, espaçamento e margens personalizados +• Texto vertical para livros CJK +• Contraste e atualização ajustados para telas e-ink +• Busca no texto completo do livro + +Sua biblioteca +• Navegue, busque e baixe de catálogos OPDS e bibliotecas públicas +• Conecte ao Calibre ou Calibre-Web, com capas e metadados +• Organize com grupos de estantes que você pode renomear + +Notas +• Destaques, marcadores e notas estruturadas +• Copie um destaque junto com um link direto para o trecho +• Exporte suas anotações + +Ouvir e idiomas +• Leitura em voz alta com vozes offline para baixar +• Traduza uma frase, uma página ou um livro inteiro +• Consulte a Wikipédia e o dicionário sem sair da página + +Sincronização +• Readest Cloud, ou o seu próprio armazenamento: iCloud, Google Drive, OneDrive, WebDAV, S3 +• A sincronização com o KOReader mantém seu progresso em dia com seu leitor de ebooks +• iPhone, iPad, Mac, todas as outras plataformas e a web + +Readest é de código aberto. + +Suporte: support@readest.com +Política de privacidade: https://readest.com/privacy-policy +Termos de serviço: https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/pt-BR/keywords.txt b/fastlane/metadata/pt-BR/keywords.txt new file mode 100644 index 000000000..c6495a209 --- /dev/null +++ b/fastlane/metadata/pt-BR/keywords.txt @@ -0,0 +1 @@ +livros,ler,abrir,mobi,azw3,biblioteca,destacar,traduzir,dicionário,voz,eink,calibre,opds,koreader diff --git a/fastlane/metadata/pt-BR/marketing_url.txt b/fastlane/metadata/pt-BR/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/pt-BR/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/pt-BR/name.txt b/fastlane/metadata/pt-BR/name.txt new file mode 100644 index 000000000..2bccb3cc5 --- /dev/null +++ b/fastlane/metadata/pt-BR/name.txt @@ -0,0 +1 @@ +Readest - Leitor de EPUB e PDF diff --git a/fastlane/metadata/pt-BR/privacy_url.txt b/fastlane/metadata/pt-BR/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/pt-BR/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/pt-BR/subtitle.txt b/fastlane/metadata/pt-BR/subtitle.txt new file mode 100644 index 000000000..f6e0184bc --- /dev/null +++ b/fastlane/metadata/pt-BR/subtitle.txt @@ -0,0 +1 @@ +Leitor de ebook com narração diff --git a/fastlane/metadata/pt-BR/support_url.txt b/fastlane/metadata/pt-BR/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/pt-BR/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hans/description.txt b/fastlane/metadata/zh-Hans/description.txt new file mode 100644 index 000000000..fbfb42b77 --- /dev/null +++ b/fastlane/metadata/zh-Hans/description.txt @@ -0,0 +1,41 @@ +Readest 是一款为爱读书的人打造的电子书阅读器:无论身边是哪台设备,你的书、笔记和阅读进度都在那里。 + +在同一个书库里打开 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown。从 OPDS 书目或你自己的 Calibre 服务器获取图书。阅读、标注、朗读、翻译。 + +为 iPhone 和 iPad 打造 +• 支持 CarPlay,开车时也能用仪表盘上的播放控件继续听书 +• 按书下载朗读语音,完全离线也能听 +• 从“文件”、“邮件”或任意共享菜单添加图书,原地阅读,无需复制到第二个书库 +• 在 iPad 上最多同时打开四本书,随意排列 + +阅读 +• 分页或滚动模式,可自定义字体、主题、间距和页边距 +• 支持中日韩图书竖排 +• 为墨水屏调校的对比度与刷新 +• 书内全文搜索 + +你的书库 +• 浏览、搜索并下载 OPDS 书目和公共图书馆中的图书 +• 连接 Calibre 或 Calibre-Web,封面和元数据一并获取 +• 用可重命名的书架分组整理图书 + +笔记 +• 划线、书签和结构化笔记 +• 复制划线时附带可跳回原文位置的深层链接 +• 导出你的笔记 + +朗读与语言 +• 文字转语音,可下载离线语音 +• 翻译一句话、一页,或整本书 +• 无需离开页面即可查询维基百科和词典 + +同步 +• 使用 Readest Cloud,或自选 iCloud、Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步让阅读进度与你的电子阅读器保持一致 +• iPhone、iPad、Mac、其他所有平台以及网页版 + +Readest 是开源软件。 + +支持:support@readest.com +隐私政策:https://readest.com/privacy-policy +服务条款:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/zh-Hans/keywords.txt b/fastlane/metadata/zh-Hans/keywords.txt new file mode 100644 index 000000000..6f08cf580 --- /dev/null +++ b/fastlane/metadata/zh-Hans/keywords.txt @@ -0,0 +1 @@ +电子书,阅读,小说,txt,mobi,azw3,fb2,cbz,漫画,听书,划线,笔记,书架,书库,词典,墨水屏,竖排,离线,calibre,opds,koreader,webdav,开源 diff --git a/fastlane/metadata/zh-Hans/marketing_url.txt b/fastlane/metadata/zh-Hans/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/zh-Hans/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hans/name.txt b/fastlane/metadata/zh-Hans/name.txt new file mode 100644 index 000000000..cea1ef27c --- /dev/null +++ b/fastlane/metadata/zh-Hans/name.txt @@ -0,0 +1 @@ +Readest - EPUB电子书阅读器 diff --git a/fastlane/metadata/zh-Hans/privacy_url.txt b/fastlane/metadata/zh-Hans/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/zh-Hans/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hans/subtitle.txt b/fastlane/metadata/zh-Hans/subtitle.txt new file mode 100644 index 000000000..3c224d2d4 --- /dev/null +++ b/fastlane/metadata/zh-Hans/subtitle.txt @@ -0,0 +1 @@ +PDF阅读、多端同步、朗读与翻译 diff --git a/fastlane/metadata/zh-Hans/support_url.txt b/fastlane/metadata/zh-Hans/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/zh-Hans/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hant/description.txt b/fastlane/metadata/zh-Hant/description.txt new file mode 100644 index 000000000..9e4ae7e3f --- /dev/null +++ b/fastlane/metadata/zh-Hant/description.txt @@ -0,0 +1,41 @@ +Readest 是一款為愛讀書的人打造的電子書閱讀器:無論手邊是哪台裝置,你的書、筆記和閱讀進度都在那裡。 + +在同一個書庫裡開啟 EPUB、PDF、MOBI、AZW3、FB2、CBZ、TXT 和 Markdown。從 OPDS 書目或你自己的 Calibre 伺服器取得書籍。閱讀、標註、朗讀、翻譯。 + +為 iPhone 和 iPad 打造 +• 支援 CarPlay,開車時也能用儀表板上的播放控制繼續聽書 +• 依書下載朗讀語音,完全離線也能聽 +• 從「檔案」、「郵件」或任何分享選單加入書籍,就地閱讀,不必複製到第二個書庫 +• 在 iPad 上最多同時開啟四本書,自由排列 + +閱讀 +• 分頁或捲動模式,可自訂字型、主題、間距和邊界 +• 支援中日韓書籍直排 +• 針對電子紙螢幕調校的對比度與刷新 +• 書內全文搜尋 + +你的書庫 +• 瀏覽、搜尋並下載 OPDS 書目和公共圖書館中的書籍 +• 連接 Calibre 或 Calibre-Web,封面和中繼資料一併取得 +• 用可重新命名的書架群組整理書籍 + +筆記 +• 劃線、書籤和結構化筆記 +• 複製劃線時附上可跳回原文位置的深層連結 +• 匯出你的筆記 + +朗讀與語言 +• 文字轉語音,可下載離線語音 +• 翻譯一句話、一頁,或整本書 +• 不必離開頁面即可查詢維基百科和字典 + +同步 +• 使用 Readest Cloud,或自選 iCloud、Google Drive、OneDrive、WebDAV、S3 +• KOReader 同步讓閱讀進度與你的電子閱讀器保持一致 +• iPhone、iPad、Mac、其他所有平台以及網頁版 + +Readest 是開源軟體。 + +支援:support@readest.com +隱私權政策:https://readest.com/privacy-policy +服務條款:https://www.apple.com/legal/internet-services/itunes/dev/stdeula/ diff --git a/fastlane/metadata/zh-Hant/keywords.txt b/fastlane/metadata/zh-Hant/keywords.txt new file mode 100644 index 000000000..01af906f4 --- /dev/null +++ b/fastlane/metadata/zh-Hant/keywords.txt @@ -0,0 +1 @@ +電子書,閱讀,小說,txt,mobi,azw3,fb2,cbz,漫畫,聽書,劃線,筆記,書架,書庫,字典,電子紙,直排,離線,calibre,opds,koreader,webdav,開源 diff --git a/fastlane/metadata/zh-Hant/marketing_url.txt b/fastlane/metadata/zh-Hant/marketing_url.txt new file mode 120000 index 000000000..780a51264 --- /dev/null +++ b/fastlane/metadata/zh-Hant/marketing_url.txt @@ -0,0 +1 @@ +../en-US/marketing_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hant/name.txt b/fastlane/metadata/zh-Hant/name.txt new file mode 100644 index 000000000..ff815a38b --- /dev/null +++ b/fastlane/metadata/zh-Hant/name.txt @@ -0,0 +1 @@ +Readest - EPUB電子書閱讀器 diff --git a/fastlane/metadata/zh-Hant/privacy_url.txt b/fastlane/metadata/zh-Hant/privacy_url.txt new file mode 120000 index 000000000..f169812b2 --- /dev/null +++ b/fastlane/metadata/zh-Hant/privacy_url.txt @@ -0,0 +1 @@ +../en-US/privacy_url.txt \ No newline at end of file diff --git a/fastlane/metadata/zh-Hant/subtitle.txt b/fastlane/metadata/zh-Hant/subtitle.txt new file mode 100644 index 000000000..2c359efd2 --- /dev/null +++ b/fastlane/metadata/zh-Hant/subtitle.txt @@ -0,0 +1 @@ +PDF閱讀、多裝置同步、朗讀與翻譯 diff --git a/fastlane/metadata/zh-Hant/support_url.txt b/fastlane/metadata/zh-Hant/support_url.txt new file mode 120000 index 000000000..67b2b114e --- /dev/null +++ b/fastlane/metadata/zh-Hant/support_url.txt @@ -0,0 +1 @@ +../en-US/support_url.txt \ No newline at end of file From 8ded15a20fb8b46a90fb6b79091c905aa20aa483 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 28 Nov 2026 23:24:19 +0800 Subject: [PATCH 2/7] feat(vocabulary): language tabs above the status filters (#8022) (#8071) * feat(vocabulary): language tabs above the status filters (#8022) Words in two or more languages now get a row of language tabs (All, English, Chinese, ...) with each language's word count, between the search bar and the Looked Up / Learning / Mastered chips. Picking a language narrows the list, and the status chips count within it. The tabs replace the Language dropdown chip; its "All Languages" string is no longer used and is removed from the locales. One language shows no tabs, as before. Verified: - VocabularyView.test.tsx "puts language tabs with word counts above the filters only when words span languages" and "drops the language filter when its last word is deleted" fail without the change with `Unable to find an accessible element with the role "group" and name "Language"`, and pass with it. - vitest VocabularyView.test.tsx + filter.test.ts: 73 passed; vocabulary-dialog-layout.browser.test.tsx: 9 passed. - pnpm lint and pnpm format:check pass. - dev-web (Chromium) with 3 English and 3 Chinese words: phone 390px and desktop 1100px in light, dark and e-ink, plus the Chinese UI and Arabic (RTL). E-ink outlines the selected tab and keeps text opaque. - Not run: the full unit suite (CI) and an Android/iOS device. Reported by Zack9476 on GitHub. Co-Authored-By: Claude Opus 5.5 * fix(vocabulary): move between language tabs with the arrow keys DESIGN.md asks for arrow keys on radio-like tab strips. Left and Right now move to the next or previous language tab and pick it, mirrored in right-to-left layouts; the last and first tabs stay put. The handler runs in the capture phase because Dialog stops keydown at its own node. Verified: - vocabulary-dialog-layout.browser.test.tsx "moves through the language tabs with the arrow keys" (LTR and RTL, inside the real Dialog) fails without the handler (focus stays on All) and passes with it; the file passes 11/11. VocabularyView.test.tsx + filter.test.ts: 73 passed. - tsc, biome lint and biome format on the touched files pass. - dev-web: Right/Left step All -> Chinese -> English -> Chinese on desktop; in Arabic (RTL) Left steps forward. The list follows. Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- .../public/locales/ar/translation.json | 1 - .../public/locales/bn/translation.json | 1 - .../public/locales/bo/translation.json | 1 - .../public/locales/de/translation.json | 1 - .../public/locales/el/translation.json | 1 - .../public/locales/es/translation.json | 1 - .../public/locales/fa/translation.json | 1 - .../public/locales/fr/translation.json | 1 - .../public/locales/he/translation.json | 1 - .../public/locales/hi/translation.json | 1 - .../public/locales/hu/translation.json | 1 - .../public/locales/id/translation.json | 1 - .../public/locales/it/translation.json | 1 - .../public/locales/ja/translation.json | 1 - .../public/locales/ka/translation.json | 1 - .../public/locales/ko/translation.json | 1 - .../public/locales/ms/translation.json | 1 - .../public/locales/nl/translation.json | 1 - .../public/locales/pl/translation.json | 1 - .../public/locales/pt-BR/translation.json | 1 - .../public/locales/pt/translation.json | 1 - .../public/locales/ro/translation.json | 1 - .../public/locales/ru/translation.json | 1 - .../public/locales/si/translation.json | 1 - .../public/locales/sl/translation.json | 1 - .../public/locales/sv/translation.json | 1 - .../public/locales/ta/translation.json | 1 - .../public/locales/th/translation.json | 1 - .../public/locales/tr/translation.json | 1 - .../public/locales/uk/translation.json | 1 - .../public/locales/uz/translation.json | 1 - .../public/locales/vi/translation.json | 1 - .../public/locales/zh-CN/translation.json | 1 - .../public/locales/zh-TW/translation.json | 1 - .../vocabulary/VocabularyView.test.tsx | 41 +++++++++----- .../vocabulary-dialog-layout.browser.test.tsx | 43 ++++++++++++++- .../components/vocabulary/VocabularyView.tsx | 53 +++++++++++++++---- 37 files changed, 113 insertions(+), 58 deletions(-) diff --git a/apps/readest-app/public/locales/ar/translation.json b/apps/readest-app/public/locales/ar/translation.json index de8bfccb0..49f6e0d0f 100644 --- a/apps/readest-app/public/locales/ar/translation.json +++ b/apps/readest-app/public/locales/ar/translation.json @@ -3163,7 +3163,6 @@ "Oldest Added": "الأقدم إضافة", "Alphabetical A-Z": "أبجديًا A-Z", "Alphabetical Z-A": "أبجديًا Z-A", - "All Languages": "كل اللغات", "Pin to Notebook": "تثبيت في المفكرة", "Look up a word to see its definitions here.": "ابحث عن كلمة لترى تعريفاتها هنا.", "Add Audio to Anki Cards": "إضافة صوت إلى بطاقات Anki", diff --git a/apps/readest-app/public/locales/bn/translation.json b/apps/readest-app/public/locales/bn/translation.json index d56220c9e..fc1411072 100644 --- a/apps/readest-app/public/locales/bn/translation.json +++ b/apps/readest-app/public/locales/bn/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "সবচেয়ে পুরনো যোগ", "Alphabetical A-Z": "বর্ণানুক্রমে A-Z", "Alphabetical Z-A": "বর্ণানুক্রমে Z-A", - "All Languages": "সব ভাষা", "Pin to Notebook": "নোটবুকে পিন করুন", "Look up a word to see its definitions here.": "এখানে সংজ্ঞা দেখতে একটি শব্দ খুঁজুন।", "Add Audio to Anki Cards": "Anki কার্ডে অডিও যোগ করুন", diff --git a/apps/readest-app/public/locales/bo/translation.json b/apps/readest-app/public/locales/bo/translation.json index f1defe64e..004540fed 100644 --- a/apps/readest-app/public/locales/bo/translation.json +++ b/apps/readest-app/public/locales/bo/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "རྙིང་བ་སྣོན་པ།", "Alphabetical A-Z": "ཀ་ཁའི་གོ་རིམ་ A-Z", "Alphabetical Z-A": "ཀ་ཁའི་གོ་རིམ་ Z-A", - "All Languages": "སྐད་ཡིག་ཡོངས་རྫོགས།", "Pin to Notebook": "ཟིན་དེབ་ཏུ་བཀར་བ།", "Look up a word to see its definitions here.": "ཚིག་ཅིག་འཚོལ་ནས་འདིར་དེའི་འགྲེལ་བཤད་ལྟོས།", "Add Audio to Anki Cards": "Anki ཤོག་བྱང་ལ་སྒྲ་ཁ་སྣོན།", diff --git a/apps/readest-app/public/locales/de/translation.json b/apps/readest-app/public/locales/de/translation.json index 5549c9609..4aa767efe 100644 --- a/apps/readest-app/public/locales/de/translation.json +++ b/apps/readest-app/public/locales/de/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Älteste zuerst", "Alphabetical A-Z": "Alphabetisch A–Z", "Alphabetical Z-A": "Alphabetisch Z–A", - "All Languages": "Alle Sprachen", "Pin to Notebook": "Ans Notizbuch anheften", "Look up a word to see its definitions here.": "Schlage ein Wort nach, um hier seine Definitionen zu sehen.", "Add Audio to Anki Cards": "Audio zu Anki-Karten hinzufügen", diff --git a/apps/readest-app/public/locales/el/translation.json b/apps/readest-app/public/locales/el/translation.json index 3e909d995..e7b34d4fc 100644 --- a/apps/readest-app/public/locales/el/translation.json +++ b/apps/readest-app/public/locales/el/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Παλαιότερες προσθήκες", "Alphabetical A-Z": "Αλφαβητικά Α-Ω", "Alphabetical Z-A": "Αλφαβητικά Ω-Α", - "All Languages": "Όλες οι γλώσσες", "Pin to Notebook": "Καρφίτσωμα στο σημειωματάριο", "Look up a word to see its definitions here.": "Αναζητήστε μια λέξη για να δείτε εδώ τους ορισμούς της.", "Add Audio to Anki Cards": "Προσθήκη ήχου στις κάρτες Anki", diff --git a/apps/readest-app/public/locales/es/translation.json b/apps/readest-app/public/locales/es/translation.json index fa532d6d3..d9122ce70 100644 --- a/apps/readest-app/public/locales/es/translation.json +++ b/apps/readest-app/public/locales/es/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Añadidas primero", "Alphabetical A-Z": "Alfabético A-Z", "Alphabetical Z-A": "Alfabético Z-A", - "All Languages": "Todos los idiomas", "Pin to Notebook": "Anclar al cuaderno", "Look up a word to see its definitions here.": "Busca una palabra para ver aquí sus definiciones.", "Add Audio to Anki Cards": "Añadir audio a las tarjetas de Anki", diff --git a/apps/readest-app/public/locales/fa/translation.json b/apps/readest-app/public/locales/fa/translation.json index c1441e817..c082ed3a7 100644 --- a/apps/readest-app/public/locales/fa/translation.json +++ b/apps/readest-app/public/locales/fa/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "قدیمی‌ترین افزوده‌ها", "Alphabetical A-Z": "الفبایی A تا Z", "Alphabetical Z-A": "الفبایی Z تا A", - "All Languages": "همه زبان‌ها", "Pin to Notebook": "سنجاق به دفترچه یادداشت", "Look up a word to see its definitions here.": "یک واژه را جست‌وجو کنید تا تعریف‌هایش اینجا نمایش داده شود.", "Add Audio to Anki Cards": "افزودن صدا به کارت‌های Anki", diff --git a/apps/readest-app/public/locales/fr/translation.json b/apps/readest-app/public/locales/fr/translation.json index 873238458..0c278a9a7 100644 --- a/apps/readest-app/public/locales/fr/translation.json +++ b/apps/readest-app/public/locales/fr/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Ajouts les plus anciens", "Alphabetical A-Z": "Alphabétique A-Z", "Alphabetical Z-A": "Alphabétique Z-A", - "All Languages": "Toutes les langues", "Pin to Notebook": "Épingler dans le carnet de notes", "Look up a word to see its definitions here.": "Recherchez un mot pour voir ses définitions ici.", "Add Audio to Anki Cards": "Ajouter l'audio aux cartes Anki", diff --git a/apps/readest-app/public/locales/he/translation.json b/apps/readest-app/public/locales/he/translation.json index 3fe554a4a..c92fb28ec 100644 --- a/apps/readest-app/public/locales/he/translation.json +++ b/apps/readest-app/public/locales/he/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "נוספו ראשונים", "Alphabetical A-Z": "אלפביתי A-Z", "Alphabetical Z-A": "אלפביתי Z-A", - "All Languages": "כל השפות", "Pin to Notebook": "הצמדה למחברת", "Look up a word to see its definitions here.": "חפשו מילה כדי לראות כאן את ההגדרות שלה.", "Add Audio to Anki Cards": "הוספת שמע לכרטיסי Anki", diff --git a/apps/readest-app/public/locales/hi/translation.json b/apps/readest-app/public/locales/hi/translation.json index ce29d7f6f..c11165e8e 100644 --- a/apps/readest-app/public/locales/hi/translation.json +++ b/apps/readest-app/public/locales/hi/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "सबसे पुराने जोड़े गए", "Alphabetical A-Z": "वर्णानुक्रम A-Z", "Alphabetical Z-A": "वर्णानुक्रम Z-A", - "All Languages": "सभी भाषाएँ", "Pin to Notebook": "नोटबुक में पिन करें", "Look up a word to see its definitions here.": "किसी शब्द को खोजें, उसकी परिभाषाएँ यहाँ दिखेंगी।", "Add Audio to Anki Cards": "Anki कार्ड में ऑडियो जोड़ें", diff --git a/apps/readest-app/public/locales/hu/translation.json b/apps/readest-app/public/locales/hu/translation.json index cd5faeae4..f61febc24 100644 --- a/apps/readest-app/public/locales/hu/translation.json +++ b/apps/readest-app/public/locales/hu/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Legrégebben hozzáadott", "Alphabetical A-Z": "Betűrendben A–Z", "Alphabetical Z-A": "Betűrendben Z–A", - "All Languages": "Minden nyelv", "Pin to Notebook": "Rögzítés a jegyzetfüzetben", "Look up a word to see its definitions here.": "Keress rá egy szóra, hogy itt lásd a jelentéseit.", "Add Audio to Anki Cards": "Hang hozzáadása az Anki-kártyákhoz", diff --git a/apps/readest-app/public/locales/id/translation.json b/apps/readest-app/public/locales/id/translation.json index 3323520eb..ec9baf2fa 100644 --- a/apps/readest-app/public/locales/id/translation.json +++ b/apps/readest-app/public/locales/id/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "Terlama ditambahkan", "Alphabetical A-Z": "Abjad A-Z", "Alphabetical Z-A": "Abjad Z-A", - "All Languages": "Semua bahasa", "Pin to Notebook": "Sematkan ke buku catatan", "Look up a word to see its definitions here.": "Cari sebuah kata untuk melihat definisinya di sini.", "Add Audio to Anki Cards": "Tambahkan Audio ke Kartu Anki", diff --git a/apps/readest-app/public/locales/it/translation.json b/apps/readest-app/public/locales/it/translation.json index e2638f07f..e399ea15b 100644 --- a/apps/readest-app/public/locales/it/translation.json +++ b/apps/readest-app/public/locales/it/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Aggiunte meno recenti", "Alphabetical A-Z": "Alfabetico A-Z", "Alphabetical Z-A": "Alfabetico Z-A", - "All Languages": "Tutte le lingue", "Pin to Notebook": "Fissa nel quaderno", "Look up a word to see its definitions here.": "Cerca una parola per vederne qui le definizioni.", "Add Audio to Anki Cards": "Aggiungi audio alle schede Anki", diff --git a/apps/readest-app/public/locales/ja/translation.json b/apps/readest-app/public/locales/ja/translation.json index 681d2892c..17576b295 100644 --- a/apps/readest-app/public/locales/ja/translation.json +++ b/apps/readest-app/public/locales/ja/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "追加日が古い順", "Alphabetical A-Z": "アルファベット順 A-Z", "Alphabetical Z-A": "アルファベット順 Z-A", - "All Languages": "すべての言語", "Pin to Notebook": "ノートにピン留め", "Look up a word to see its definitions here.": "単語を調べると、ここに定義が表示されます。", "Add Audio to Anki Cards": "Anki カードに音声を追加", diff --git a/apps/readest-app/public/locales/ka/translation.json b/apps/readest-app/public/locales/ka/translation.json index cb6e32330..084ad1be6 100644 --- a/apps/readest-app/public/locales/ka/translation.json +++ b/apps/readest-app/public/locales/ka/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "პირველად დამატებული", "Alphabetical A-Z": "ანბანით A-Z", "Alphabetical Z-A": "ანბანით Z-A", - "All Languages": "ყველა ენა", "Pin to Notebook": "რვეულში ჩამაგრება", "Look up a word to see its definitions here.": "მოძებნეთ სიტყვა, რომ აქ ნახოთ მისი განმარტებები.", "Add Audio to Anki Cards": "აუდიოს დამატება Anki-ის ბარათებზე", diff --git a/apps/readest-app/public/locales/ko/translation.json b/apps/readest-app/public/locales/ko/translation.json index d82042bed..5810603b3 100644 --- a/apps/readest-app/public/locales/ko/translation.json +++ b/apps/readest-app/public/locales/ko/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "오래된 추가순", "Alphabetical A-Z": "알파벳순 A-Z", "Alphabetical Z-A": "알파벳순 Z-A", - "All Languages": "모든 언어", "Pin to Notebook": "노트북에 고정", "Look up a word to see its definitions here.": "단어를 찾아보면 여기에 뜻이 표시됩니다.", "Add Audio to Anki Cards": "Anki 카드에 오디오 추가", diff --git a/apps/readest-app/public/locales/ms/translation.json b/apps/readest-app/public/locales/ms/translation.json index 5562bbb0a..e491fcb9d 100644 --- a/apps/readest-app/public/locales/ms/translation.json +++ b/apps/readest-app/public/locales/ms/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "Terlama ditambah", "Alphabetical A-Z": "Abjad A-Z", "Alphabetical Z-A": "Abjad Z-A", - "All Languages": "Semua bahasa", "Pin to Notebook": "Pin ke buku nota", "Look up a word to see its definitions here.": "Cari sesuatu perkataan untuk melihat definisinya di sini.", "Add Audio to Anki Cards": "Tambah Audio pada Kad Anki", diff --git a/apps/readest-app/public/locales/nl/translation.json b/apps/readest-app/public/locales/nl/translation.json index 69edab780..ff480875f 100644 --- a/apps/readest-app/public/locales/nl/translation.json +++ b/apps/readest-app/public/locales/nl/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Oudst toegevoegd", "Alphabetical A-Z": "Alfabetisch A-Z", "Alphabetical Z-A": "Alfabetisch Z-A", - "All Languages": "Alle talen", "Pin to Notebook": "Vastmaken aan notitieblok", "Look up a word to see its definitions here.": "Zoek een woord op om hier de definities te zien.", "Add Audio to Anki Cards": "Audio toevoegen aan Anki-kaarten", diff --git a/apps/readest-app/public/locales/pl/translation.json b/apps/readest-app/public/locales/pl/translation.json index a55d44d6d..e9a8847dd 100644 --- a/apps/readest-app/public/locales/pl/translation.json +++ b/apps/readest-app/public/locales/pl/translation.json @@ -3017,7 +3017,6 @@ "Oldest Added": "Najstarsze", "Alphabetical A-Z": "Alfabetycznie A-Z", "Alphabetical Z-A": "Alfabetycznie Z-A", - "All Languages": "Wszystkie języki", "Pin to Notebook": "Przypnij do notatnika", "Look up a word to see its definitions here.": "Wyszukaj słowo, aby zobaczyć tutaj jego definicje.", "Add Audio to Anki Cards": "Dodaj dźwięk do kart Anki", diff --git a/apps/readest-app/public/locales/pt-BR/translation.json b/apps/readest-app/public/locales/pt-BR/translation.json index f47ccc52e..c4652be8a 100644 --- a/apps/readest-app/public/locales/pt-BR/translation.json +++ b/apps/readest-app/public/locales/pt-BR/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Adicionadas há mais tempo", "Alphabetical A-Z": "Alfabética A-Z", "Alphabetical Z-A": "Alfabética Z-A", - "All Languages": "Todos os idiomas", "Pin to Notebook": "Fixar no caderno", "Look up a word to see its definitions here.": "Pesquise uma palavra para ver as definições dela aqui.", "Add Audio to Anki Cards": "Adicionar áudio aos cartões do Anki", diff --git a/apps/readest-app/public/locales/pt/translation.json b/apps/readest-app/public/locales/pt/translation.json index e8415a8aa..a5890c171 100644 --- a/apps/readest-app/public/locales/pt/translation.json +++ b/apps/readest-app/public/locales/pt/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Adicionadas há mais tempo", "Alphabetical A-Z": "Alfabética A-Z", "Alphabetical Z-A": "Alfabética Z-A", - "All Languages": "Todos os idiomas", "Pin to Notebook": "Fixar no caderno", "Look up a word to see its definitions here.": "Procure uma palavra para ver aqui as suas definições.", "Add Audio to Anki Cards": "Adicionar áudio aos cartões do Anki", diff --git a/apps/readest-app/public/locales/ro/translation.json b/apps/readest-app/public/locales/ro/translation.json index 4fe36f532..500bf6564 100644 --- a/apps/readest-app/public/locales/ro/translation.json +++ b/apps/readest-app/public/locales/ro/translation.json @@ -2944,7 +2944,6 @@ "Oldest Added": "Cele mai vechi adăugate", "Alphabetical A-Z": "Alfabetic A-Z", "Alphabetical Z-A": "Alfabetic Z-A", - "All Languages": "Toate limbile", "Pin to Notebook": "Fixează în carnețel", "Look up a word to see its definitions here.": "Caută un cuvânt pentru a-i vedea aici definițiile.", "Add Audio to Anki Cards": "Adaugă audio la cardurile Anki", diff --git a/apps/readest-app/public/locales/ru/translation.json b/apps/readest-app/public/locales/ru/translation.json index 7724189c5..87185c555 100644 --- a/apps/readest-app/public/locales/ru/translation.json +++ b/apps/readest-app/public/locales/ru/translation.json @@ -3017,7 +3017,6 @@ "Oldest Added": "Давно добавленные", "Alphabetical A-Z": "По алфавиту А-Я", "Alphabetical Z-A": "По алфавиту Я-А", - "All Languages": "Все языки", "Pin to Notebook": "Закрепить в блокноте", "Look up a word to see its definitions here.": "Найдите слово, чтобы увидеть здесь его определения.", "Add Audio to Anki Cards": "Добавить аудио в карточки Anki", diff --git a/apps/readest-app/public/locales/si/translation.json b/apps/readest-app/public/locales/si/translation.json index 0b0cbc530..6afc4442a 100644 --- a/apps/readest-app/public/locales/si/translation.json +++ b/apps/readest-app/public/locales/si/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "පැරණිම එක් කළ", "Alphabetical A-Z": "අකාරාදී A-Z", "Alphabetical Z-A": "අකාරාදී Z-A", - "All Languages": "සියලු භාෂා", "Pin to Notebook": "සටහන් පොතට අමුණන්න", "Look up a word to see its definitions here.": "මෙහි අර්ථ දැක්වීම් බැලීමට වචනයක් සොයන්න.", "Add Audio to Anki Cards": "Anki කාඩ්පත්වලට ශ්‍රව්‍ය එක් කරන්න", diff --git a/apps/readest-app/public/locales/sl/translation.json b/apps/readest-app/public/locales/sl/translation.json index ef4f28673..d19b3b1f7 100644 --- a/apps/readest-app/public/locales/sl/translation.json +++ b/apps/readest-app/public/locales/sl/translation.json @@ -3017,7 +3017,6 @@ "Oldest Added": "Najstarejše dodane", "Alphabetical A-Z": "Abecedno A–Ž", "Alphabetical Z-A": "Abecedno Ž–A", - "All Languages": "Vsi jeziki", "Pin to Notebook": "Pripni v beležnico", "Look up a word to see its definitions here.": "Poiščite besedo, da tukaj vidite njene definicije.", "Add Audio to Anki Cards": "Dodaj zvok karticam Anki", diff --git a/apps/readest-app/public/locales/sv/translation.json b/apps/readest-app/public/locales/sv/translation.json index b17d4a2d3..283e3adb2 100644 --- a/apps/readest-app/public/locales/sv/translation.json +++ b/apps/readest-app/public/locales/sv/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Först tillagda", "Alphabetical A-Z": "Alfabetisk A–Ö", "Alphabetical Z-A": "Alfabetisk Ö–A", - "All Languages": "Alla språk", "Pin to Notebook": "Fäst i anteckningsboken", "Look up a word to see its definitions here.": "Slå upp ett ord för att se dess definitioner här.", "Add Audio to Anki Cards": "Lägg till ljud på Anki-kort", diff --git a/apps/readest-app/public/locales/ta/translation.json b/apps/readest-app/public/locales/ta/translation.json index c0971649c..742243b8d 100644 --- a/apps/readest-app/public/locales/ta/translation.json +++ b/apps/readest-app/public/locales/ta/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "முதலில் சேர்த்தவை", "Alphabetical A-Z": "அகர வரிசை A-Z", "Alphabetical Z-A": "அகர வரிசை Z-A", - "All Languages": "அனைத்து மொழிகள்", "Pin to Notebook": "குறிப்பேட்டில் பொருத்து", "Look up a word to see its definitions here.": "ஒரு சொல்லின் வரையறைகளை இங்கே காண அதைத் தேடுங்கள்.", "Add Audio to Anki Cards": "Anki அட்டைகளில் ஒலியைச் சேர்", diff --git a/apps/readest-app/public/locales/th/translation.json b/apps/readest-app/public/locales/th/translation.json index b24f2e7fd..d9d52823d 100644 --- a/apps/readest-app/public/locales/th/translation.json +++ b/apps/readest-app/public/locales/th/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "เพิ่มเก่าสุด", "Alphabetical A-Z": "ตามตัวอักษร A-Z", "Alphabetical Z-A": "ตามตัวอักษร Z-A", - "All Languages": "ทุกภาษา", "Pin to Notebook": "ตรึงไว้ที่สมุดบันทึก", "Look up a word to see its definitions here.": "ค้นหาคำเพื่อดูความหมายของคำนั้นที่นี่", "Add Audio to Anki Cards": "เพิ่มเสียงในการ์ด Anki", diff --git a/apps/readest-app/public/locales/tr/translation.json b/apps/readest-app/public/locales/tr/translation.json index 13cf24431..86b3f1e19 100644 --- a/apps/readest-app/public/locales/tr/translation.json +++ b/apps/readest-app/public/locales/tr/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "En eski eklenen", "Alphabetical A-Z": "Alfabetik A-Z", "Alphabetical Z-A": "Alfabetik Z-A", - "All Languages": "Tüm diller", "Pin to Notebook": "Not defterine sabitle", "Look up a word to see its definitions here.": "Tanımlarını burada görmek için bir kelime arayın.", "Add Audio to Anki Cards": "Anki kartlarına ses ekle", diff --git a/apps/readest-app/public/locales/uk/translation.json b/apps/readest-app/public/locales/uk/translation.json index 047fd9d07..10b0e0734 100644 --- a/apps/readest-app/public/locales/uk/translation.json +++ b/apps/readest-app/public/locales/uk/translation.json @@ -3017,7 +3017,6 @@ "Oldest Added": "Найдавніше додані", "Alphabetical A-Z": "За алфавітом А-Я", "Alphabetical Z-A": "За алфавітом Я-А", - "All Languages": "Усі мови", "Pin to Notebook": "Закріпити в нотатнику", "Look up a word to see its definitions here.": "Знайдіть слово, щоб побачити тут його визначення.", "Add Audio to Anki Cards": "Додати аудіо до карток Anki", diff --git a/apps/readest-app/public/locales/uz/translation.json b/apps/readest-app/public/locales/uz/translation.json index 94b9ccc85..617aee6af 100644 --- a/apps/readest-app/public/locales/uz/translation.json +++ b/apps/readest-app/public/locales/uz/translation.json @@ -2871,7 +2871,6 @@ "Oldest Added": "Eng eski qo‘shilgan", "Alphabetical A-Z": "Alifbo bo‘yicha A-Z", "Alphabetical Z-A": "Alifbo bo‘yicha Z-A", - "All Languages": "Barcha tillar", "Pin to Notebook": "Daftarga mahkamlash", "Look up a word to see its definitions here.": "Taʼriflarini shu yerda koʻrish uchun soʻzni qidiring.", "Add Audio to Anki Cards": "Anki kartalariga audio qo'shish", diff --git a/apps/readest-app/public/locales/vi/translation.json b/apps/readest-app/public/locales/vi/translation.json index 7f57b3ac6..7bef4d14d 100644 --- a/apps/readest-app/public/locales/vi/translation.json +++ b/apps/readest-app/public/locales/vi/translation.json @@ -2798,7 +2798,6 @@ "Oldest Added": "Thêm cũ nhất", "Alphabetical A-Z": "Theo bảng chữ cái A-Z", "Alphabetical Z-A": "Theo bảng chữ cái Z-A", - "All Languages": "Tất cả ngôn ngữ", "Pin to Notebook": "Ghim vào sổ ghi chép", "Look up a word to see its definitions here.": "Tra một từ để xem định nghĩa của nó tại đây.", "Add Audio to Anki Cards": "Thêm âm thanh vào thẻ Anki", diff --git a/apps/readest-app/public/locales/zh-CN/translation.json b/apps/readest-app/public/locales/zh-CN/translation.json index cf983a953..7a8607b2a 100644 --- a/apps/readest-app/public/locales/zh-CN/translation.json +++ b/apps/readest-app/public/locales/zh-CN/translation.json @@ -2802,7 +2802,6 @@ "Oldest Added": "最早添加", "Alphabetical A-Z": "字母顺序 A-Z", "Alphabetical Z-A": "字母顺序 Z-A", - "All Languages": "所有语言", "Pin to Notebook": "固定到笔记本", "Look up a word to see its definitions here.": "查询单词后,释义会显示在这里。", "Add Audio to Anki Cards": "为 Anki 卡片添加音频", diff --git a/apps/readest-app/public/locales/zh-TW/translation.json b/apps/readest-app/public/locales/zh-TW/translation.json index 88aedd43f..5a66ff168 100644 --- a/apps/readest-app/public/locales/zh-TW/translation.json +++ b/apps/readest-app/public/locales/zh-TW/translation.json @@ -2802,7 +2802,6 @@ "Oldest Added": "最早加入", "Alphabetical A-Z": "字母順序 A-Z", "Alphabetical Z-A": "字母順序 Z-A", - "All Languages": "所有語言", "Pin to Notebook": "固定到筆記本", "Look up a word to see its definitions here.": "查詢單字後,釋義會顯示在這裡。", "Add Audio to Anki Cards": "為 Anki 卡片加入音訊", diff --git a/apps/readest-app/src/__tests__/components/vocabulary/VocabularyView.test.tsx b/apps/readest-app/src/__tests__/components/vocabulary/VocabularyView.test.tsx index a0eeeaf80..8418435ca 100644 --- a/apps/readest-app/src/__tests__/components/vocabulary/VocabularyView.test.tsx +++ b/apps/readest-app/src/__tests__/components/vocabulary/VocabularyView.test.tsx @@ -259,37 +259,52 @@ describe('VocabularyView', () => { expect(scrollIntoView.mock.contexts[0]).toBe(select.parentElement); }); - it('offers a language filter only when words span languages', () => { + const languageTab = (name: RegExp) => + within(screen.getByRole('group', { name: 'Language' })).getByRole('button', { name }); + + it('puts language tabs with word counts above the filters only when words span languages', () => { render(); - expect(screen.queryByRole('combobox', { name: 'Language' })).toBeNull(); + expect(screen.queryByRole('group', { name: 'Language' })).toBeNull(); cleanup(); seed([ entry('sandworm', {}), - entry('haus', { id: 'de:haus', lang: 'de' }), + entry('haus', { id: 'de:haus', lang: 'de', state: 'learning' }), entry('baum', { id: 'de:baum', lang: 'de' }), ]); render(); - fireEvent.change(screen.getByRole('combobox', { name: 'Language' }), { - target: { value: 'de' }, - }); + const tabs = screen.getByRole('group', { name: 'Language' }); + expect( + within(tabs) + .getAllByRole('button') + .map((b) => b.textContent), + ).toEqual(['All3', 'English1', 'German2']); + const filters = screen.getByRole('group', { name: 'Filter' }); + expect(tabs.compareDocumentPosition(filters) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy(); + expect(within(filters).queryByRole('combobox', { name: 'Language' })).toBeNull(); + + fireEvent.click(languageTab(/^German/)); + expect(languageTab(/^German/).getAttribute('aria-pressed')).toBe('true'); expect(listWords()).toEqual(['haus', 'baum']); + // The status chips count within the language; the tabs keep their totals. + expect(screen.getByRole('button', { name: /^Learning/ }).textContent).toBe('Learning1'); + fireEvent.click(screen.getByRole('button', { name: /^Learning/ })); + expect(listWords()).toEqual(['haus']); + expect(languageTab(/^English/).textContent).toBe('English1'); + fireEvent.click(languageTab(/^All/)); + expect(listWords()).toEqual(['haus']); }); it('drops the language filter when its last word is deleted', () => { seed([entry('sandworm', {}), entry('haus', { id: 'de:haus', lang: 'de' })]); render(); - fireEvent.change(screen.getByRole('combobox', { name: 'Language' }), { - target: { value: 'de' }, - }); + fireEvent.click(languageTab(/^German/)); expect(listWords()).toEqual(['haus']); act(() => useVocabularyStore.getState().remove('de:haus')); - expect(screen.queryByRole('combobox', { name: 'Language' })).toBeNull(); + expect(screen.queryByRole('group', { name: 'Language' })).toBeNull(); expect(listWords()).toEqual(['sandworm']); // A German word coming back (a Sync pull) doesn't turn the filter back on. act(() => useVocabularyStore.getState().importWords([{ word: 'baum', lang: 'de' }])); - expect((screen.getByRole('combobox', { name: 'Language' }) as HTMLSelectElement).value).toBe( - '', - ); + expect(languageTab(/^All/).getAttribute('aria-pressed')).toBe('true'); expect(listWords()).toEqual(expect.arrayContaining(['sandworm', 'baum'])); }); diff --git a/apps/readest-app/src/__tests__/components/vocabulary/vocabulary-dialog-layout.browser.test.tsx b/apps/readest-app/src/__tests__/components/vocabulary/vocabulary-dialog-layout.browser.test.tsx index ca2953a5d..1dd2d9b8b 100644 --- a/apps/readest-app/src/__tests__/components/vocabulary/vocabulary-dialog-layout.browser.test.tsx +++ b/apps/readest-app/src/__tests__/components/vocabulary/vocabulary-dialog-layout.browser.test.tsx @@ -1,5 +1,5 @@ import { afterEach, describe, expect, it, vi } from 'vitest'; -import { act, cleanup, fireEvent, render, screen } from '@testing-library/react'; +import { act, cleanup, fireEvent, render, screen, within } from '@testing-library/react'; import { page, userEvent } from 'vitest/browser'; import VocabularyDialog, { setVocabularyDialogVisible, @@ -19,6 +19,7 @@ await import('@/styles/globals.css'); afterEach(() => { cleanup(); document.documentElement.removeAttribute('data-eink'); + document.documentElement.removeAttribute('dir'); }); const openWindow = async (width: number, bookTitle?: string) => { @@ -80,6 +81,46 @@ describe('vocabulary window layout', () => { expect(list.getBoundingClientRect().width).toBeCloseTo(width, 0); }); + for (const rtl of [false, true]) { + it(`moves through the language tabs with the arrow keys, RTL ${rtl}`, async () => { + if (rtl) document.documentElement.dir = 'rtl'; + await page.viewport(390, 800); + const word = (lang: string, key: string) => ({ + id: `${lang}:${key}`, + lang, + key, + word: key, + state: 'none' as const, + occurrences: [], + createdAt: 1, + modifiedAt: 1, + deletedAt: null, + }); + useVocabularyStore.setState({ + entries: { 'en:spice': word('en', 'spice'), 'de:haus': word('de', 'haus') }, + loaded: true, + }); + render(); + act(() => setVocabularyDialogVisible(true)); + const group = await screen.findByRole('group', { name: 'Language' }); + const tabs = within(group).getAllByRole('button'); + expect(tabs.map((t) => t.textContent)).toEqual(['All2', 'English1', 'German1']); + const [next, back] = rtl ? ['{ArrowLeft}', '{ArrowRight}'] : ['{ArrowRight}', '{ArrowLeft}']; + tabs[0]!.focus(); + await userEvent.keyboard(next); + expect(document.activeElement).toBe(tabs[1]); + expect(tabs[1]!.getAttribute('aria-pressed')).toBe('true'); + await userEvent.keyboard(next); + await userEvent.keyboard(next); + // The last tab stays put. + expect(document.activeElement).toBe(tabs[2]); + expect(tabs[2]!.getAttribute('aria-pressed')).toBe('true'); + await userEvent.keyboard(back); + expect(document.activeElement).toBe(tabs[1]); + expect(tabs[1]!.getAttribute('aria-pressed')).toBe('true'); + }); + } + for (const eink of [false, true]) { it(`shows keyboard focus on the search field and book chip, e-ink ${eink}`, async () => { document.documentElement.dataset['eink'] = String(eink); diff --git a/apps/readest-app/src/components/vocabulary/VocabularyView.tsx b/apps/readest-app/src/components/vocabulary/VocabularyView.tsx index af4ac5acd..5a957177a 100644 --- a/apps/readest-app/src/components/vocabulary/VocabularyView.tsx +++ b/apps/readest-app/src/components/vocabulary/VocabularyView.tsx @@ -12,7 +12,6 @@ import { PiDownloadSimple, PiExport, PiFileCsv, - PiGlobe, PiSpeakerHigh, } from 'react-icons/pi'; import type { IconType } from 'react-icons'; @@ -133,6 +132,7 @@ const VocabularyView: React.FC = ({ onOpenBook }) => { .map((code) => ({ value: code, label: code === 'und' ? _('Unknown') : languageLabel(code), + count: all.filter((e) => !e.deletedAt && e.lang === code).length, })) .sort((a, b) => a.label.localeCompare(b.label)), [all, _], @@ -371,6 +371,48 @@ const VocabularyView: React.FC = ({ onOpenBook }) => { + {/* Language comes first (#8022): each language's words are a list of their own. */} + {languages.length > 1 && ( +
{ + const rtl = getComputedStyle(e.currentTarget).direction === 'rtl'; + const step = { ArrowLeft: rtl ? 1 : -1, ArrowRight: rtl ? -1 : 1 }[e.key]; + const tabs = [...e.currentTarget.querySelectorAll('button')]; + const tab = step && tabs[tabs.indexOf(e.target as HTMLButtonElement) + step]; + if (!tab) return; + e.preventDefault(); + tab.focus(); + tab.click(); + }} + className='no-scrollbar -mx-4 flex scroll-px-4 items-center gap-1 overflow-x-auto px-4 pb-2 sm:-mx-6 sm:scroll-px-6 sm:px-6' + > + {[ + { value: '', label: _('All'), count: languages.reduce((n, l) => n + l.count, 0) }, + ...languages, + ].map((l) => ( + + ))} +
+ )} +
= ({ onOpenBook }) => { ...books.map((b) => ({ value: b.hash, label: b.title })), ]} /> - {languages.length > 1 && ( - - )} {profiles.length > 0 && ( Date: Sat, 28 Nov 2026 23:37:07 +0800 Subject: [PATCH 3/7] feat(reader): select the Chinese word on a long-press on Android (#8018) (#8072) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Android's WebView ships ICU without its Chinese dictionary, so both Intl.Segmenter and the native long-press split Chinese into single characters: a long-press on 思 in 独立思考 selects 思, where iOS and desktop select 思考. In a Chinese book, where the platform splits Chinese by character, a word selection now widens through jieba (already bundled for Word Lens and RSVP): - A long-press publishes the word right away, so the toolbar and instant actions use it. The page selection takes the word only at the native release. Set from script while the finger is down, it stops the press from dragging the selection on. The WebView drops its handles for a selection set from script, so the app's own handles take over and still adjust by character. - A double-tap and an Instant Highlight hold select the word too. - jieba keeps compounds whole (独立思考, 北京大学), so a longer word is split into the dictionary words that search mode finds in it, matching what iOS selects (思考, 大学). Names jieba's HMM finds stay whole (韩立). - iOS, desktop and books in other languages are unchanged, and there jieba is never loaded for this. jieba's first lookup builds its dictionary and blocks for about 0.5 s on the emulator. During a double-tap that made the 250 ms single-click timer read the double-tap as a tap, and the tap deselected the new word. The timer now checks that no click came since its own, not how long ago the last one was. Tests that fail without the change (main's code put back under them): - useTextSelector-chineseWord: "a long-press publishes the word...", "the release selects the word, on the app handles" and "a double-tap on one character selects its word" fail with expected '思' to be '思考'. - useInstantAnnotation: "a hold on Chinese in a Chinese book on Android commits the word" fails with expected '思' to be '思考'. - iframeEventHandlers: "a double-click whose handling holds the thread posts no single click" fails with iframe-single-click posted. - jieba-word and sel-chinese-word fail with "is not a function" on main, since findZhWord and widenToChineseWord are new. Checks on this commit rebased onto origin/main: pnpm lint, biome format, and 76 related suites (selection, annotator, instant annotation, click handling, jieba users), all passing. Real use on Android emulators, Android 17 (WebView 145) and Android 15 (WebView 124), with a book in Chinese and the same text labelled English: - long-press on 思 selects 思考 with the app handles and toolbar (both); - long-press then drag extends natively, 思 → 思考 → 思考是 (both); - dragging the end handle one character gives 思考是 (both); - Instant Dictionary on 学 looks up 大学; Instant Highlight on 人 commits 人民; a double-tap on 思 just after launch keeps 思考 (Android 17); - single taps with double-tap on still dismiss the selection and toggle the bars (Android 17); - in the English-labelled book a long-press still selects 思 alone, and jieba is never fetched (Android 17). Not run: a physical phone, and e-ink or dark mode (no new UI; the handles are the existing range editor). The full unit suite runs in CI. Known limit, not changed here: a double-tap or Instant Highlight hold on the left half of a Chinese character picks the character before it (立 for 思) on every platform, because a caret on a boundary belongs to the character before it. With this change that character is widened to its word (独立). Reported by Zack9476 on GitHub. Co-authored-by: Claude Opus 5.5 --- .../reader/hooks/useInstantAnnotation.test.ts | 39 ++- .../hooks/useTextSelector-chineseWord.test.ts | 240 ++++++++++++++++++ .../reader/utils/iframeEventHandlers.test.ts | 19 ++ .../src/__tests__/utils/jieba-word.test.ts | 36 +++ .../__tests__/utils/sel-chinese-word.test.ts | 96 +++++++ .../app/reader/hooks/useInstantAnnotation.ts | 5 +- .../src/app/reader/hooks/useTextSelector.ts | 51 +++- .../app/reader/utils/iframeEventHandlers.ts | 6 +- apps/readest-app/src/utils/jieba.ts | 41 ++- apps/readest-app/src/utils/sel.ts | 42 ++- 10 files changed, 557 insertions(+), 18 deletions(-) create mode 100644 apps/readest-app/src/__tests__/app/reader/hooks/useTextSelector-chineseWord.test.ts create mode 100644 apps/readest-app/src/__tests__/utils/jieba-word.test.ts create mode 100644 apps/readest-app/src/__tests__/utils/sel-chinese-word.test.ts diff --git a/apps/readest-app/src/__tests__/app/reader/hooks/useInstantAnnotation.test.ts b/apps/readest-app/src/__tests__/app/reader/hooks/useInstantAnnotation.test.ts index 385432188..ed8f44f37 100644 --- a/apps/readest-app/src/__tests__/app/reader/hooks/useInstantAnnotation.test.ts +++ b/apps/readest-app/src/__tests__/app/reader/hooks/useInstantAnnotation.test.ts @@ -31,12 +31,16 @@ const stores = vi.hoisted(() => ({ updateBooknotes: vi.fn(() => ({})), booknotes: [] as BookNote[], isFixedLayout: true, + lang: undefined as string | undefined, })); vi.mock('@/store/bookDataStore', () => ({ ...bookDataStoreHooks(() => ({ getConfig: () => ({ booknotes: stores.booknotes }), - getBookData: () => ({ isFixedLayout: stores.isFixedLayout }), + getBookData: () => ({ + isFixedLayout: stores.isFixedLayout, + book: { primaryLanguage: stores.lang }, + }), saveConfig: stores.saveConfig, updateBooknotes: stores.updateBooknotes, })), @@ -52,6 +56,10 @@ vi.mock('@/store/readerStore', () => ({ getProgress: () => ({ page: 1 }), }), })); +vi.mock('@/utils/jieba', async (importOriginal) => ({ + ...(await importOriginal()), + isJiebaReady: () => true, +})); vi.mock('@/app/reader/utils/annotatorUtil', async (importOriginal) => ({ ...(await importOriginal()), toParentViewportPoint: (_doc: Document, x: number, y: number) => ({ x, y }), @@ -96,6 +104,7 @@ beforeEach(() => { settingsStore.state.settings = settingsStore.initial(); stores.booknotes = []; stores.isFixedLayout = true; + stores.lang = undefined; scrolled = false; p1 = document.createElement('p'); p1.textContent = 'first page text here'; @@ -120,6 +129,7 @@ beforeEach(() => { }); afterEach(() => { + vi.unstubAllGlobals(); document.body.replaceChildren(); cleanup(); }); @@ -226,6 +236,33 @@ describe('useInstantAnnotation hold-a-word engage and commit', () => { expect(setSelection).toHaveBeenLastCalledWith(null); }); + // #8018: Android's Intl.Segmenter has no Chinese dictionary and splits + // Chinese into characters; in a Chinese book the held word is the jieba word. + test('a hold on Chinese in a Chinese book on Android commits the word', async () => { + stores.lang = 'zh'; + vi.stubGlobal('Intl', { + ...Intl, + Segmenter: class { + segment(text: string) { + return [...text].map((segment, index) => ({ segment, index, isWordLike: true })); + } + }, + }); + p1.textContent = '独立思考是一种重要的能力。'; + const zh = p1.firstChild as Text; + (document as unknown as { caretPositionFromPoint: unknown }).caretPositionFromPoint = () => ({ + offsetNode: zh, + offset: 3, // after 思 + }); + const { result, captured } = setup(); + + result.current.handleInstantAnnotationPointerDown(document, 0, pointer(10, 10)); + result.current.handleInstantAnnotationEngage(document, 0); + await result.current.handleInstantAnnotationPointerUp(document, 0, pointer(12, 11)); + + expect(captured.selection?.text).toBe('思考'); + }); + test('engage without a resolvable word leaves the release a tap', async () => { const { result } = setup(); diff --git a/apps/readest-app/src/__tests__/app/reader/hooks/useTextSelector-chineseWord.test.ts b/apps/readest-app/src/__tests__/app/reader/hooks/useTextSelector-chineseWord.test.ts new file mode 100644 index 000000000..e45f548f9 --- /dev/null +++ b/apps/readest-app/src/__tests__/app/reader/hooks/useTextSelector-chineseWord.test.ts @@ -0,0 +1,240 @@ +import { bookDataStoreHooks } from '@/__tests__/helpers/book-data-store-mock'; +import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'; +import { cleanup, renderHook } from '@testing-library/react'; + +// #8018: Android's WebView has no Chinese word dictionary, so a long-press on +// 思 in 独立思考 selects 思 alone, where iOS selects 思考. The selector widens +// the long-press (and a double-tap) to the word. The press's own selection +// takes the word at the release, and since the WebView drops its handles for a +// selection set from script, the app's own handles take over. + +const h = vi.hoisted(() => ({ + view: { + next: vi.fn(), + prev: vi.fn(), + deselect: vi.fn(), + getCFI: vi.fn(() => 'cfi'), + renderer: { containerPosition: 0, scrollLocked: false, getContents: () => [] }, + }, + appService: { isAndroidApp: true, isMobile: true }, + osPlatform: 'android', + lang: 'zh', +})); + +vi.mock('@/context/EnvContext', () => ({ + useEnv: () => ({ appService: h.appService }), +})); +vi.mock('@/store/readerStore', () => ({ + useReaderStore: () => ({ + getView: () => h.view, + getViewSettings: () => ({ scrolled: false }), + getProgress: () => null, + }), +})); +vi.mock('@/store/bookDataStore', () => ({ + ...bookDataStoreHooks(() => ({ + getBookData: () => ({ book: { format: 'EPUB', primaryLanguage: h.lang } }), + })), +})); +vi.mock('@/utils/event', () => ({ + eventDispatcher: { onSync: vi.fn(), offSync: vi.fn(), on: vi.fn(), off: vi.fn() }, +})); +vi.mock('@/utils/bridge', () => ({ + setSelectionSuppressed: vi.fn(async () => {}), +})); +vi.mock('@/utils/jieba', async (importActual) => ({ + ...(await importActual()), + initJieba: vi.fn(async () => {}), + isJiebaReady: () => true, +})); +vi.mock('@/app/reader/hooks/useInstantAnnotation', () => ({ + useInstantAnnotation: () => ({ + isInstantAnnotationEnabled: () => false, + handleInstantAnnotationPointerDown: vi.fn(), + handleInstantAnnotationPointerMove: vi.fn(), + handleInstantAnnotationPointerCancel: vi.fn(), + handleInstantAnnotationPointerUp: vi.fn(), + reapplyInstantAnnotation: vi.fn(), + cancelInstantAnnotation: vi.fn(), + }), +})); +vi.mock('@/utils/misc', async (importActual) => { + const actual = await importActual(); + return { ...actual, getOSPlatform: () => h.osPlatform }; +}); + +import { useTextSelector } from '@/app/reader/hooks/useTextSelector'; +import type { TextSelection } from '@/utils/sel'; + +// Intl.Segmenter as Android has it: one segment per Han character. +class AndroidSegmenter { + segment(text: string) { + return [...text].map((segment, index) => ({ + segment, + index, + isWordLike: /\p{Script=Han}/u.test(segment), + })); + } +} + +const TEXT = '独立思考是一种重要的能力。'; +const ZERO_INSETS = { top: 0, right: 0, bottom: 0, left: 0 }; + +const setup = () => { + const setSelection = vi.fn(); + const noop = vi.fn(); + const hook = renderHook(() => + useTextSelector( + 'book-1', + ZERO_INSETS, + setSelection as never, + noop, + noop, + async (range: Range) => range.toString(), + noop, + ), + ); + return { ...hook, setSelection }; +}; + +const makePage = () => { + const p = document.createElement('p'); + p.textContent = TEXT; + document.body.appendChild(p); + return { doc: document, node: p.firstChild as Text }; +}; + +// What the WebView's long-press leaves: the one character under the finger. +const selectChar = (node: Text, char: string) => { + const start = TEXT.indexOf(char); + document.getSelection()!.setBaseAndExtent(node, start, node, start + char.length); +}; + +const touchDown = (result: ReturnType['result'], doc: Document) => { + result.current.handleTouchStart(); + result.current.handlePointerDown(doc, 0, { + pointerType: 'touch', + button: 0, + clientX: 50, + clientY: 50, + target: doc.body, + preventDefault: vi.fn(), + } as unknown as PointerEvent); +}; + +// The WebView takes a long-press over once it selects: the page gets a +// pointercancel, and the release arrives only through the native-touch bridge +// (Annotator's handleNativeTouch). +const takeOver = (result: ReturnType['result'], doc: Document) => + result.current.handlePointerCancel(doc, 0, { pointerType: 'touch' } as PointerEvent); +const release = async (result: ReturnType['result'], doc: Document) => { + result.current.handleTouchEnd(); + await result.current.handlePointerUp(doc, 0); +}; + +const flush = () => new Promise((r) => setTimeout(r, 20)); + +const lastSelection = (setSelection: ReturnType) => + setSelection.mock.calls.at(-1)?.[0] as TextSelection; + +beforeEach(() => { + vi.clearAllMocks(); + h.appService = { isAndroidApp: true, isMobile: true }; + h.osPlatform = 'android'; + h.lang = 'zh'; + vi.stubGlobal('Intl', { ...Intl, Segmenter: AndroidSegmenter }); + document.getSelection()?.removeAllRanges(); +}); + +afterEach(() => { + cleanup(); + vi.unstubAllGlobals(); + delete (document as { caretRangeFromPoint?: unknown }).caretRangeFromPoint; + document.body.innerHTML = ''; +}); + +describe('Chinese word selection on Android (#8018)', () => { + test('a long-press publishes the word and leaves the press its selection', async () => { + const { result, setSelection } = setup(); + const { doc, node } = makePage(); + + touchDown(result, doc); + selectChar(node, '思'); + result.current.handleSelectionchange(doc, 0); + takeOver(result, doc); + result.current.handleSelectionchange(doc, 0); + await flush(); + + expect(lastSelection(setSelection)).toMatchObject({ text: '思考', handlesSuppressed: false }); + // Set from script while the finger is down, the selection would stop the + // press from dragging it on. + expect(document.getSelection()!.toString()).toBe('思'); + }); + + test('the release selects the word, on the app handles', async () => { + const { result, setSelection } = setup(); + const { doc, node } = makePage(); + + touchDown(result, doc); + selectChar(node, '思'); + result.current.handleSelectionchange(doc, 0); + takeOver(result, doc); + await flush(); + await release(result, doc); + await flush(); + + expect(document.getSelection()!.toString()).toBe('思考'); + expect(lastSelection(setSelection)).toMatchObject({ text: '思考', handlesSuppressed: true }); + }); + + test('a long-press in a book of another language keeps the character', async () => { + h.lang = 'en'; + const { result, setSelection } = setup(); + const { doc, node } = makePage(); + + touchDown(result, doc); + selectChar(node, '思'); + result.current.handleSelectionchange(doc, 0); + await flush(); + + expect(document.getSelection()!.toString()).toBe('思'); + expect(lastSelection(setSelection)).toMatchObject({ text: '思', handlesSuppressed: false }); + }); + + test('a drag that changes the long-press selection is left as dragged', async () => { + const { result, setSelection } = setup(); + const { doc, node } = makePage(); + + touchDown(result, doc); + selectChar(node, '思'); + result.current.handleSelectionchange(doc, 0); + await flush(); + // The finger drags on to 是: the selection now runs 思考是. + const start = TEXT.indexOf('思'); + document.getSelection()!.setBaseAndExtent(node, start, node, start + 3); + result.current.handleSelectionchange(doc, 0); + await flush(); + await release(result, doc); + await flush(); + + expect(document.getSelection()!.toString()).toBe('思考是'); + expect(lastSelection(setSelection)).toMatchObject({ text: '思考是', handlesSuppressed: false }); + }); + + test('a double-tap on one character selects its word', async () => { + const { result, setSelection } = setup(); + const { doc, node } = makePage(); + Object.assign(document, { + caretRangeFromPoint: () => { + const range = document.createRange(); + range.setStart(node, TEXT.indexOf('思') + 1); // a caret after 思 + return range; + }, + }); + + await result.current.handleDoubleClick(doc, 0, 50, 50); + + expect(document.getSelection()!.toString()).toBe('思考'); + expect(lastSelection(setSelection)).toMatchObject({ text: '思考' }); + }); +}); diff --git a/apps/readest-app/src/__tests__/reader/utils/iframeEventHandlers.test.ts b/apps/readest-app/src/__tests__/reader/utils/iframeEventHandlers.test.ts index 8fd56ef16..508c30b59 100644 --- a/apps/readest-app/src/__tests__/reader/utils/iframeEventHandlers.test.ts +++ b/apps/readest-app/src/__tests__/reader/utils/iframeEventHandlers.test.ts @@ -133,6 +133,25 @@ describe('iframeEventHandlers click gestures', () => { expect(types).not.toContain('iframe-single-click'); }); + test('a double-click whose handling holds the thread posts no single click (#8018)', async () => { + const { handleClick, handleMousedown, handleMouseup } = await importHandlers(); + const doubleClickDisabled = { current: false }; + + handleMousedown('book-1', mouseEvent()); + handleMouseup('book-1', mouseEvent()); + handleClick('book-1', doubleClickDisabled, false, false, mouseEvent()); + vi.advanceTimersByTime(100); + handleMousedown('book-1', mouseEvent()); + handleMouseup('book-1', mouseEvent()); + handleClick('book-1', doubleClickDisabled, false, false, mouseEvent({ target: document.body })); + // Selecting the word blocks the thread for half a second (the first jieba + // lookup in a Chinese book on Android), so the first click's timer runs late. + vi.setSystemTime(Date.now() + 500); + vi.advanceTimersByTime(260); + + expect(postedTypes(postSpy)).not.toContain('iframe-single-click'); + }); + test('a double-click reports where it landed in the window, not just in its section (#6583)', async () => { const { handleClick, handleMousedown, handleMouseup } = await importHandlers(); const doubleClickDisabled = { current: false }; diff --git a/apps/readest-app/src/__tests__/utils/jieba-word.test.ts b/apps/readest-app/src/__tests__/utils/jieba-word.test.ts new file mode 100644 index 000000000..063898f54 --- /dev/null +++ b/apps/readest-app/src/__tests__/utils/jieba-word.test.ts @@ -0,0 +1,36 @@ +import { describe, expect, test } from 'vitest'; +import { findZhWord } from '@/utils/jieba'; + +// The word a long-press on `char` selects (#8018): the span jieba gives back +// for that one character. +const wordAt = (text: string, char: string) => { + const start = text.indexOf(char); + const word = findZhWord(text, start, start + char.length); + return word && text.slice(word[0], word[1]); +}; + +describe('findZhWord', () => { + test.each([ + // #8018's example. jieba keeps 独立思考 whole; iOS and desktop select 思考. + ['独立思考是一种重要的能力。', '思', '思考'], + ['独立思考是一种重要的能力。', '独', '独立'], + ['独立思考是一种重要的能力。', '能', '能力'], + ['独立思考是一种重要的能力。', '是', '是'], + ['中华人民共和国成立了', '华', '中华'], + ['中华人民共和国成立了', '人', '人民'], + ['中华人民共和国成立了', '国', '共和国'], + ['我们明天去北京大学看看', '学', '大学'], + // Character names, which jieba's HMM finds and the dictionary doesn't have. + ['韩立看着南宫婉,微微一笑。', '立', '韩立'], + // 微微一笑 has 微微 in it but not 一笑: the rest stays together. + ['韩立看着南宫婉,微微一笑。', '笑', '一笑'], + ])('%s: %s selects %s', (text, char, word) => { + expect(wordAt(text, char)).toBe(word); + }); + + test('a span that crosses words is in none of them', () => { + const text = '独立思考是一种重要的能力。'; + const start = text.indexOf('考是'); + expect(findZhWord(text, start, start + 2)).toBeNull(); + }); +}); diff --git a/apps/readest-app/src/__tests__/utils/sel-chinese-word.test.ts b/apps/readest-app/src/__tests__/utils/sel-chinese-word.test.ts new file mode 100644 index 000000000..1f3eeaa1b --- /dev/null +++ b/apps/readest-app/src/__tests__/utils/sel-chinese-word.test.ts @@ -0,0 +1,96 @@ +import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest'; + +// Android's ICU ships without its Chinese dictionary, so Intl.Segmenter (like +// the WebView's own long-press) splits Chinese into single characters (#8018). +// jieba widens the character to its word there; everywhere else the platform +// segments Chinese itself and nothing changes. + +const h = vi.hoisted(() => ({ jiebaReady: true })); +vi.mock('@/utils/jieba', async (importActual) => ({ + ...(await importActual()), + isJiebaReady: () => h.jiebaReady, +})); + +import { getWordRangeAt, widenToChineseWord } from '@/utils/sel'; + +// Intl.Segmenter as Android has it: one segment per Han character. +class AndroidSegmenter { + segment(text: string) { + return [...text].map((segment, index) => ({ + segment, + index, + isWordLike: /\p{Script=Han}/u.test(segment), + })); + } +} + +const TEXT = '独立思考是一种重要的能力。'; + +const textNode = () => { + const node = document.createTextNode(TEXT); + document.body.appendChild(node); + return node; +}; + +const charRange = (node: Text, char: string) => { + const range = document.createRange(); + const start = TEXT.indexOf(char); + range.setStart(node, start); + range.setEnd(node, start + char.length); + return range; +}; + +beforeEach(() => { + h.jiebaReady = true; + vi.stubGlobal('Intl', { ...Intl, Segmenter: AndroidSegmenter }); +}); + +afterEach(() => { + vi.unstubAllGlobals(); + document.body.innerHTML = ''; +}); + +describe('widenToChineseWord', () => { + test('widens a Chinese character to its word', () => { + const node = textNode(); + expect(widenToChineseWord(charRange(node, '思'), 'zh')?.toString()).toBe('思考'); + }); + + test('leaves a character that is a word by itself', () => { + const node = textNode(); + expect(widenToChineseWord(charRange(node, '是'), 'zh')).toBeNull(); + }); + + test('only in a Chinese book', () => { + const node = textNode(); + expect(widenToChineseWord(charRange(node, '思'), 'ja')).toBeNull(); + expect(widenToChineseWord(charRange(node, '思'), undefined)).toBeNull(); + }); + + test('only once jieba is loaded', () => { + h.jiebaReady = false; + const node = textNode(); + expect(widenToChineseWord(charRange(node, '思'), 'zh')).toBeNull(); + }); + + test('not where Intl.Segmenter segments Chinese itself', () => { + vi.unstubAllGlobals(); + const node = textNode(); + expect(widenToChineseWord(charRange(node, '思'), 'zh')).toBeNull(); + }); +}); + +describe('getWordRangeAt in a Chinese book on Android', () => { + // A caret between two characters belongs to the one before it. + const afterSi = TEXT.indexOf('思') + 1; + + test('returns the word, not the character', () => { + const node = textNode(); + expect(getWordRangeAt(node, afterSi, 'zh')?.toString()).toBe('思考'); + }); + + test('keeps the character in a book of another language', () => { + const node = textNode(); + expect(getWordRangeAt(node, afterSi)?.toString()).toBe('思'); + }); +}); diff --git a/apps/readest-app/src/app/reader/hooks/useInstantAnnotation.ts b/apps/readest-app/src/app/reader/hooks/useInstantAnnotation.ts index d4a28c5bf..7e111b444 100644 --- a/apps/readest-app/src/app/reader/hooks/useInstantAnnotation.ts +++ b/apps/readest-app/src/app/reader/hooks/useInstantAnnotation.ts @@ -339,12 +339,13 @@ export const useInstantAnnotation = ({ if (!isInstantAnnotationEnabled()) return; const start = startPointRef.current; if (!start) return; - const wordRange = getWordRangeFromPoint(doc, start.x, start.y); + const lang = getBookData(bookKey)?.book?.primaryLanguage; + const wordRange = getWordRangeFromPoint(doc, start.x, start.y, lang); if (!wordRange) return; engageRangeRef.current = wordRange; drawPreview(doc, index, wordRange, start); }, - [isInstantAnnotationEnabled, drawPreview], + [bookKey, getBookData, isInstantAnnotationEnabled, drawPreview], ); const handleInstantAnnotationPointerMove = useCallback( diff --git a/apps/readest-app/src/app/reader/hooks/useTextSelector.ts b/apps/readest-app/src/app/reader/hooks/useTextSelector.ts index f76d58ac8..293d78125 100644 --- a/apps/readest-app/src/app/reader/hooks/useTextSelector.ts +++ b/apps/readest-app/src/app/reader/hooks/useTextSelector.ts @@ -9,6 +9,7 @@ import { eventDispatcher } from '@/utils/event'; import { LONG_HOLD_THRESHOLD } from '@/services/constants'; import { setSelectionSuppressed } from '@/utils/bridge'; import { suppressSystemSelectionMenu } from '@/hooks/useSystemSelectionMenu'; +import { initJieba } from '@/utils/jieba'; import { LINK_TOUCH_HOLD_CLASS, TEXT_SELECTED_CLASS } from '@/utils/style'; import { focusCaretWindowPos, @@ -19,9 +20,11 @@ import { Point, rangeFromAnchorToPoint, repairJumpedSelectionRange, + splitsChineseByCharacter, TextSelection, trimNoteMarkersFromWordRange, trimRangeWhitespaceAroundPoint, + widenToChineseWord, } from '@/utils/sel'; import { Corner, useAutoPageTurn } from './useAutoPageTurn'; import { useInstantAnnotation } from './useInstantAnnotation'; @@ -88,8 +91,15 @@ export const useTextSelector = ( const { getView, getViewSettings, getProgress } = useReaderStore(); const view = getView(bookKey); const bookData = useBookData(bookKey); + const bookLang = bookData?.book?.primaryLanguage; const osPlatform = getOSPlatform(); + // A word selection in a Chinese book widens through jieba where the platform + // splits Chinese by character (#8018); load it before the first one. + useEffect(() => { + if (bookLang?.startsWith('zh') && splitsChineseByCharacter()) initJieba().catch(() => {}); + }, [bookLang]); + // Corner-dwell auto page-turn (#1354), now driven by every selection gesture // through a shared engagement point — see useAutoPageTurn. const { @@ -179,6 +189,8 @@ export const useTextSelector = ( const wordGestureRef = useRef<{ range: Range; trimPoint?: { node: Node; offset: number } | null; + // A Chinese word widened from one character (#8018), on the app's handles. + widened?: boolean; } | null>(null); // Android hyphen selection-bounds bug (#1553): the selection anchor captured @@ -554,11 +566,30 @@ export const useTextSelector = ( const publication = ++selectionPublicationId.current; isTextSelected.current = true; const navigated = navigatedSelectionRef.current; - const liveRange = sel.getRangeAt(0); + let liveRange = sel.getRangeAt(0); const lastGesture = wordGestureRef.current; + const sameAsLast = !!lastGesture && isSameRange(liveRange, lastGesture.range); + // A long-press on Chinese in Android's WebView selects one character + // (#8018): publish its word. The page selection takes the word only once + // the finger lifts: set from script, it stops the press from dragging the + // selection on, and it has no WebView handles, so the app's own take over. + let word = + wordGesture && appService?.isAndroidApp ? widenToChineseWord(liveRange, bookLang) : null; + let widened = sameAsLast && !!lastGesture?.widened; + if (word && !isTouchStarted.current) { + guardProgrammaticSelection(); + sel.removeAllRanges(); + sel.addRange(word); + releaseProgrammaticSelection(); + liveRange = sel.getRangeAt(0); + if (touchWordGestureRef.current) touchWordGestureRef.current.range = liveRange.cloneRange(); + word = null; + widened = true; + } + if (widened) handlesSuppressed = true; if (wordGesture) { - wordGestureRef.current = { range: liveRange.cloneRange(), trimPoint }; - } else if (lastGesture && isSameRange(liveRange, lastGesture.range)) { + wordGestureRef.current = { range: liveRange.cloneRange(), trimPoint, widened }; + } else if (lastGesture && sameAsLast) { trimPoint = lastGesture.trimPoint; wordGesture = true; } else { @@ -587,7 +618,7 @@ export const useTextSelector = ( // Selection.getRangeAt() returns the live, associated Range by reference. // Clone only for double-click normalization so native touch paths retain // their established Range behavior and browser handles stay untouched. - const range = trimPoint || wordGesture ? liveRange.cloneRange() : liveRange; + const range = word ?? (trimPoint || wordGesture ? liveRange.cloneRange() : liveRange); if (trimPoint) trimRangeWhitespaceAroundPoint(range, trimPoint.node, trimPoint.offset); if (wordGesture) trimNoteMarkersFromWordRange(range); const text = await getAnnotationText(range); @@ -1091,7 +1122,7 @@ export const useTextSelector = ( if (isInstantAnnotating.current) return; const sel = doc.getSelection(); if (!sel || isValidSelection(sel)) return; - const range = getWordRangeFromPoint(doc, x, y); + const range = getWordRangeFromPoint(doc, x, y, bookLang); if (!range) return; guardProgrammaticSelection(); sel.removeAllRanges(); @@ -1215,6 +1246,16 @@ export const useTextSelector = ( } if (osPlatform === 'android' && appService?.isAndroidApp) { + // The WebView keeps a long-press's release to itself (the page got a + // pointercancel), so a Chinese word published mid-press takes the + // selection here, at the native release (#8018). + if ( + isValidSelection(sel) && + isTouchWordSelection(sel) && + widenToChineseWord(sel.getRangeAt(0), bookLang) + ) { + await makeSelection(sel, index, false, false, null, true); + } await sanitizeAndroidHyphenSelection(doc, index); await suppressNativeHandlesForPages(); diff --git a/apps/readest-app/src/app/reader/utils/iframeEventHandlers.ts b/apps/readest-app/src/app/reader/utils/iframeEventHandlers.ts index 5fa634af6..a257ab93d 100644 --- a/apps/readest-app/src/app/reader/utils/iframeEventHandlers.ts +++ b/apps/readest-app/src/app/reader/utils/iframeEventHandlers.ts @@ -805,9 +805,9 @@ export const handleClick = ( }; if (!doubleClickDisabled.current) { setTimeout(() => { - if (Date.now() - lastClickTime >= DOUBLE_CLICK_INTERVAL_THRESHOLD_MS) { - postSingleClick(); - } + // No click came since this one. Timed from now instead, a timer the + // thread ran late (#8018) reads a double-click as a single one. + if (lastClickTime === now) postSingleClick(); }, DOUBLE_CLICK_INTERVAL_THRESHOLD_MS); } else { // Mouse clicks remain synchronous. A touch-synthesized click waits one diff --git a/apps/readest-app/src/utils/jieba.ts b/apps/readest-app/src/utils/jieba.ts index 71c7046d2..86a0aeb5f 100644 --- a/apps/readest-app/src/utils/jieba.ts +++ b/apps/readest-app/src/utils/jieba.ts @@ -1,4 +1,4 @@ -import init, { cut } from 'jieba-wasm'; +import init, { cut, cut_for_search } from 'jieba-wasm'; let initialized = false; let initPromise: Promise | null = null; @@ -28,4 +28,41 @@ const cutZh = (text: string): string[] => { return cut(text, true); }; -export { initJieba, isJiebaReady, cutZh }; +// The word around text[start, end), as [start, end) offsets, or null when the +// span crosses words. jieba keeps compounds whole (独立思考, 北京大学) where iOS +// and desktop select their parts (思考, 大学), so a longer word is split into +// the dictionary words search mode finds in it, left to right and longest +// first. Characters none of them covers stay together. +const findZhWord = (text: string, start: number, end: number): [number, number] | null => { + let wordStart = 0; + for (const word of cut(text, true)) { + const wordEnd = wordStart + word.length; + if (end <= wordEnd) { + if (start < wordStart) return null; + const parts = cut_for_search(word, true).filter((part) => part.length < word.length); + const bounds = new Set([0, word.length]); + for (let i = 0; i < word.length; ) { + const part = parts + .filter((p) => word.startsWith(p, i)) + .reduce((a, b) => (b.length > a.length ? b : a), ''); + if (!part) { + i++; + continue; + } + bounds.add(i).add(i + part.length); + i += part.length; + } + const sorted = [...bounds].sort((a, b) => a - b); + for (let k = 1; k < sorted.length; k++) { + const pieceStart = wordStart + sorted[k - 1]!; + const pieceEnd = wordStart + sorted[k]!; + if (start >= pieceStart && end <= pieceEnd) return [pieceStart, pieceEnd]; + } + return [wordStart, wordEnd]; + } + wordStart = wordEnd; + } + return null; +}; + +export { initJieba, isJiebaReady, cutZh, findZhWord }; diff --git a/apps/readest-app/src/utils/sel.ts b/apps/readest-app/src/utils/sel.ts index b9835ac5f..fb016071c 100644 --- a/apps/readest-app/src/utils/sel.ts +++ b/apps/readest-app/src/utils/sel.ts @@ -1,4 +1,5 @@ import { getPdfCaretPosition, getPdfTextFromRange, getPdfTextLayer } from '@/utils/pdfText'; +import { findZhWord, isJiebaReady } from '@/utils/jieba'; export interface Frame { top: number; @@ -634,11 +635,36 @@ export const snapRangeToWords = (range: Range): void => { snapEndToWordBoundary(); }; +// Android ships ICU without its Chinese dictionary, so Intl.Segmenter and the +// WebView's own long-press split Chinese into single characters (#8018). +export const splitsChineseByCharacter = (): boolean => + typeof Intl !== 'undefined' && + !!Intl.Segmenter && + [...new Intl.Segmenter('zh', { granularity: 'word' }).segment('思考')].length > 1; + +// Widen a range on Chinese text to the word around it, where the platform +// splits Chinese by character. Null when there is nothing to widen. +export const widenToChineseWord = (range: Range, lang?: string): Range | null => { + if (!lang?.startsWith('zh') || !isJiebaReady() || !splitsChineseByCharacter()) return null; + const node = range.startContainer; + if (node !== range.endContainer || node.nodeType !== Node.TEXT_NODE) return null; + const text = node.textContent ?? ''; + const { startOffset, endOffset } = range; + if (!/^\p{Script=Han}+$/u.test(text.slice(startOffset, endOffset))) return null; + const word = findZhWord(text, startOffset, endOffset); + if (!word || (word[0] === startOffset && word[1] === endOffset)) return null; + const widened = range.cloneRange(); + widened.setStart(node, word[0]); + widened.setEnd(node, word[1]); + return widened; +}; + // Expand a caret position (a text node + offset) to the word-like segment that // contains it — the same word a native double-click would select. Returns null // when the position isn't inside word-like text (whitespace, punctuation, a -// non-text node). CJK is segmented via Intl.Segmenter, matching snapRangeToWords. -export const getWordRangeAt = (node: Node, offset: number): Range | null => { +// non-text node). CJK is segmented via Intl.Segmenter, matching snapRangeToWords, +// and in a Chinese book (`lang`) widened where that splits it by character. +export const getWordRangeAt = (node: Node, offset: number, lang?: string): Range | null => { if (node.nodeType !== Node.TEXT_NODE) return null; if (typeof Intl === 'undefined' || !Intl.Segmenter) return null; const text = node.textContent ?? ''; @@ -660,7 +686,8 @@ export const getWordRangeAt = (node: Node, offset: number): Range | null => { } catch { return null; } - return range.collapsed ? null : range; + if (range.collapsed) return null; + return widenToChineseWord(range, lang) ?? range; } } return null; @@ -692,9 +719,14 @@ export const getCaretPointFromPoint = ( return { node, offset }; }; -export const getWordRangeFromPoint = (doc: Document, x: number, y: number): Range | null => { +export const getWordRangeFromPoint = ( + doc: Document, + x: number, + y: number, + lang?: string, +): Range | null => { const point = getCaretPointFromPoint(doc, x, y); - return point ? getWordRangeAt(point.node, point.offset) : null; + return point ? getWordRangeAt(point.node, point.offset, lang) : null; }; interface SelectedTextSlice { From 182978aa0c4d5a2273269392276679e6f3bc598d Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 29 Nov 2026 00:15:26 +0800 Subject: [PATCH 4/7] feat(web): name what web.readest.com does in its title and description (#8074) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Search results show web.readest.com as "Readest — Where You Read, Digest and Get Insight", which doesn't say it is an ebook reader that runs in the browser. The default title becomes "Readest Web — Free Online EPUB Reader", with a description that names the formats, that it is free and needs no install, and that it syncs with the apps. The installed apps set their own window titles, and the reader replaces this one with the book's title. Co-authored-by: Claude Opus 5.5 --- apps/readest-app/src/app/layout.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/readest-app/src/app/layout.tsx b/apps/readest-app/src/app/layout.tsx index 12e29afd2..1aae921e1 100644 --- a/apps/readest-app/src/app/layout.tsx +++ b/apps/readest-app/src/app/layout.tsx @@ -8,12 +8,13 @@ import Providers from '@/components/Providers'; import '../styles/globals.css'; const url = 'https://web.readest.com/'; -const title = 'Readest — Where You Read, Digest and Get Insight'; +// What search results show for web.readest.com, so it names what people search +// for. The installed apps set their own window titles, and the reader replaces +// this with the book's title. +const title = 'Readest Web — Free Online EPUB Reader'; const description = - 'Discover Readest, the ultimate online ebook reader for immersive and organized reading. ' + - 'Enjoy seamless access to your digital library, powerful tools for highlighting, bookmarking, ' + - 'and note-taking, and support for multiple book views. ' + - 'Perfect for deep reading, analysis, and understanding. Explore now!'; + 'Read EPUB, PDF and other ebooks in your browser with Readest: free, no install, ' + + 'with highlights, notes and read aloud. Syncs with the Readest apps.'; const previewImage = 'https://cdn.readest.com/images/open_graph_preview_read_now.png'; export const metadata: Metadata = { From 17752434276dd69b82dcd697e21ba6e77cef8c83 Mon Sep 17 00:00:00 2001 From: leehuazhong <167761613+leehuazhong@users.noreply.github.com> Date: Sun, 29 Nov 2026 01:28:52 +0800 Subject: [PATCH 5/7] fix(reader): show each Curl and Page Flip sheet's own page number and chapter (#8068) (#8069) * fix(reader): preview target page counters and header during native page-turn captures Pre-captured adjacent sheets in NativePageTurn and PageTurnBuffer use paginator.previewPage(), which intentionally skips relocate events. Because ProgressBar and SectionInfo overlay the full renderer bounds, PixelCopy/snapshot captures previously baked the current page's page number and remaining-page count onto neighbouring sheets. Add a lightweight display-only pageTurnPreview store (subscribed only by ProgressBar and SectionInfo) that previews the target page's progress, remaining pages, and section label while previewPage() captures an adjacent sheet, and releases only after previewPage() restores containerPosition so live readouts never sample the previewed renderer.page. Co-Authored-By: Antigravity (Gemini) * fix(reader): show each Curl and Page Flip sheet's own page number and chapter (#8068) Native Curl and Page Flip capture the next and previous pages ahead of a turn with paginator previewPage(), which paints the page without relocating. The running header and footer sit over the renderer box, so the captures took them in still showing the page being read: page number, pages left, progress fill and, at a chapter boundary, the chapter title. They caught up only once the turn landed. This reworks the first version, which estimated the neighbour's numbers in Readest (pageTurnPreview.ts) from section fractions and the renderer's page count, through hooks in NativePageTurn and PageTurnBuffer. That estimate can disagree with what foliate reports after the turn (two-column spreads, lead pages, chunked chapters, which it skipped), and with no range for the page, the chapter title inside a multi-entry chapter and the printed page label stayed stale. Now foliate names the previewed page itself (readest/foliate-js#204, pinned at fb174ec): `preview` carries what a relocate there reports, then null once the reading position is back. FoliateViewer keeps it as a display-only PagePreview in readerProgressStore, built the way setProgress builds progress. ProgressBar, SectionInfo and the screen-page pair read it; reading progress, history and sync never see it. Verified: - Fails without the change: the paginator-paginated browser test "previews the location a turn then reaches" (360 and 800 px) fails on the old foliate pin with "expected [] to have a length of 2". The new ProgressBar, SectionInfo and foliate-viewer-relocate tests fail on main's components with "expected '3 / 10' to be '4 / 10'", "expected 'Chapter 1' to be 'Chapter 2'" and "expected undefined to match object". All pass with it. - 39 paginator and page-turn browser files (464 tests), the 5 browser files that mock the progress store, and 92 related unit files (1434 tests) pass. pnpm lint and pnpm format:check pass. - Android emulator (API 35, debug x86_64 build of this branch, the Alice EPUB, Show Remaining Pages on), each turn held mid-way: Curl forward: the revealed page reads 16 / 112 while the outgoing page reads 15 / 112. Curl backward: the incoming page reads "11 pages left in chapter", as after the turn. At a chapter boundary the next chapter's first page shows its own count ("pages left", 19 after the turn) and the trace shows its chapter title in the header during the capture. Page Flip backward: the incoming half reads "11 pages left in chapter", as after the turn. With foliate's preview event dropped over CDP (main's behaviour) the same curls show 29 / 112 for a page that is 30 / 112, "8 pages left" where the turn lands on 9, and "1 page left" on the next chapter's first page. - Not run: iOS (same JS path; WKWebView snapshots). Reported by leehuazhong on GitHub. Co-Authored-By: Claude Code (Claude Opus 5.5) --------- Co-authored-by: Antigravity (Gemini) Co-authored-by: Huang Xin Co-authored-by: Claude Code (Claude Opus 5.5) --- .../reader/components/SectionInfo.test.tsx | 16 ++++- .../reader/foliate-viewer-relocate.test.tsx | 66 ++++++++++++++++++ .../components/ProgressBar-duo.test.tsx | 1 + .../__tests__/components/ProgressBar.test.tsx | 39 +++++++++++ ...er-menu-over-footer-strip.browser.test.tsx | 6 +- .../paginator-paginated.browser.test.ts | 69 +++++++++++++++++++ .../app/reader/components/FoliateViewer.tsx | 46 +++++++++++-- .../src/app/reader/components/ProgressBar.tsx | 13 ++-- .../src/app/reader/components/SectionInfo.tsx | 7 +- .../src/app/reader/hooks/useCapturedTurn.ts | 5 +- .../src/app/reader/hooks/useFoliateEvents.ts | 4 ++ .../src/app/reader/utils/screenPages.ts | 6 +- .../src/store/readerProgressStore.ts | 37 ++++++++-- packages/foliate-js | 2 +- 14 files changed, 295 insertions(+), 22 deletions(-) diff --git a/apps/readest-app/src/__tests__/app/reader/components/SectionInfo.test.tsx b/apps/readest-app/src/__tests__/app/reader/components/SectionInfo.test.tsx index f8a7c855f..724541001 100644 --- a/apps/readest-app/src/__tests__/app/reader/components/SectionInfo.test.tsx +++ b/apps/readest-app/src/__tests__/app/reader/components/SectionInfo.test.tsx @@ -2,7 +2,7 @@ import { afterEach, describe, it, expect, vi } from 'vitest'; import { act, render } from '@testing-library/react'; import SectionInfo from '@/app/reader/components/SectionInfo'; -import { clearBookProgress, setBookProgress } from '@/store/readerProgressStore'; +import { clearBookProgress, setBookProgress, setPagePreview } from '@/store/readerProgressStore'; import type { BookProgress } from '@/types/book'; let currentBookData: @@ -77,6 +77,20 @@ describe('SectionInfo title', () => { expect(title()).toBe('Chapter 2'); }); + + // A native page turn captures the next page with the header over it (#8068). + it('shows the section of a page a native turn previews, then the reading position again', () => { + turnInto('Chapter 1'); + const { container } = render(); + const title = () => container.querySelector('[aria-label^="Section Title"]')?.textContent; + + const progress = { location: 'cfi', sectionLabel: 'Chapter 2' } as BookProgress; + act(() => setPagePreview('book-1', { progress, page: 0, pages: 5, atEnd: false })); + expect(title()).toBe('Chapter 2'); + + act(() => setPagePreview('book-1', null)); + expect(title()).toBe('Chapter 1'); + }); }); describe('SectionInfo notch mask', () => { diff --git a/apps/readest-app/src/__tests__/app/reader/foliate-viewer-relocate.test.tsx b/apps/readest-app/src/__tests__/app/reader/foliate-viewer-relocate.test.tsx index 602d6ef5d..2ba910088 100644 --- a/apps/readest-app/src/__tests__/app/reader/foliate-viewer-relocate.test.tsx +++ b/apps/readest-app/src/__tests__/app/reader/foliate-viewer-relocate.test.tsx @@ -3,6 +3,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type { ComponentProps } from 'react'; import FoliateViewer from '@/app/reader/components/FoliateViewer'; import { useFoliateEvents } from '@/app/reader/hooks/useFoliateEvents'; +import { setBookProgress, useReaderProgressStore } from '@/store/readerProgressStore'; +import type { BookProgress } from '@/types/book'; const { setProgress, readerState, wipe, linked } = vi.hoisted(() => { const setProgress = vi.fn(); @@ -126,6 +128,11 @@ const relocate = (detail: object) => { act(() => handlers?.onRelocate?.(new CustomEvent('relocate', { detail }))); }; +const preview = (detail: object | null) => { + const handlers = vi.mocked(useFoliateEvents).mock.lastCall?.[1]; + act(() => handlers?.onPreview?.(new CustomEvent('preview', { detail }))); +}; + const rendererRelocate = (detail: object) => { const handlers = vi.mocked(useFoliateEvents).mock.lastCall?.[1]; act(() => handlers?.onRendererRelocate?.(new CustomEvent('relocate', { detail }))); @@ -270,6 +277,65 @@ describe('reader relocation during an Auto Scroll wipe', () => { }); }); +// A native page turn paints the next page under its cover to capture it, with +// the header and footer over it (#8068). +describe('page preview under a native page turn', () => { + const tocItem = { label: 'Chapter 2', href: 'ch2.xhtml' }; + const next = { + location: { current: 8, next: 10, total: 10 }, + section: { current: 3, total: 4 }, + time: { section: 0.5, total: 0.5 }, + fraction: 1, + tocItem, + pageItem: null, + page: 4, + pages: 5, + atEnd: true, + }; + const previewed = () => useReaderProgressStore.getState().previews['test-book']; + + beforeEach(() => { + vi.clearAllMocks(); + setBookProgress('test-book', { + location: 'epubcfi(/6/6)', + sectionLabel: 'Chapter 1', + sectionHref: 'ch1.xhtml', + pageinfo: { current: 7, next: 8, total: 10 }, + } as BookProgress); + }); + afterEach(() => { + cleanup(); + setBookProgress('test-book', null); + }); + + it('shows the previewed page in the chrome until the reading position is back', () => { + render(); + preview(next); + + expect(previewed()).toMatchObject({ + progress: { + location: 'epubcfi(/6/6)', + sectionLabel: 'Chapter 2', + sectionHref: 'ch2.xhtml', + section: next.section, + // The book's last page reads total / total, as a relocation there does. + pageinfo: { current: 9, next: 10, total: 10 }, + timeinfo: next.time, + fraction: 1, + page: 10, + }, + page: 4, + pages: 5, + atEnd: true, + }); + + preview(null); + expect(previewed()).toBeNull(); + // Display only: the reading position never moved. + expect(setProgress).not.toHaveBeenCalled(); + }); +}); + describe('parallel reading', () => { beforeEach(() => { vi.clearAllMocks(); diff --git a/apps/readest-app/src/__tests__/components/ProgressBar-duo.test.tsx b/apps/readest-app/src/__tests__/components/ProgressBar-duo.test.tsx index c3e42e644..11809f19f 100644 --- a/apps/readest-app/src/__tests__/components/ProgressBar-duo.test.tsx +++ b/apps/readest-app/src/__tests__/components/ProgressBar-duo.test.tsx @@ -35,6 +35,7 @@ vi.mock('@/store/readerStore', () => { vi.mock('@/store/readerProgressStore', () => ({ useBookProgress: () => null, getBookProgress: () => null, + usePagePreview: () => null, })); vi.mock('@/store/bookDataStore', () => { const state = { getBookData: () => ({ isFixedLayout: false }) }; diff --git a/apps/readest-app/src/__tests__/components/ProgressBar.test.tsx b/apps/readest-app/src/__tests__/components/ProgressBar.test.tsx index bcfdf287a..0442429b8 100644 --- a/apps/readest-app/src/__tests__/components/ProgressBar.test.tsx +++ b/apps/readest-app/src/__tests__/components/ProgressBar.test.tsx @@ -6,6 +6,7 @@ import ProgressBar from '@/app/reader/components/ProgressBar'; import { DEFAULT_VIEW_CONFIG } from '@/services/constants'; import { clearChapterScreens, recordChapterScreens } from '@/utils/chapterScreens'; import type { BookProgress, ViewSettings } from '@/types/book'; +import type { PagePreview } from '@/store/readerProgressStore'; import type { TOCItem } from '@/libs/document'; const saveViewSettings = vi.fn(); @@ -16,6 +17,7 @@ vi.mock('@/hooks/useMedianPageDurationSecs', () => ({ let currentViewSettings: ViewSettings; let currentProgress: BookProgress | null; +let currentPreview: PagePreview | null = null; let currentBookData: { isFixedLayout: boolean; bookDoc?: { @@ -74,6 +76,7 @@ vi.mock('@/store/readerStore', () => { vi.mock('@/store/readerProgressStore', () => ({ useBookProgress: () => currentProgress, getBookProgress: () => currentProgress, + usePagePreview: () => currentPreview, })); vi.mock('@/store/bookDataStore', () => { @@ -124,6 +127,7 @@ beforeEach(() => { medianPageDurationSecs = null; currentAppService = { isMobile: false, hasSafeAreaInset: false }; currentProgress = null; + currentPreview = null; currentBookData = { isFixedLayout: false }; currentRenderer = { page: 0, pages: 0 }; currentSectionFractions = []; @@ -316,6 +320,41 @@ describe('ProgressBar — calibrated page pair', () => { }); }); +// A native page turn captures the next page with the footer over it (#8068). +describe('ProgressBar — a page a native turn previews', () => { + it('shows the previewed page, then the reading position again', () => { + currentViewSettings = { + ...baseSettings, + progressStyle: 'fraction', + showProgressInfo: true, + showRemainingPages: true, + } as ViewSettings; + currentProgress = makeProgress(2, 10); + currentRenderer = { page: 1, pages: 4 }; + currentPreview = { progress: makeProgress(3, 10), page: 2, pages: 4, atEnd: false }; + + const { container, rerender } = renderProgressBar(); + const label = () => container.querySelector('.progress-info-label')?.textContent; + const info = () => container.querySelector('.progressinfo')?.getAttribute('aria-label'); + expect(label()).toBe('4 / 10'); + expect(info()).toContain('On 3 of 4 page'); + expect(info()).toContain('2 pages left in chapter'); + + currentPreview = null; + rerender( + , + ); + expect(label()).toBe('3 / 10'); + expect(info()).toContain('On 2 of 4 page'); + expect(info()).toContain('3 pages left in chapter'); + }); +}); + describe('ProgressBar — remaining time and pages together', () => { it.each([ ['in book', true], diff --git a/apps/readest-app/src/__tests__/components/header-menu-over-footer-strip.browser.test.tsx b/apps/readest-app/src/__tests__/components/header-menu-over-footer-strip.browser.test.tsx index 4c947235f..7e522a8a5 100644 --- a/apps/readest-app/src/__tests__/components/header-menu-over-footer-strip.browser.test.tsx +++ b/apps/readest-app/src/__tests__/components/header-menu-over-footer-strip.browser.test.tsx @@ -71,7 +71,11 @@ vi.mock('@/store/readerProgressStore', () => { pageinfo: { current: 2, total: 5 }, timeinfo: { section: 0, total: 0 }, } as BookProgress; - return { useBookProgress: () => progress, getBookProgress: () => progress }; + return { + useBookProgress: () => progress, + getBookProgress: () => progress, + usePagePreview: () => null, + }; }); vi.mock('@/store/bookDataStore', async () => { const { bookDataStoreHooks } = await import('@/__tests__/helpers/book-data-store-mock'); diff --git a/apps/readest-app/src/__tests__/document/paginator-paginated.browser.test.ts b/apps/readest-app/src/__tests__/document/paginator-paginated.browser.test.ts index 1609709ac..2caead1d8 100644 --- a/apps/readest-app/src/__tests__/document/paginator-paginated.browser.test.ts +++ b/apps/readest-app/src/__tests__/document/paginator-paginated.browser.test.ts @@ -831,4 +831,73 @@ describe('FoliateView CFI navigation (browser)', () => { expect(chapterHeading).toBeDefined(); expect(chapterHeading!.textContent).toContain('Chapter 5'); }); + + // A native page turn paints the adjacent page under its cover to capture it, + // with the header and footer over it (#8068). The preview names that page's + // location, so they can show it: it must be the location the turn reaches. + it.each([ + 360, 800, + ])('previews the location a turn then reaches, within and across sections (%ipx)', async (width) => { + view = createView(); + view.style.width = `${width}px`; + await view.open(book); + const start = book.sections!.findIndex((s) => s.linear !== 'no' && s.size > 10000); + const stabilized = new Promise((resolve) => { + view.renderer.addEventListener('stabilized', () => resolve(), { once: true }); + }); + await view.goTo(start); + await stabilized; + + const previewThenTurn = async (forward: boolean) => { + // The next section has to be loaded beside this one to be previewed. + await vi.waitUntil(() => view.renderer.getPageTurnKey?.(forward ? 1 : -1), { + timeout: 5000, + }); + let previews: unknown[] = []; + const onPreview = (e: Event) => previews.push((e as CustomEvent).detail); + view.addEventListener('preview', onPreview); + // A resize can cancel a preview during its paint frames: try again. + await vi.waitUntil( + async () => { + previews = []; + return (await view.renderer.previewPage!(forward, async () => 'captured')) !== null; + }, + { timeout: 3000, interval: 20 }, + ); + view.removeEventListener('preview', onPreview); + expect(previews).toHaveLength(2); + expect(previews[1]).toBeNull(); + const preview = previews[0] as Record; + + const relocates: Record[] = []; + const onRelocate = (e: Event) => relocates.push((e as CustomEvent).detail); + view.addEventListener('relocate', onRelocate); + await (forward ? view.next() : view.prev()); + await new Promise((resolve) => setTimeout(resolve, 300)); + view.removeEventListener('relocate', onRelocate); + const relocated = relocates.at(-1)!; + expect(preview).toMatchObject({ + fraction: relocated['fraction'], + section: relocated['section'], + location: relocated['location'], + time: relocated['time'], + tocItem: relocated['tocItem'], + pageItem: relocated['pageItem'], + page: view.renderer.page, + pages: view.renderer.pages, + atEnd: view.renderer.atEnd, + }); + return (relocated['section'] as { current: number }).current; + }; + + // Within the section both ways, then on into the next one. + expect(await previewThenTurn(true)).toBe(start); + expect(await previewThenTurn(false)).toBe(start); + let section = start; + for (let turns = 0; section === start; turns++) { + expect(turns).toBeLessThan(40); + section = await previewThenTurn(true); + } + expect(section).toBeGreaterThan(start); + }, 30000); }); diff --git a/apps/readest-app/src/app/reader/components/FoliateViewer.tsx b/apps/readest-app/src/app/reader/components/FoliateViewer.tsx index 4ce688437..76cc237bc 100644 --- a/apps/readest-app/src/app/reader/components/FoliateViewer.tsx +++ b/apps/readest-app/src/app/reader/components/FoliateViewer.tsx @@ -14,6 +14,7 @@ import { Insets } from '@/types/misc'; import { useEnv } from '@/context/EnvContext'; import { useThemeStore } from '@/store/themeStore'; import { useReaderStore } from '@/store/readerStore'; +import { getBookProgress, setPagePreview } from '@/store/readerProgressStore'; import { useBookDataStore } from '@/store/bookDataStore'; import { useSettingsStore } from '@/store/settingsStore'; import { useCustomFontStore } from '@/store/customFontStore'; @@ -186,6 +187,13 @@ const PositionFollowers: React.FC<{ ); }; +// Foliate rounds a location down, so the book's last page reads total / total. +const pageInfoAt = ({ current, next, total }: PageInfo, atEnd: boolean): PageInfo => ({ + current: atEnd && total > 0 ? total - 1 : current, + next, + total, +}); + const FoliateViewer: React.FC<{ bookKey: string; bookDoc: BookDoc; @@ -394,10 +402,7 @@ const FoliateViewer: React.FC<{ pendingRelocateRef.current = null; if (!event) return; const detail = event.detail; - const atEnd = viewRef.current?.renderer.atEnd || false; - const { current, next, total } = detail.location as PageInfo; - const currentPage = atEnd && total > 0 ? total - 1 : current; - const pageInfo = { current: currentPage, next, total }; + const pageInfo = pageInfoAt(detail.location, viewRef.current?.renderer.atEnd || false); setProgress( bookKey, detail.cfi, @@ -445,6 +450,38 @@ const FoliateViewer: React.FC<{ relocateTimeoutRef.current = setTimeout(commitRelocate, 100); }; + // A native page turn paints the next or previous page under its cover to + // capture it, header and footer included (#8068). Foliate names that page, + // then null once the reading position is back on screen. + const pagePreviewHandler = (event: Event) => { + const detail = (event as CustomEvent).detail; + const progress = getBookProgress(bookKey); + if (!detail?.location || !progress) { + setPagePreview(bookKey, null); + return; + } + const pageinfo = pageInfoAt(detail.location, detail.atEnd); + // What setProgress would store for a relocation to that page. + setPagePreview(bookKey, { + progress: { + ...progress, + sectionHref: detail.tocItem?.href, + sectionLabel: detail.tocItem?.label, + pageItem: detail.pageItem, + section: detail.section, + pageinfo, + timeinfo: detail.time, + fraction: detail.fraction, + index: detail.section.current, + range: detail.range, + page: pageinfo.current + 1, + }, + page: detail.page, + pages: detail.pages, + atEnd: detail.atEnd, + }); + }; + useEffect(() => { // On unmount: flush any pending commit synchronously before tearing // down — otherwise the last page-turn before the user closes the @@ -1053,6 +1090,7 @@ const FoliateViewer: React.FC<{ onLoad: docLoadHandler, onStabilized: stabilizedHandler, onRelocate: progressRelocateHandler, + onPreview: pagePreviewHandler, onRendererRelocate: docRelocateHandler, onNavigateStart: navigateStartHandler, onNavigateEnd: navigateEndHandler, diff --git a/apps/readest-app/src/app/reader/components/ProgressBar.tsx b/apps/readest-app/src/app/reader/components/ProgressBar.tsx index 43f4a4244..64e3538c8 100644 --- a/apps/readest-app/src/app/reader/components/ProgressBar.tsx +++ b/apps/readest-app/src/app/reader/components/ProgressBar.tsx @@ -5,7 +5,7 @@ import type { Insets } from '@/types/misc'; import { useEnv } from '@/context/EnvContext'; import { useReaderStore } from '@/store/readerStore'; import { useThemeStore } from '@/store/themeStore'; -import { useBookProgress } from '@/store/readerProgressStore'; +import { useBookProgress, usePagePreview } from '@/store/readerProgressStore'; import { useTranslation } from '@/hooks/useTranslation'; import { useBookDataStore } from '@/store/bookDataStore'; import { @@ -106,8 +106,11 @@ const ProgressBar: React.FC = ({ const bookData = getBookData(bookKey); const viewSettings = getViewSettings(bookKey)!; // Reactive: this is the on-screen footer that has to refresh on every - // page turn. Reads from readerProgressStore only. - const progress = useBookProgress(bookKey); + // page turn. Reads from readerProgressStore only: the reading position, or + // the page a native turn is capturing under its cover. + const preview = usePagePreview(bookKey); + const liveProgress = useBookProgress(bookKey); + const progress = preview?.progress ?? liveProgress; const { section, pageinfo } = progress || {}; const showDoubleBorder = viewSettings.vertical && viewSettings.doubleBorder; @@ -135,7 +138,7 @@ const ProgressBar: React.FC = ({ // same pages (screenPages.ts). Fixed layout keeps its real page pairs, // scrolled mode has no spreads, and formats without section sizes keep the // byte-grid pair. - const { page: current = 0, pages: total = 0 } = view?.renderer || {}; + const { page: current = 0, pages: total = 0 } = preview ?? view?.renderer ?? {}; const sectionFractions = view?.getSectionFractions() ?? []; const sectionIndex = section?.current ?? 0; const sections = bookData?.bookDoc?.sections; @@ -143,7 +146,7 @@ const ProgressBar: React.FC = ({ // re-renders the pair. useSyncExternalStore(subscribeChapterScreens, getChapterScreensVersion); const calibratedPair = usesScreenPages(viewSettings, bookData?.isFixedLayout, sections) - ? getScreenPageInfo(bookKey, view, sections!, progress) + ? getScreenPageInfo(bookKey, view, sections!, progress, preview ?? view?.renderer) : null; const referenceInfo = readingProgressStyle === 'reference' diff --git a/apps/readest-app/src/app/reader/components/SectionInfo.tsx b/apps/readest-app/src/app/reader/components/SectionInfo.tsx index 203c299cb..4527f688c 100644 --- a/apps/readest-app/src/app/reader/components/SectionInfo.tsx +++ b/apps/readest-app/src/app/reader/components/SectionInfo.tsx @@ -4,7 +4,7 @@ import { Insets } from '@/types/misc'; import { useEnv } from '@/context/EnvContext'; import { useThemeStore } from '@/store/themeStore'; import { useReaderStore } from '@/store/readerStore'; -import { useBookProgressValue } from '@/store/readerProgressStore'; +import { useBookProgressValue, usePagePreview } from '@/store/readerProgressStore'; import { useTranslation } from '@/hooks/useTranslation'; import { eventDispatcher } from '@/utils/event'; import { @@ -51,7 +51,10 @@ const SectionInfo: React.FC = ({ const _ = useTranslation(); const { appService } = useEnv(); // Subscribed here, not in the cell: a turn into the next section re-renders the title alone. - const section = useBookProgressValue(bookKey, (p) => p.sectionLabel); + const liveSection = useBookProgressValue(bookKey, (p) => p.sectionLabel); + // The page a native turn is capturing under its cover, as in ProgressBar. + const preview = usePagePreview(bookKey); + const section = preview ? preview.progress.sectionLabel : liveSection; const { hoveredBookKey, getView, getViewSettings, setHoveredBookKey } = useReaderStore(); const { systemUIVisible, statusBarHeight, isIPhoneDuo } = useThemeStore(); const getBookData = useBookDataStore((s) => s.getBookData); diff --git a/apps/readest-app/src/app/reader/hooks/useCapturedTurn.ts b/apps/readest-app/src/app/reader/hooks/useCapturedTurn.ts index 2b5915727..6a61eea78 100644 --- a/apps/readest-app/src/app/reader/hooks/useCapturedTurn.ts +++ b/apps/readest-app/src/app/reader/hooks/useCapturedTurn.ts @@ -428,8 +428,9 @@ export const useCapturedTurn = (bookKey: string, viewRef: React.RefObject - // Buffered EPUB sheets exclude app chrome: page counters and controls - // stay live, rather than caching the current page's counter on a neighbour. + // Buffered EPUB sheets take the renderer box. The running header and + // footer paint inside it, so while a neighbour is captured they show + // that page (the page preview in FoliateViewer, #8068). bufferedPagesEnabled() ? view.renderer.getBoundingClientRect() : (document.getElementById(`gridcell-${bookKey}`)?.getBoundingClientRect() ?? null), diff --git a/apps/readest-app/src/app/reader/hooks/useFoliateEvents.ts b/apps/readest-app/src/app/reader/hooks/useFoliateEvents.ts index c18abed4a..8fe140f69 100644 --- a/apps/readest-app/src/app/reader/hooks/useFoliateEvents.ts +++ b/apps/readest-app/src/app/reader/hooks/useFoliateEvents.ts @@ -5,6 +5,7 @@ type FoliateEventHandler = { onLoad?: (event: Event) => void; onStabilized?: (event: Event) => void; onRelocate?: (event: Event) => void; + onPreview?: (event: Event) => void; onLinkClick?: (event: Event) => void; onRendererRelocate?: (event: Event) => void; onCreateOverlay?: (event: Event) => void; @@ -18,6 +19,7 @@ export const useFoliateEvents = (view: FoliateView | null, handlers?: FoliateEve const onLoad = handlers?.onLoad; const onStabilized = handlers?.onStabilized; const onRelocate = handlers?.onRelocate; + const onPreview = handlers?.onPreview; const onLinkClick = handlers?.onLinkClick; const onRendererRelocate = handlers?.onRendererRelocate; const onCreateOverlay = handlers?.onCreateOverlay; @@ -31,6 +33,7 @@ export const useFoliateEvents = (view: FoliateView | null, handlers?: FoliateEve if (onLoad) view.addEventListener('load', onLoad); if (onStabilized) view.renderer.addEventListener('stabilized', onStabilized); if (onRelocate) view.addEventListener('relocate', onRelocate); + if (onPreview) view.addEventListener('preview', onPreview); if (onLinkClick) view.addEventListener('link', onLinkClick); if (onRendererRelocate) view.renderer.addEventListener('relocate', onRendererRelocate); if (onCreateOverlay) view.addEventListener('create-overlay', onCreateOverlay); @@ -43,6 +46,7 @@ export const useFoliateEvents = (view: FoliateView | null, handlers?: FoliateEve if (onLoad) view.removeEventListener('load', onLoad); if (onStabilized) view.renderer.removeEventListener('stabilized', onStabilized); if (onRelocate) view.removeEventListener('relocate', onRelocate); + if (onPreview) view.removeEventListener('preview', onPreview); if (onLinkClick) view.removeEventListener('link', onLinkClick); if (onRendererRelocate) view.renderer.removeEventListener('relocate', onRendererRelocate); if (onCreateOverlay) view.removeEventListener('create-overlay', onCreateOverlay); diff --git a/apps/readest-app/src/app/reader/utils/screenPages.ts b/apps/readest-app/src/app/reader/utils/screenPages.ts index 533c8b6fe..b594d03cc 100644 --- a/apps/readest-app/src/app/reader/utils/screenPages.ts +++ b/apps/readest-app/src/app/reader/utils/screenPages.ts @@ -37,6 +37,8 @@ export const getScreenPageInfo = ( view: FoliateView | null | undefined, sections: CalibratedSectionSource[], progress: BookProgress | null | undefined, + // The page on screen: the renderer's, or the page a native turn previews. + screen: { page: number; atEnd?: boolean } | undefined = view?.renderer, ): PageInfo => { const spine = progress?.section?.current ?? 0; const sectionFractions = view?.getSectionFractions() ?? []; @@ -48,14 +50,14 @@ export const getScreenPageInfo = ( bookKey, sections, spine, - view?.renderer?.page ?? 0, + screen?.page ?? 0, (sections[spine]?.size ?? 0) > CHUNKED_SECTION_THRESHOLD, chapterFraction, ); // At two columns a short last chapter can share the last screen with the // one before, and only the first is the screen's primary chapter: the last // screen still reads total / total, as the byte-grid pair does. - const current = view?.renderer?.atEnd ? pair.total - 1 : pair.current; + const current = screen?.atEnd ? pair.total - 1 : pair.current; return { current, next: current, total: pair.total }; }; diff --git a/apps/readest-app/src/store/readerProgressStore.ts b/apps/readest-app/src/store/readerProgressStore.ts index 4f53591e5..adc59e4b2 100644 --- a/apps/readest-app/src/store/readerProgressStore.ts +++ b/apps/readest-app/src/store/readerProgressStore.ts @@ -1,6 +1,20 @@ import { create } from 'zustand'; import { BookProgress } from '@/types/book'; +/** + * A page a native page turn paints under its cover to capture it (paginator + * `previewPage`). The capture takes in the running header and footer + * (#8068), so while it is set they show this page, not the reading position. + * Display only: nothing takes it as reading progress. + */ +export interface PagePreview { + progress: BookProgress; + // The renderer's page, pages and atEnd once on this page. + page: number; + pages: number; + atEnd: boolean; +} + /** * Per-book reading progress, kept in its own store so that high-frequency * `setProgress` writes (fired once per page turn / scroll snap) do not @@ -55,10 +69,12 @@ import { BookProgress } from '@/types/book'; interface ReaderProgressState { // Keyed by book view key (matches readerStore.viewStates keys). progresses: { [key: string]: BookProgress | null }; + previews: { [key: string]: PagePreview | null }; } export const useReaderProgressStore = create(() => ({ progresses: {}, + previews: {}, })); /** @@ -90,13 +106,26 @@ export const setBookProgress = (key: string, progress: BookProgress | null) => { */ export const clearBookProgress = (key: string) => { useReaderProgressStore.setState((state) => { - if (!(key in state.progresses)) return state; - const next = { ...state.progresses }; - delete next[key]; - return { progresses: next }; + if (!(key in state.progresses) && !(key in state.previews)) return state; + const progresses = { ...state.progresses }; + const previews = { ...state.previews }; + delete progresses[key]; + delete previews[key]; + return { progresses, previews }; }); }; +export const setPagePreview = (key: string, preview: PagePreview | null) => { + useReaderProgressStore.setState((state) => + (state.previews[key] ?? null) === preview + ? state + : { previews: { ...state.previews, [key]: preview } }, + ); +}; + +export const usePagePreview = (key: string): PagePreview | null => + useReaderProgressStore((s) => s.previews[key] ?? null); + /** * Reactive subscription — components that need to re-render when this * specific book's progress changes should use this hook. Selector form diff --git a/packages/foliate-js b/packages/foliate-js index 4282f94c6..fb174ec01 160000 --- a/packages/foliate-js +++ b/packages/foliate-js @@ -1 +1 @@ -Subproject commit 4282f94c61c05c292edeec7551f7e1f234c72e15 +Subproject commit fb174ec01c5aeed7caeaabfcb34f65de438cbce0 From c3f9dc73aebd0c12dcab5e5744b01537bf36c78d Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 29 Nov 2026 01:30:10 +0800 Subject: [PATCH 6/7] fix(xray): wait out an Android freeze, and name a stalled AI reply (#8013) (#8077) On Android, X-Ray failed with "Failed to process successful response". That is the AI SDK's wording for X-Ray's own idle abort, which fires when a reply goes 60 s without a chunk (5 min before the first). Tauri's HTTP plugin ends an aborted body with the string "Request cancelled" instead of an AbortError, so the SDK wraps it as a failed response. Android freezes an app in the background, and its timers fire late once it thaws. On an Android 17 emulator, freezing the app and its WebView for 90 s mid-reply made the idle timer fire 6 s after the thaw, while the server was still streaming. A timer that fires more than 10 s late now waits again instead of aborting. A real stall reads "The AI provider stopped responding.", translated in all 34 locales. Verification: - Fails without the fix, in xray.test.ts: - "says a server gone silent stopped responding" rejected with "Failed to process successful response". - "waits again for a reply once the app is back from a freeze" saw the request aborted 31 s after a 90 s clock jump. Both pass with the fix, as do all 26 X-Ray tests. - pnpm lint and pnpm format:check pass, on the change rebased onto main. - Android 17 emulator, debug APK, Alice in Wonderland, stub OpenAI-compatible server: - The app and its WebView frozen for 90 s mid-reply, the reply streamed 4 characters every 2 s: on main the request was closed 6 s after the thaw and X-Ray showed "Failed to process successful response". With the fix both batch requests finished 25 s after the thaw and the X-Ray tab listed the character. - A reply that drops after two chunks: on main "Failed to process successful response" a minute later. With the fix "The AI provider stopped responding." Not run: the reporter's own AI provider. Reported by cpuks on GitHub. Co-authored-by: Claude Opus 5.5 --- .../public/locales/ar/translation.json | 3 +- .../public/locales/bn/translation.json | 3 +- .../public/locales/bo/translation.json | 3 +- .../public/locales/de/translation.json | 3 +- .../public/locales/el/translation.json | 3 +- .../public/locales/es/translation.json | 3 +- .../public/locales/fa/translation.json | 3 +- .../public/locales/fr/translation.json | 3 +- .../public/locales/he/translation.json | 3 +- .../public/locales/hi/translation.json | 3 +- .../public/locales/hu/translation.json | 3 +- .../public/locales/id/translation.json | 3 +- .../public/locales/it/translation.json | 3 +- .../public/locales/ja/translation.json | 3 +- .../public/locales/ka/translation.json | 3 +- .../public/locales/ko/translation.json | 3 +- .../public/locales/ms/translation.json | 3 +- .../public/locales/nl/translation.json | 3 +- .../public/locales/pl/translation.json | 3 +- .../public/locales/pt-BR/translation.json | 3 +- .../public/locales/pt/translation.json | 3 +- .../public/locales/ro/translation.json | 3 +- .../public/locales/ru/translation.json | 3 +- .../public/locales/si/translation.json | 3 +- .../public/locales/sl/translation.json | 3 +- .../public/locales/sv/translation.json | 3 +- .../public/locales/ta/translation.json | 3 +- .../public/locales/th/translation.json | 3 +- .../public/locales/tr/translation.json | 3 +- .../public/locales/uk/translation.json | 3 +- .../public/locales/uz/translation.json | 3 +- .../public/locales/vi/translation.json | 3 +- .../public/locales/zh-CN/translation.json | 3 +- .../public/locales/zh-TW/translation.json | 3 +- .../src/__tests__/services/xray/xray.test.ts | 45 +++++++++++++++++++ apps/readest-app/src/services/xray/extract.ts | 27 +++++++++-- 36 files changed, 136 insertions(+), 38 deletions(-) diff --git a/apps/readest-app/public/locales/ar/translation.json b/apps/readest-app/public/locales/ar/translation.json index 49f6e0d0f..19a584eff 100644 --- a/apps/readest-app/public/locales/ar/translation.json +++ b/apps/readest-app/public/locales/ar/translation.json @@ -3390,5 +3390,6 @@ "Highlight Current Paragraph": "تمييز الفقرة الحالية", "Highlight Button": "زر التمييز", "Export to Anki puts this dictionary's entry on the back of each card": "يضع التصدير إلى Anki مدخل هذا القاموس على ظهر كل بطاقة", - "Looking up dictionary entries ({{done}}/{{total}})…": "جارٍ البحث عن مداخل القاموس ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "جارٍ البحث عن مداخل القاموس ({{done}}/{{total}})…", + "The AI provider stopped responding.": "توقف مزود الذكاء الاصطناعي عن الاستجابة." } diff --git a/apps/readest-app/public/locales/bn/translation.json b/apps/readest-app/public/locales/bn/translation.json index fc1411072..2e4478b41 100644 --- a/apps/readest-app/public/locales/bn/translation.json +++ b/apps/readest-app/public/locales/bn/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "বর্তমান অনুচ্ছেদ হাইলাইট করুন", "Highlight Button": "হাইলাইট বোতাম", "Export to Anki puts this dictionary's entry on the back of each card": "Anki-তে রপ্তানি প্রতিটি কার্ডের পেছনে এই অভিধানের ভুক্তি যোগ করে", - "Looking up dictionary entries ({{done}}/{{total}})…": "অভিধানের ভুক্তি খোঁজা হচ্ছে ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "অভিধানের ভুক্তি খোঁজা হচ্ছে ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI প্রদানকারী সাড়া দেওয়া বন্ধ করেছে।" } diff --git a/apps/readest-app/public/locales/bo/translation.json b/apps/readest-app/public/locales/bo/translation.json index 004540fed..20a08b493 100644 --- a/apps/readest-app/public/locales/bo/translation.json +++ b/apps/readest-app/public/locales/bo/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "ད་ལྟའི་དོན་ཚན་ལ་འོག་ཐིག་གཏོང་།", "Highlight Button": "འོག་ཐིག་གི་མཐེབ་གནོན།", "Export to Anki puts this dictionary's entry on the back of each card": "Anki ལ་ཕྱིར་འདྲེན་གྱིས་ཤོག་བྱང་རེ་རེའི་རྒྱབ་ངོས་སུ་ཚིག་མཛོད་འདིའི་འགྲེལ་བཤད་འཇོག", - "Looking up dictionary entries ({{done}}/{{total}})…": "ཚིག་མཛོད་ཀྱི་འགྲེལ་བཤད་འཚོལ་བཞིན་པ། ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "ཚིག་མཛོད་ཀྱི་འགྲེལ་བཤད་འཚོལ་བཞིན་པ། ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI མཁོ་སྤྲོད་པས་ལན་འདེབས་མཚམས་བཞག་སོང་།" } diff --git a/apps/readest-app/public/locales/de/translation.json b/apps/readest-app/public/locales/de/translation.json index 4aa767efe..ef6926fd1 100644 --- a/apps/readest-app/public/locales/de/translation.json +++ b/apps/readest-app/public/locales/de/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Aktuellen Absatz hervorheben", "Highlight Button": "Hervorheben-Taste", "Export to Anki puts this dictionary's entry on the back of each card": "Der Export nach Anki setzt den Eintrag dieses Wörterbuchs auf die Rückseite jeder Karte", - "Looking up dictionary entries ({{done}}/{{total}})…": "Wörterbucheinträge werden nachgeschlagen ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Wörterbucheinträge werden nachgeschlagen ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Der KI-Anbieter antwortet nicht mehr." } diff --git a/apps/readest-app/public/locales/el/translation.json b/apps/readest-app/public/locales/el/translation.json index e7b34d4fc..5cc2a2135 100644 --- a/apps/readest-app/public/locales/el/translation.json +++ b/apps/readest-app/public/locales/el/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Επισήμανση τρέχουσας παραγράφου", "Highlight Button": "Κουμπί επισήμανσης", "Export to Anki puts this dictionary's entry on the back of each card": "Η εξαγωγή σε Anki βάζει το λήμμα αυτού του λεξικού στο πίσω μέρος κάθε κάρτας", - "Looking up dictionary entries ({{done}}/{{total}})…": "Αναζήτηση λημμάτων λεξικού ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Αναζήτηση λημμάτων λεξικού ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Ο πάροχος AI σταμάτησε να αποκρίνεται." } diff --git a/apps/readest-app/public/locales/es/translation.json b/apps/readest-app/public/locales/es/translation.json index d9122ce70..3af697db0 100644 --- a/apps/readest-app/public/locales/es/translation.json +++ b/apps/readest-app/public/locales/es/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Resaltar el párrafo actual", "Highlight Button": "Botón de resaltar", "Export to Anki puts this dictionary's entry on the back of each card": "Exportar a Anki pone la entrada de este diccionario en el reverso de cada tarjeta", - "Looking up dictionary entries ({{done}}/{{total}})…": "Buscando entradas del diccionario ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Buscando entradas del diccionario ({{done}}/{{total}})…", + "The AI provider stopped responding.": "El proveedor de IA dejó de responder." } diff --git a/apps/readest-app/public/locales/fa/translation.json b/apps/readest-app/public/locales/fa/translation.json index c082ed3a7..179f1a652 100644 --- a/apps/readest-app/public/locales/fa/translation.json +++ b/apps/readest-app/public/locales/fa/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "برجسته‌سازی پاراگراف فعلی", "Highlight Button": "دکمه هایلایت", "Export to Anki puts this dictionary's entry on the back of each card": "خروجی برای Anki مدخل این فرهنگ لغت را پشت هر کارت می‌گذارد", - "Looking up dictionary entries ({{done}}/{{total}})…": "در حال جستجوی مدخل‌های فرهنگ لغت ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "در حال جستجوی مدخل‌های فرهنگ لغت ({{done}}/{{total}})…", + "The AI provider stopped responding.": "ارائه‌دهندهٔ هوش مصنوعی دیگر پاسخ نمی‌دهد." } diff --git a/apps/readest-app/public/locales/fr/translation.json b/apps/readest-app/public/locales/fr/translation.json index 0c278a9a7..c984db58c 100644 --- a/apps/readest-app/public/locales/fr/translation.json +++ b/apps/readest-app/public/locales/fr/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Surligner le paragraphe actuel", "Highlight Button": "Bouton Surligner", "Export to Anki puts this dictionary's entry on the back of each card": "L'exportation vers Anki place l'entrée de ce dictionnaire au verso de chaque carte", - "Looking up dictionary entries ({{done}}/{{total}})…": "Recherche des entrées du dictionnaire ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Recherche des entrées du dictionnaire ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Le fournisseur d'IA ne répond plus." } diff --git a/apps/readest-app/public/locales/he/translation.json b/apps/readest-app/public/locales/he/translation.json index c92fb28ec..db0f7b3b1 100644 --- a/apps/readest-app/public/locales/he/translation.json +++ b/apps/readest-app/public/locales/he/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "הדגשת הפסקה הנוכחית", "Highlight Button": "כפתור הדגשה", "Export to Anki puts this dictionary's entry on the back of each card": "הייצוא ל-Anki מוסיף את הערך של המילון הזה לגב כל כרטיס", - "Looking up dictionary entries ({{done}}/{{total}})…": "מחפש ערכים במילון ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "מחפש ערכים במילון ({{done}}/{{total}})…", + "The AI provider stopped responding.": "ספק ה-AI הפסיק להגיב." } diff --git a/apps/readest-app/public/locales/hi/translation.json b/apps/readest-app/public/locales/hi/translation.json index c11165e8e..712b57d23 100644 --- a/apps/readest-app/public/locales/hi/translation.json +++ b/apps/readest-app/public/locales/hi/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "वर्तमान पैराग्राफ को हाइलाइट करें", "Highlight Button": "हाइलाइट बटन", "Export to Anki puts this dictionary's entry on the back of each card": "Anki में निर्यात हर कार्ड के पीछे इस शब्दकोश की प्रविष्टि जोड़ता है", - "Looking up dictionary entries ({{done}}/{{total}})…": "शब्दकोश की प्रविष्टियाँ खोजी जा रही हैं ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "शब्दकोश की प्रविष्टियाँ खोजी जा रही हैं ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI प्रदाता ने जवाब देना बंद कर दिया।" } diff --git a/apps/readest-app/public/locales/hu/translation.json b/apps/readest-app/public/locales/hu/translation.json index f61febc24..f02991ed4 100644 --- a/apps/readest-app/public/locales/hu/translation.json +++ b/apps/readest-app/public/locales/hu/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Aktuális bekezdés kiemelése", "Highlight Button": "Kiemelés gomb", "Export to Anki puts this dictionary's entry on the back of each card": "Az Ankiba exportálás ennek a szótárnak a szócikkét teszi minden kártya hátoldalára", - "Looking up dictionary entries ({{done}}/{{total}})…": "Szótári szócikkek keresése ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Szótári szócikkek keresése ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Az MI-szolgáltató nem válaszol többé." } diff --git a/apps/readest-app/public/locales/id/translation.json b/apps/readest-app/public/locales/id/translation.json index ec9baf2fa..0a3719e8d 100644 --- a/apps/readest-app/public/locales/id/translation.json +++ b/apps/readest-app/public/locales/id/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "Sorot paragraf saat ini", "Highlight Button": "Tombol sorot", "Export to Anki puts this dictionary's entry on the back of each card": "Ekspor ke Anki menaruh entri kamus ini di balik setiap kartu", - "Looking up dictionary entries ({{done}}/{{total}})…": "Mencari entri kamus ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Mencari entri kamus ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Penyedia AI berhenti merespons." } diff --git a/apps/readest-app/public/locales/it/translation.json b/apps/readest-app/public/locales/it/translation.json index e399ea15b..b9a27df96 100644 --- a/apps/readest-app/public/locales/it/translation.json +++ b/apps/readest-app/public/locales/it/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Evidenzia il paragrafo corrente", "Highlight Button": "Pulsante Evidenzia", "Export to Anki puts this dictionary's entry on the back of each card": "L'esportazione in Anki mette la voce di questo dizionario sul retro di ogni scheda", - "Looking up dictionary entries ({{done}}/{{total}})…": "Ricerca delle voci del dizionario ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Ricerca delle voci del dizionario ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Il fornitore di IA ha smesso di rispondere." } diff --git a/apps/readest-app/public/locales/ja/translation.json b/apps/readest-app/public/locales/ja/translation.json index 17576b295..4e08c2c3b 100644 --- a/apps/readest-app/public/locales/ja/translation.json +++ b/apps/readest-app/public/locales/ja/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "現在の段落をハイライト", "Highlight Button": "ハイライトボタン", "Export to Anki puts this dictionary's entry on the back of each card": "Anki へのエクスポートで、この辞書の項目を各カードの裏面に追加します", - "Looking up dictionary entries ({{done}}/{{total}})…": "辞書の項目を検索中 ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "辞書の項目を検索中 ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AIプロバイダーからの応答が途絶えました。" } diff --git a/apps/readest-app/public/locales/ka/translation.json b/apps/readest-app/public/locales/ka/translation.json index 084ad1be6..885860483 100644 --- a/apps/readest-app/public/locales/ka/translation.json +++ b/apps/readest-app/public/locales/ka/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "მიმდინარე აბზაცის მარკირება", "Highlight Button": "მარკირების ღილაკი", "Export to Anki puts this dictionary's entry on the back of each card": "Anki-ში ექსპორტი ამ ლექსიკონის სტატიას თითოეული ბარათის უკანა მხარეს ათავსებს", - "Looking up dictionary entries ({{done}}/{{total}})…": "ლექსიკონის სტატიების ძიება ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "ლექსიკონის სტატიების ძიება ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI პროვაიდერმა პასუხის გაცემა შეწყვიტა." } diff --git a/apps/readest-app/public/locales/ko/translation.json b/apps/readest-app/public/locales/ko/translation.json index 5810603b3..ab3373caa 100644 --- a/apps/readest-app/public/locales/ko/translation.json +++ b/apps/readest-app/public/locales/ko/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "현재 단락 강조", "Highlight Button": "하이라이트 버튼", "Export to Anki puts this dictionary's entry on the back of each card": "Anki로 내보내면 이 사전의 항목을 각 카드 뒷면에 넣습니다", - "Looking up dictionary entries ({{done}}/{{total}})…": "사전 항목 찾는 중 ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "사전 항목 찾는 중 ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI 제공처가 응답을 멈췄습니다." } diff --git a/apps/readest-app/public/locales/ms/translation.json b/apps/readest-app/public/locales/ms/translation.json index e491fcb9d..6482dead0 100644 --- a/apps/readest-app/public/locales/ms/translation.json +++ b/apps/readest-app/public/locales/ms/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "Serlahkan perenggan semasa", "Highlight Button": "Butang tonjolkan", "Export to Anki puts this dictionary's entry on the back of each card": "Eksport ke Anki meletakkan entri kamus ini di belakang setiap kad", - "Looking up dictionary entries ({{done}}/{{total}})…": "Mencari entri kamus ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Mencari entri kamus ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Penyedia AI berhenti memberi respons." } diff --git a/apps/readest-app/public/locales/nl/translation.json b/apps/readest-app/public/locales/nl/translation.json index ff480875f..b84959d46 100644 --- a/apps/readest-app/public/locales/nl/translation.json +++ b/apps/readest-app/public/locales/nl/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Huidige alinea markeren", "Highlight Button": "Markeerknop", "Export to Anki puts this dictionary's entry on the back of each card": "Exporteren naar Anki zet het lemma uit dit woordenboek op de achterkant van elke kaart", - "Looking up dictionary entries ({{done}}/{{total}})…": "Woordenboeklemma's opzoeken ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Woordenboeklemma's opzoeken ({{done}}/{{total}})…", + "The AI provider stopped responding.": "De AI-provider reageert niet meer." } diff --git a/apps/readest-app/public/locales/pl/translation.json b/apps/readest-app/public/locales/pl/translation.json index e9a8847dd..405f5cd77 100644 --- a/apps/readest-app/public/locales/pl/translation.json +++ b/apps/readest-app/public/locales/pl/translation.json @@ -3232,5 +3232,6 @@ "Highlight Current Paragraph": "Podświetl bieżący akapit", "Highlight Button": "Przycisk zaznaczania", "Export to Anki puts this dictionary's entry on the back of each card": "Eksport do Anki umieszcza hasło z tego słownika na odwrocie każdej karty", - "Looking up dictionary entries ({{done}}/{{total}})…": "Wyszukiwanie haseł w słowniku ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Wyszukiwanie haseł w słowniku ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Dostawca AI przestał odpowiadać." } diff --git a/apps/readest-app/public/locales/pt-BR/translation.json b/apps/readest-app/public/locales/pt-BR/translation.json index c4652be8a..45e76715d 100644 --- a/apps/readest-app/public/locales/pt-BR/translation.json +++ b/apps/readest-app/public/locales/pt-BR/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Destacar o parágrafo atual", "Highlight Button": "Botão de destaque", "Export to Anki puts this dictionary's entry on the back of each card": "A exportação para o Anki coloca o verbete deste dicionário no verso de cada cartão", - "Looking up dictionary entries ({{done}}/{{total}})…": "Buscando verbetes do dicionário ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Buscando verbetes do dicionário ({{done}}/{{total}})…", + "The AI provider stopped responding.": "O provedor de IA parou de responder." } diff --git a/apps/readest-app/public/locales/pt/translation.json b/apps/readest-app/public/locales/pt/translation.json index a5890c171..bc6001bd5 100644 --- a/apps/readest-app/public/locales/pt/translation.json +++ b/apps/readest-app/public/locales/pt/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Destacar o parágrafo atual", "Highlight Button": "Botão de destaque", "Export to Anki puts this dictionary's entry on the back of each card": "A exportação para o Anki coloca a entrada deste dicionário no verso de cada cartão", - "Looking up dictionary entries ({{done}}/{{total}})…": "A procurar entradas do dicionário ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "A procurar entradas do dicionário ({{done}}/{{total}})…", + "The AI provider stopped responding.": "O fornecedor de IA deixou de responder." } diff --git a/apps/readest-app/public/locales/ro/translation.json b/apps/readest-app/public/locales/ro/translation.json index 500bf6564..5616cf3b9 100644 --- a/apps/readest-app/public/locales/ro/translation.json +++ b/apps/readest-app/public/locales/ro/translation.json @@ -3153,5 +3153,6 @@ "Highlight Current Paragraph": "Evidențiază paragraful curent", "Highlight Button": "Butonul de evidențiere", "Export to Anki puts this dictionary's entry on the back of each card": "Exportul în Anki pune intrarea din acest dicționar pe spatele fiecărui card", - "Looking up dictionary entries ({{done}}/{{total}})…": "Se caută intrările din dicționar ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Se caută intrările din dicționar ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Furnizorul de IA nu mai răspunde." } diff --git a/apps/readest-app/public/locales/ru/translation.json b/apps/readest-app/public/locales/ru/translation.json index 87185c555..56b7da3d5 100644 --- a/apps/readest-app/public/locales/ru/translation.json +++ b/apps/readest-app/public/locales/ru/translation.json @@ -3232,5 +3232,6 @@ "Highlight Current Paragraph": "Выделять текущий абзац", "Highlight Button": "Кнопка выделения", "Export to Anki puts this dictionary's entry on the back of each card": "Экспорт в Anki добавляет статью из этого словаря на обратную сторону каждой карточки", - "Looking up dictionary entries ({{done}}/{{total}})…": "Поиск словарных статей ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Поиск словарных статей ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Провайдер ИИ перестал отвечать." } diff --git a/apps/readest-app/public/locales/si/translation.json b/apps/readest-app/public/locales/si/translation.json index 6afc4442a..01156b4e0 100644 --- a/apps/readest-app/public/locales/si/translation.json +++ b/apps/readest-app/public/locales/si/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "වර්තමාන ඡේදය ඉස්මතු කරන්න", "Highlight Button": "ඉස්මතු කිරීමේ බොත්තම", "Export to Anki puts this dictionary's entry on the back of each card": "Anki වෙත නිර්යාතය එක් එක් කාඩ්පතේ පිටුපසට මෙම ශබ්දකෝෂයේ ඇතුළත් කිරීම එක් කරයි", - "Looking up dictionary entries ({{done}}/{{total}})…": "ශබ්දකෝෂ ඇතුළත් කිරීම් සොයමින් ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "ශබ්දකෝෂ ඇතුළත් කිරීම් සොයමින් ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI සපයන්නා ප්‍රතිචාර දැක්වීම නැවැත්වීය." } diff --git a/apps/readest-app/public/locales/sl/translation.json b/apps/readest-app/public/locales/sl/translation.json index d19b3b1f7..8760e531d 100644 --- a/apps/readest-app/public/locales/sl/translation.json +++ b/apps/readest-app/public/locales/sl/translation.json @@ -3232,5 +3232,6 @@ "Highlight Current Paragraph": "Označi trenutni odstavek", "Highlight Button": "Gumb za označevanje", "Export to Anki puts this dictionary's entry on the back of each card": "Izvoz v Anki doda geslo iz tega slovarja na hrbtno stran vsake kartice", - "Looking up dictionary entries ({{done}}/{{total}})…": "Iskanje slovarskih gesel ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Iskanje slovarskih gesel ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Ponudnik UI se je nehal odzivati." } diff --git a/apps/readest-app/public/locales/sv/translation.json b/apps/readest-app/public/locales/sv/translation.json index 283e3adb2..f709b7c7b 100644 --- a/apps/readest-app/public/locales/sv/translation.json +++ b/apps/readest-app/public/locales/sv/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Markera aktuellt stycke", "Highlight Button": "Markeringsknapp", "Export to Anki puts this dictionary's entry on the back of each card": "Export till Anki lägger den här ordbokens uppslag på baksidan av varje kort", - "Looking up dictionary entries ({{done}}/{{total}})…": "Slår upp ordboksuppslag ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Slår upp ordboksuppslag ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI-leverantören slutade svara." } diff --git a/apps/readest-app/public/locales/ta/translation.json b/apps/readest-app/public/locales/ta/translation.json index 742243b8d..af74e786a 100644 --- a/apps/readest-app/public/locales/ta/translation.json +++ b/apps/readest-app/public/locales/ta/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "தற்போதைய பத்தியை தனிப்படுத்து", "Highlight Button": "முத்திரை பொத்தான்", "Export to Anki puts this dictionary's entry on the back of each card": "Anki-க்கு ஏற்றுமதி ஒவ்வொரு அட்டையின் பின்புறத்திலும் இந்த அகராதியின் பதிவைச் சேர்க்கிறது", - "Looking up dictionary entries ({{done}}/{{total}})…": "அகராதிப் பதிவுகளைத் தேடுகிறது ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "அகராதிப் பதிவுகளைத் தேடுகிறது ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI வழங்குநர் பதிலளிப்பதை நிறுத்திவிட்டது." } diff --git a/apps/readest-app/public/locales/th/translation.json b/apps/readest-app/public/locales/th/translation.json index d9d52823d..acf80cbd7 100644 --- a/apps/readest-app/public/locales/th/translation.json +++ b/apps/readest-app/public/locales/th/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "ไฮไลต์ย่อหน้าปัจจุบัน", "Highlight Button": "ปุ่มไฮไลต์", "Export to Anki puts this dictionary's entry on the back of each card": "การส่งออกไปยัง Anki จะใส่คำอธิบายจากพจนานุกรมนี้ไว้ด้านหลังการ์ดแต่ละใบ", - "Looking up dictionary entries ({{done}}/{{total}})…": "กำลังค้นหาคำอธิบายในพจนานุกรม ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "กำลังค้นหาคำอธิบายในพจนานุกรม ({{done}}/{{total}})…", + "The AI provider stopped responding.": "ผู้ให้บริการ AI หยุดตอบสนอง" } diff --git a/apps/readest-app/public/locales/tr/translation.json b/apps/readest-app/public/locales/tr/translation.json index 86b3f1e19..4354be968 100644 --- a/apps/readest-app/public/locales/tr/translation.json +++ b/apps/readest-app/public/locales/tr/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Geçerli paragrafı vurgula", "Highlight Button": "Vurgulama düğmesi", "Export to Anki puts this dictionary's entry on the back of each card": "Anki’ye aktarma, bu sözlüğün maddesini her kartın arka yüzüne koyar", - "Looking up dictionary entries ({{done}}/{{total}})…": "Sözlük maddeleri aranıyor ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Sözlük maddeleri aranıyor ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Yapay zekâ sağlayıcısı yanıt vermeyi bıraktı." } diff --git a/apps/readest-app/public/locales/uk/translation.json b/apps/readest-app/public/locales/uk/translation.json index 10b0e0734..685f59498 100644 --- a/apps/readest-app/public/locales/uk/translation.json +++ b/apps/readest-app/public/locales/uk/translation.json @@ -3232,5 +3232,6 @@ "Highlight Current Paragraph": "Виділяти поточний абзац", "Highlight Button": "Кнопка виділення", "Export to Anki puts this dictionary's entry on the back of each card": "Експорт в Anki додає статтю з цього словника на зворот кожної картки", - "Looking up dictionary entries ({{done}}/{{total}})…": "Пошук словникових статей ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Пошук словникових статей ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Постачальник ШІ перестав відповідати." } diff --git a/apps/readest-app/public/locales/uz/translation.json b/apps/readest-app/public/locales/uz/translation.json index 617aee6af..c21a6292b 100644 --- a/apps/readest-app/public/locales/uz/translation.json +++ b/apps/readest-app/public/locales/uz/translation.json @@ -3074,5 +3074,6 @@ "Highlight Current Paragraph": "Joriy xatboshini ajratib ko'rsatish", "Highlight Button": "Belgilash tugmasi", "Export to Anki puts this dictionary's entry on the back of each card": "Anki’ga eksport har bir kartaning orqa tomoniga ushbu lug'at maqolasini qo'yadi", - "Looking up dictionary entries ({{done}}/{{total}})…": "Lug'at maqolalari qidirilmoqda ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Lug'at maqolalari qidirilmoqda ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI provayderi javob berishni toʻxtatdi." } diff --git a/apps/readest-app/public/locales/vi/translation.json b/apps/readest-app/public/locales/vi/translation.json index 7bef4d14d..8ba06cc5c 100644 --- a/apps/readest-app/public/locales/vi/translation.json +++ b/apps/readest-app/public/locales/vi/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "Tô sáng đoạn hiện tại", "Highlight Button": "Nút đánh dấu", "Export to Anki puts this dictionary's entry on the back of each card": "Xuất sang Anki sẽ đặt mục từ của từ điển này ở mặt sau mỗi thẻ", - "Looking up dictionary entries ({{done}}/{{total}})…": "Đang tra mục từ trong từ điển ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "Đang tra mục từ trong từ điển ({{done}}/{{total}})…", + "The AI provider stopped responding.": "Nhà cung cấp AI đã ngừng phản hồi." } diff --git a/apps/readest-app/public/locales/zh-CN/translation.json b/apps/readest-app/public/locales/zh-CN/translation.json index 7a8607b2a..ff50339fd 100644 --- a/apps/readest-app/public/locales/zh-CN/translation.json +++ b/apps/readest-app/public/locales/zh-CN/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "高亮当前段落", "Highlight Button": "划线按钮", "Export to Anki puts this dictionary's entry on the back of each card": "导出到 Anki 时,会把此词典的词条放到每张卡片的背面", - "Looking up dictionary entries ({{done}}/{{total}})…": "正在查询词典词条 ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "正在查询词典词条 ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI 服务商已停止响应。" } diff --git a/apps/readest-app/public/locales/zh-TW/translation.json b/apps/readest-app/public/locales/zh-TW/translation.json index 5a66ff168..4f65a43d2 100644 --- a/apps/readest-app/public/locales/zh-TW/translation.json +++ b/apps/readest-app/public/locales/zh-TW/translation.json @@ -2995,5 +2995,6 @@ "Highlight Current Paragraph": "醒目標示目前段落", "Highlight Button": "劃線按鈕", "Export to Anki puts this dictionary's entry on the back of each card": "匯出到 Anki 時,會把此辭典的詞條放到每張卡片的背面", - "Looking up dictionary entries ({{done}}/{{total}})…": "正在查詢辭典詞條 ({{done}}/{{total}})…" + "Looking up dictionary entries ({{done}}/{{total}})…": "正在查詢辭典詞條 ({{done}}/{{total}})…", + "The AI provider stopped responding.": "AI 服務商已停止回應。" } diff --git a/apps/readest-app/src/__tests__/services/xray/xray.test.ts b/apps/readest-app/src/__tests__/services/xray/xray.test.ts index 7fdacb3e5..31c6a3be6 100644 --- a/apps/readest-app/src/__tests__/services/xray/xray.test.ts +++ b/apps/readest-app/src/__tests__/services/xray/xray.test.ts @@ -202,6 +202,51 @@ describe('extractXRay', () => { await vi.advanceTimersByTimeAsync(2_000); expect(options.abortSignal.aborted).toBe(true); }); + + const extractOnce = () => + extractXRay( + useCustomTranslatorStore.getState().translators[0]!, + [{ position: 0, text: 'Soon Anna met Boris.', cfiAt: () => '' }], + [], + { bookTitle: 'Sea', bookAuthor: 'A', sourceLang: 'en', targetLang: 'de' }, + new AbortController().signal, + ); + + // #8013: the SDK words that abort as a failed response on Android. + it('says a server gone silent stopped responding', async () => { + vi.useFakeTimers(); + h.generateChatText.mockImplementation((_translator, { abortSignal, onProgress }) => { + onProgress('text-delta'); + return new Promise((_resolve, fail) => + abortSignal.addEventListener('abort', () => + fail(new Error('Failed to process successful response')), + ), + ); + }); + const failed = expect(extractOnce()).rejects.toThrow('The AI provider stopped responding.'); + await vi.advanceTimersByTimeAsync(61_000); + await failed; + }); + + // #8013: Android freezes an app in the background, and the reading of the + // reply with it. Its timers then fire late, with the reply waiting. + it('waits again for a reply once the app is back from a freeze', async () => { + vi.useFakeTimers(); + let options!: { abortSignal: AbortSignal; onProgress: (type: string) => void }; + h.generateChatText.mockImplementation((_translator, sent) => { + options = sent; + return new Promise(() => {}); + }); + void extractOnce().catch(() => {}); + options.onProgress('text-delta'); + await vi.advanceTimersByTimeAsync(30_000); + // Frozen for 90 seconds. + vi.setSystemTime(Date.now() + 90_000); + await vi.advanceTimersByTimeAsync(31_000); + expect(options.abortSignal.aborted).toBe(false); + await vi.advanceTimersByTimeAsync(61_000); + expect(options.abortSignal.aborted).toBe(true); + }); }); describe('XRay', () => { diff --git a/apps/readest-app/src/services/xray/extract.ts b/apps/readest-app/src/services/xray/extract.ts index 9487abdba..ca004f6a8 100644 --- a/apps/readest-app/src/services/xray/extract.ts +++ b/apps/readest-app/src/services/xray/extract.ts @@ -5,6 +5,7 @@ import { stripReasoning, } from '@/services/translators/custom/openaiCompatible'; import type { CustomTranslator } from '@/types/translation'; +import { stubTranslation as _ } from '@/utils/misc'; import type { XRayPassage } from './bookText'; import { XRAY_ENTITY_TYPES, type XRayData, type XRayEntityType, type XRayQuote } from './types'; @@ -12,6 +13,8 @@ import { XRAY_ENTITY_TYPES, type XRayData, type XRayEntityType, type XRayQuote } // waiting, with nothing streamed, until their turn. const FIRST_REPLY_TIMEOUT_MS = 300_000; const IDLE_TIMEOUT_MS = 60_000; +// A timer this late found the app frozen in the background (#8013). +const FROZEN_MS = 10_000; const QUOTES = '"quotes": [{"passage": 0, "text": ""}]'; const XRAY_PROMPT = `You build a spoiler-free X-Ray of the book "{{bookTitle}}" by {{bookAuthor}} for its reader. @@ -112,7 +115,21 @@ const ask = async ( // signal of a finished request fires (see openaiCompatible.ts). const controller = new AbortController(); const abort = () => controller.abort(); - let timer = setTimeout(abort, FIRST_REPLY_TIMEOUT_MS); + let silent = false; + let timer: ReturnType | undefined; + // Android freezes an app in the background, and the reading of its reply + // with it: the reply may be waiting when the timer fires late, so it waits + // again then. + const wait = (ms: number) => { + clearTimeout(timer); + const due = Date.now() + ms; + timer = setTimeout(() => { + if (Date.now() - due > FROZEN_MS) return wait(ms); + silent = true; + abort(); + }, ms); + }; + wait(FIRST_REPLY_TIMEOUT_MS); signal.addEventListener('abort', abort, { once: true }); try { const text = await generateChatText(translator, { @@ -126,13 +143,15 @@ const ask = async ( onText: () => {}, onProgress: (type) => { // The SDK starts its stream before the server takes the request. - if (type === 'start') return; - clearTimeout(timer); - timer = setTimeout(abort, IDLE_TIMEOUT_MS); + if (type !== 'start') wait(IDLE_TIMEOUT_MS); }, }); signal.throwIfAborted(); return text; + } catch (err) { + // The SDK words this abort as a failed response or an aborted signal. + if (silent) throw new Error(_('The AI provider stopped responding.')); + throw err; } finally { clearTimeout(timer); signal.removeEventListener('abort', abort); From d745a8be2684fdb648dd2f05f98491406051c6a5 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sun, 29 Nov 2026 01:32:27 +0800 Subject: [PATCH 7/7] fix(reader): wrap selection toolbar tools onto more rows (#8013) (#8078) The selection toolbar lays its 32 px tools in one row up to the popup's maximum width: 335 px on a 360 px phone, room for 9. The rest scrolled sideways with no scrollbar, so a 10th tool such as X-Ray was out of sight. Tools that don't fit now wrap onto rows of even length (10 tools make 2 rows of 5), and the highlight colour strip sits past the last row. A toolbar that fits in one row, or the notes view, is laid out as before. Verification: - Fails without the fix: - annotation-popup-layout.browser.test.tsx, "a toolbar with more tools than fit", in all four placements: "expected 529 to be less than or equal to 500", a tool past the popup's edge. - AnnotatorSafeArea.test.tsx: "expected { width: 300, height: 44 } to deeply equal { width: 220, height: 88, columns: 5 }" for 10 tools. With the fix they pass, as do the annotationToolbar.test.ts cases for getToolbarGrid and the annotator suites (18 files, 172 tests). - pnpm lint and pnpm format:check pass, on the change rebased onto main. - Android 17 emulator, debug APK, 360 dp wide: - 12 tools with X-Ray last: on main nine showed whole and a tenth was clipped. Share and X-Ray were out of sight (the row's scrollWidth 400, clientWidth 333). With the fix: 2 rows of 6, all inside the popup. - 10 tools: 2 rows of 5 in light, dark and e-ink. The X-Ray tool on the second row opened the X-Ray. Not run: a vertical book on the device. The browser test covers all four placements. Reported by cpuks on GitHub. Co-authored-by: Claude Opus 5.5 --- .../annotation-popup-layout.browser.test.tsx | 70 ++++++++++++++++++- .../annotator/AnnotatorSafeArea.test.tsx | 67 +++++++++++++++++- .../__tests__/utils/annotationToolbar.test.ts | 18 +++++ .../components/annotator/AnnotationPopup.tsx | 27 +++++-- .../reader/components/annotator/Annotator.tsx | 28 +++++--- .../components/annotator/HighlightOptions.tsx | 10 +-- .../src/utils/annotationToolbar.ts | 9 +++ 7 files changed, 206 insertions(+), 23 deletions(-) diff --git a/apps/readest-app/src/__tests__/components/annotation-popup-layout.browser.test.tsx b/apps/readest-app/src/__tests__/components/annotation-popup-layout.browser.test.tsx index 65a0efae5..26ffeb47a 100644 --- a/apps/readest-app/src/__tests__/components/annotation-popup-layout.browser.test.tsx +++ b/apps/readest-app/src/__tests__/components/annotation-popup-layout.browser.test.tsx @@ -86,7 +86,7 @@ vi.mock('@/app/reader/utils/annotatorUtil', () => ({ import AnnotationPopup from '@/app/reader/components/annotator/AnnotationPopup'; import { annotationToolButtons } from '@/app/reader/components/annotator/AnnotationTools'; -import { DEFAULT_ANNOTATION_TOOLBAR_ITEMS } from '@/utils/annotationToolbar'; +import { DEFAULT_ANNOTATION_TOOLBAR_ITEMS, getToolbarGrid } from '@/utils/annotationToolbar'; // ── Constants ─────────────────────────────────────────────────────────── @@ -564,3 +564,71 @@ describe('note card over the popup box', () => { } }); }); + +// #8013: past the tools that fit, the toolbar scrolled the rest out of sight +// with no scrollbar. They wrap onto a second row, with the style/color strip +// clear of both. +describe('a toolbar with more tools than fit', () => { + const allTools = annotationToolButtons.map(({ label, Icon }) => ({ + tooltipText: label, + Icon, + onClick: vi.fn(), + })); + const { rows, columns } = getToolbarGrid(allTools.length, POPUP_W); + + it.each([ + 'up', + 'down', + 'left', + 'right', + ] as const)('shows every tool, in rows, with the strip beside them (%s)', async (dir) => { + const vertical = dir === 'left' || dir === 'right'; + const point = { x: 200, y: 200 }; + const { container } = render( +
+ +
, + ); + const popup = container.querySelector('#popup-container')!.getBoundingClientRect(); + const tools = [...container.querySelectorAll('.selection-buttons button')].map((button) => + button.getBoundingClientRect(), + ); + expect(rows).toBe(2); + expect(tools).toHaveLength(allTools.length); + for (const tool of tools) { + expect(tool.left).toBeGreaterThanOrEqual(popup.left); + expect(tool.right).toBeLessThanOrEqual(popup.right); + expect(tool.top).toBeGreaterThanOrEqual(popup.top); + expect(tool.bottom).toBeLessThanOrEqual(popup.bottom); + } + const lines = new Set(tools.map((tool) => Math.round(vertical ? tool.left : tool.top))); + expect(lines.size).toBe(rows); + + const options = container.querySelector('.highlight-options')!; + await vi.waitFor(() => { + for (const button of options.querySelectorAll('button')) { + const rect = button.getBoundingClientRect(); + const clear = vertical + ? rect.right <= popup.left || rect.left >= popup.right + : rect.bottom <= popup.top || rect.top >= popup.bottom; + expect(clear).toBe(true); + } + }); + }); +}); diff --git a/apps/readest-app/src/__tests__/components/annotator/AnnotatorSafeArea.test.tsx b/apps/readest-app/src/__tests__/components/annotator/AnnotatorSafeArea.test.tsx index 8ec9ed1e4..bf1f0c112 100644 --- a/apps/readest-app/src/__tests__/components/annotator/AnnotatorSafeArea.test.tsx +++ b/apps/readest-app/src/__tests__/components/annotator/AnnotatorSafeArea.test.tsx @@ -28,6 +28,9 @@ const h = vi.hoisted(() => ({ // The rects the toolbar is positioned against, and where it renders. rects: [] as Rect[], toolbar: null as null | Position, + // The toolbar's size, as placed and as rendered. + placedSizes: [] as [number, number][], + rendered: null as null | { width: number; height: number; columns?: number }, })); const settings = { @@ -165,7 +168,10 @@ vi.mock('@/utils/sel', async (importOriginal) => { h.rects.push(rect); return { point: { x: 120, y: 200 }, dir: 'up' as const }; }, - getPopupPosition: () => ({ point: { x: 120, y: 140 }, dir: 'up' as const }), + getPopupPosition: (_target: unknown, _rect: Rect, width: number, height: number) => { + h.placedSizes.push([width, height]); + return { point: { x: 120, y: 140 }, dir: 'up' as const }; + }, }; }); @@ -175,8 +181,19 @@ vi.mock('@/services/transformService', () => ({ vi.mock('@/app/reader/components/annotator/AnnotationRangeEditor', () => ({ default: () => null })); vi.mock('@/app/reader/components/annotator/SelectionRangeEditor', () => ({ default: () => null })); vi.mock('@/app/reader/components/annotator/AnnotationPopup', () => ({ - default: ({ position }: { position: Position }) => { + default: ({ + position, + popupWidth, + popupHeight, + toolbarColumns, + }: { + position: Position; + popupWidth: number; + popupHeight: number; + toolbarColumns?: number; + }) => { h.toolbar = position; + h.rendered = { width: popupWidth, height: popupHeight, columns: toolbarColumns }; return null; }, })); @@ -196,6 +213,9 @@ afterEach(() => { document.getElementById('gridcell-book-1')?.remove(); h.rects = []; h.toolbar = null; + h.placedSizes = []; + h.rendered = null; + h.viewSettings.annotationToolbarItems = ['copy']; }); test('places the selection toolbar inside the safe area off the Duo', () => { @@ -232,3 +252,46 @@ test('places the selection toolbar inside the safe area off the Duo', () => { // Placed relative to the safe region, then shifted back to cell coordinates. expect(h.toolbar?.point).toEqual({ x: 120, y: 140 + 59 }); }); + +// #8013: on a phone, the tools past the ninth scrolled out of sight with no +// scrollbar. They take a second row, and the toolbar is placed at that height. +test.each([ + [8, { width: 300, height: 44, columns: undefined }], + [10, { width: 220, height: 88, columns: 5 }], +])('sizes a toolbar of %i tools to rows that fit', (count, size) => { + h.viewSettings.annotationToolbarItems = [ + 'copy', + 'copylink', + 'annotate', + 'search', + 'dictionary', + 'vocabulary', + 'translate', + 'tts', + 'proofread', + 'quotecard', + ].slice(0, count); + const gridCell = document.createElement('div'); + gridCell.id = 'gridcell-book-1'; + gridCell.getBoundingClientRect = () => + ({ left: 0, top: 0, right: 360, bottom: 780, width: 360, height: 780 }) as DOMRect; + document.body.appendChild(gridCell); + render(); + const doc = document.implementation.createHTMLDocument('page'); + doc.body.innerHTML = '

a passage

'; + const range = doc.createRange(); + range.selectNodeContents(doc.body.firstChild!); + act(() => + h.setSelection!({ + key: 'book-1', + text: 'a passage', + page: 1, + range, + index: 2, + cfi: 'epubcfi(/6/4!/4/2,/1:0,/1:9)', + }), + ); + + expect(h.rendered).toEqual(size); + expect(h.placedSizes[0]).toEqual([size.width, size.height]); +}); diff --git a/apps/readest-app/src/__tests__/utils/annotationToolbar.test.ts b/apps/readest-app/src/__tests__/utils/annotationToolbar.test.ts index 8ec5e621c..5172cf310 100644 --- a/apps/readest-app/src/__tests__/utils/annotationToolbar.test.ts +++ b/apps/readest-app/src/__tests__/utils/annotationToolbar.test.ts @@ -11,6 +11,7 @@ import { reorderToolbar, shouldShowHighlightOptions, supportsProofread, + getToolbarGrid, } from '@/utils/annotationToolbar'; describe('annotationToolbar helpers', () => { @@ -198,3 +199,20 @@ describe('shouldShowHighlightOptions (#5983)', () => { expect(shouldShowHighlightOptions(toolbarWithHighlight, null)).toBe(false); }); }); + +// #8013: past what fits, the tools scrolled out of sight with no scrollbar. +describe('getToolbarGrid', () => { + test('keeps one row while the 32px tools fit', () => { + // A 360px phone leaves a 335px toolbar: nine tools and its padding. + expect(getToolbarGrid(9, 335)).toEqual({ rows: 1, columns: 9 }); + expect(getToolbarGrid(8, 300)).toEqual({ rows: 1, columns: 8 }); + expect(getToolbarGrid(0, 300)).toEqual({ rows: 1, columns: 0 }); + }); + + test('wraps the rest onto rows of even length', () => { + expect(getToolbarGrid(10, 335)).toEqual({ rows: 2, columns: 5 }); + expect(getToolbarGrid(9, 300)).toEqual({ rows: 2, columns: 5 }); + expect(getToolbarGrid(16, 300)).toEqual({ rows: 2, columns: 8 }); + expect(getToolbarGrid(16, 200)).toEqual({ rows: 4, columns: 4 }); + }); +}); diff --git a/apps/readest-app/src/app/reader/components/annotator/AnnotationPopup.tsx b/apps/readest-app/src/app/reader/components/annotator/AnnotationPopup.tsx index 90469ea16..b2d0954a1 100644 --- a/apps/readest-app/src/app/reader/components/annotator/AnnotationPopup.tsx +++ b/apps/readest-app/src/app/reader/components/annotator/AnnotationPopup.tsx @@ -42,6 +42,8 @@ interface AnnotationPopupProps { selectedColor: HighlightColor; popupWidth: number; popupHeight: number; + /** Set when the tools wrap onto more than one row: how many go in a row. */ + toolbarColumns?: number; globalToggleAvailable?: boolean; globalToggleActive?: boolean; onToggleGlobal?: () => void; @@ -64,6 +66,7 @@ const AnnotationPopup: React.FC = ({ selectedColor, popupWidth, popupHeight, + toolbarColumns, globalToggleAvailable, globalToggleActive, onToggleGlobal, @@ -113,13 +116,27 @@ const AnnotationPopup: React.FC = ({
0 || noteEditor) && 'hidden', )} - style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }} + style={ + toolbarColumns + ? isVertical + ? { + gridAutoFlow: 'column', + gridTemplateRows: `repeat(${toolbarColumns}, minmax(0, 1fr))`, + } + : { gridTemplateColumns: `repeat(${toolbarColumns}, minmax(0, 1fr))` } + : { scrollbarWidth: 'none', msOverflowStyle: 'none' } + } > {buttons.map((button, index) => { if (button.visible === false) return null; diff --git a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx index d69ac6c4b..962f1adee 100644 --- a/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx +++ b/apps/readest-app/src/app/reader/components/annotator/Annotator.tsx @@ -82,6 +82,7 @@ import { DEFAULT_NOTE_EXPORT_CONFIG } from '@/services/constants'; import { canShareText, shareSelectedText } from '@/utils/share'; import { getToolbarToolTypes, + getToolbarGrid, shouldShowHighlightOptions, supportsProofread, } from '@/utils/annotationToolbar'; @@ -421,17 +422,21 @@ const Annotator: React.FC<{ bookKey: string; contentInsets: Insets; gridInsets?: (globalToggleAvailable ? 30 + highlightOptionsGap : 0), ); const highlightOptionsAvailable = shouldShowHighlightOptions(toolbarToolTypes, selection ?? null); - const annotPopupWidth = - annotationNotes.length > 0 || noteEditorTarget - ? annotPopupMaxWidth - : Math.min( - Math.max( - Math.max(toolbarToolTypes.length, 1) * annotPopupToolSize, - highlightOptionsAvailable ? highlightOptionsMinWidth : 0, - ), - annotPopupMaxWidth, - ); - const annotPopupHeight = useResponsiveSize(44); + const showsNotes = annotationNotes.length > 0 || !!noteEditorTarget; + // The tools that don't fit wrap onto more rows (#8013). + const toolbarGrid = showsNotes + ? { rows: 1, columns: 0 } + : getToolbarGrid(toolbarToolTypes.length, annotPopupMaxWidth); + const annotPopupWidth = showsNotes + ? annotPopupMaxWidth + : Math.min( + Math.max( + Math.max(toolbarGrid.columns, 1) * annotPopupToolSize, + highlightOptionsAvailable ? highlightOptionsMinWidth : 0, + ), + annotPopupMaxWidth, + ); + const annotPopupHeight = useResponsiveSize(44) * toolbarGrid.rows; // The style/color strip that rides on the toolbar's far side, with its gap. const highlightOptionsBlock = useResponsiveSize(28 + 16); // Set while the toolbar shares its side with the footnote popup because the @@ -3133,6 +3138,7 @@ const Annotator: React.FC<{ bookKey: string; contentInsets: Insets; gridInsets?: selectedColor={selectedColor} popupWidth={annotPopupWidth} popupHeight={annotPopupHeight} + toolbarColumns={toolbarGrid.rows > 1 ? toolbarGrid.columns : undefined} globalToggleAvailable={globalToggleAvailable} globalToggleActive={globalToggleActive} onToggleGlobal={handleToggleGlobal} diff --git a/apps/readest-app/src/app/reader/components/annotator/HighlightOptions.tsx b/apps/readest-app/src/app/reader/components/annotator/HighlightOptions.tsx index 40f4b9167..9ccb1880e 100644 --- a/apps/readest-app/src/app/reader/components/annotator/HighlightOptions.tsx +++ b/apps/readest-app/src/app/reader/components/annotator/HighlightOptions.tsx @@ -240,13 +240,15 @@ const HighlightOptions: React.FC = ({ 'highlight-options absolute flex items-center justify-between', isVertical ? 'flex-col' : 'flex-row', )} + // The strip and its padding, beside the toolbar: past all of its rows + // when the tools wrap (#8013). style={{ gap: optionsGap, - width: `${popupWidth}px`, - height: `${popupHeight}px`, + width: `${isVertical ? optionsOffset : popupWidth}px`, + height: `${isVertical ? popupHeight : optionsOffset}px`, ...(isVertical - ? { left: `${optionsOffset * (placeBefore ? -1 : 1)}px` } - : { top: `${optionsOffset * (placeBefore ? -1 : 1)}px` }), + ? { left: `${placeBefore ? -optionsOffset : popupWidth}px` } + : { top: `${placeBefore ? -optionsOffset : popupHeight}px` }), }} >
{ + const perRow = Math.max(1, Math.floor((maxWidth - 16) / 32)); + const rows = Math.max(1, Math.ceil(count / perRow)); + return { rows, columns: Math.ceil(count / rows) }; +};