ganjoorandroid/app/src/main/res/values/strings.xml
Anas Rashid 8aad086b08 Fix chapter order, and cover more words without more data
Chapter order: Golestan's دیباچه was rendering below the eight باب because the
listing drew every child category and then every poem. ganjoor.net interleaves
them — a book's preface first, then its chapters, then its remaining poems, so
Hafez reads مقدّمه, five collections, مثنوی, ساقی‌نامه. Ganjoor decides this
with each poem's MixedModeOrder (1 above the chapters, 0 below), which the
exported _cat.json doesn't carry and the live API only exposes one poem at a
time, so prefaces are matched by title for now. Adding MixedModeOrder to the
Poems entries in ganjoor-data would make it exact.

Coverage: I went looking for Arabic and Urdu Wiktionary and measured them
instead of assuming. Against 1,285 distinct words from thirteen poems, Urdu
added nine words and Arabic could reach at most five — the uncovered words
were never Arabic, they were Persian morphology the lookup didn't handle:
enclitic pronouns (آیدت, باشدش, تربتش), negation stacked on a prefix
(برنیاید), and compounds. Deepening the affix chain to two passes takes 87% to
91% with no new data at all, so neither dictionary ships.

Each definition now names its language pair rather than just its source, so a
reader can tell what they are looking at.

Dropped the selection-toolbar lookup: Compose 1.10 stopped routing
SelectionContainer through LocalTextToolbar, so a custom toolbar is never
asked to show, and the replacement in foundation's contextmenu package is
internal. Tapping a word already does the lookup; the note in PoemScreen says
when to revisit.

Verified on an API 36 emulator: Golestan lists دیباچه first, and tapping
نافه‌ای resolves through its affix to ناف with both sources labelled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-04 17:20:24 +02:00

74 lines
4.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<resources>
<!-- The app is called گنجور in every language. -->
<string name="app_name">گنجور</string>
<string name="search_poets">Search poets</string>
<string name="back">Back</string>
<string name="retry">Retry</string>
<string name="load_failed">Could not load this page. Check your connection and try again.</string>
<string name="load_failed_offline">This isn\'t downloaded. Turn off offline mode, or download it first.</string>
<string name="reading_settings">Reading settings</string>
<string name="theme">Theme</string>
<string name="theme_system">System</string>
<string name="theme_light">Light</string>
<string name="theme_dark">Dark</string>
<string name="theme_sepia">Sepia</string>
<string name="theme_sepia_dark">Sepia night</string>
<string name="font">Font</string>
<string name="font_naskh">Naskh</string>
<string name="font_nastaliq">Nastaliq</string>
<string name="text_size">Text size</string>
<string name="language">Language</string>
<string name="show_summaries">Show summaries</string>
<string name="summary_ai_note">AI-generated by Ganjoor, not by the poet</string>
<string name="source">Source: %s</string>
<string name="menu">Menu</string>
<string name="bookmarks">Bookmarks</string>
<string name="bookmark_add">Bookmark</string>
<string name="bookmark_remove">Remove bookmark</string>
<string name="no_bookmarks">Nothing bookmarked yet.</string>
<string name="downloads">Downloads</string>
<string name="offline_mode">Offline mode</string>
<string name="offline_mode_note">Read only what\'s been downloaded</string>
<string name="download">Download</string>
<string name="downloading">Downloading… %1$d of %2$d</string>
<string name="downloaded">Saved (%d poems)</string>
<string name="delete_download">Delete from device</string>
<string name="download_all">Download every poet</string>
<string name="download_all_warning">Downloading all 135,000 poems takes hours and hundreds of megabytes.</string>
<string name="cancel">Cancel</string>
<string name="storage_used">Storage used: %s</string>
<string name="weight">Font weight</string>
<string name="weight_regular">Regular</string>
<string name="weight_medium">Medium</string>
<string name="weight_semibold">Semibold</string>
<string name="weight_bold">Bold</string>
<string name="sort">Sort</string>
<string name="sort_default">Ganjoor\'s order</string>
<string name="sort_name">By name</string>
<string name="save_passage">Save this passage</string>
<string name="saved_passage">Saved</string>
<string name="copy">Copy</string>
<string name="copied">Copied</string>
<string name="font_preview">الا یا ایها الساقی ادر کأسا و ناولها</string>
<string name="next_poem">%s ›</string>
<string name="previous_poem">‹ %s</string>
<string name="download_selected">Download %d poets</string>
<string name="home">Home</string>
<string name="search">Search</string>
<string name="search_poems">Search poems</string>
<string name="search_poems_for">Search poems for “%s”</string>
<string name="all_poets">All poets</string>
<string name="choose_poets">Choose poets</string>
<string name="no_results">Nothing found.</string>
<string name="search_needs_connection">Search needs a connection. Turn off offline mode to use it.</string>
<string name="load_more">Load more</string>
<string name="done">Done</string>
<string name="theme_black">Black (OLED)</string>
<string name="about">About &amp; licences</string>
<string name="about_intro">Ganjoor for Android is free software. The poems, the fonts and every library it is built on are credited below; tap an entry to read its full licence.</string>
<string name="no_definition">No entry for this word.</string>
<string name="source_wiktionary">Wiktionary — Persian to English (CC BY-SA 3.0)</string>
<string name="source_daneshjoo">Daneshjoo — Persian to English</string>
<string name="dictionary">Dictionary</string>
</resources>