Skip to content

Book name lookup prefs - #325

Merged
PurpleGuitar merged 3 commits into
WycliffeAssociates:doc-dev.walink.orgfrom
linearcombination:book_name_lookup_prefs
Jul 21, 2026
Merged

Book name lookup prefs#325
PurpleGuitar merged 3 commits into
WycliffeAssociates:doc-dev.walink.orgfrom
linearcombination:book_name_lookup_prefs

Conversation

@linearcombination

@linearcombination linearcombination commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Add ability to specify exceptional lookup locations for localized book names. Book names come from several different potential resource locations, the default order and locations work for the most number of languages. However, for some language resource type combinations, e.g., fr f10, a different location than the default is desired because that is where the translators decided to put the localized book names that are preferred by the PO.

This PR introduces a design which allows book name lookup location for other language and resource type combinations to be specified in the future should they arise. It also provides the ability to specify if the languages and resource type combination should be skipped for localized book name normalization, e.g., again fr f10 needs this specialized exception from the default treatment. Handling fr 10 requested by PO, general design extended to handle future situattions.

Choose USFM metadata lookup order and whether to normalize per
language and resource type combo. E.g., a majority of languages
provide their book name in the \h USFM element, but fr f10 does so in
\toc2 and for fr f10 no normalization of the looked up name is
preferred whereas other languages often need this step. This commit
makes it possible to easily customize per language by using a lookup
table for book name lookup and a lookup table for normalization. By
request of PO.
@PurpleGuitar
PurpleGuitar merged commit 6742a70 into WycliffeAssociates:doc-dev.walink.org Jul 21, 2026
7 of 8 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in DOC Project Management Jul 21, 2026
@linearcombination
linearcombination deleted the book_name_lookup_prefs branch July 21, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants