Skip to content

Various updates DOC, STET, Passages#319

Merged
PurpleGuitar merged 17 commits into
WycliffeAssociates:doc-dev.walink.orgfrom
linearcombination:various-updates-stet-passages-doc
Jun 30, 2026
Merged

Various updates DOC, STET, Passages#319
PurpleGuitar merged 17 commits into
WycliffeAssociates:doc-dev.walink.orgfrom
linearcombination:various-updates-stet-passages-doc

Conversation

@linearcombination

@linearcombination linearcombination commented Jun 19, 2026

Copy link
Copy Markdown
Contributor
  • STET We learned from PO that at least one language, fr, should prefer non-ulb usfm
    text if available. This change makes it possible to specify additional
    languages besides fr that may need the same treatment.
  • DOC/STET/Passages A test with fr, f10, revealed that its chapter source was not being
    properly split into verses because of the extra markup formatting that
    is in f10. This is now more robust.
  • DOC We already have disabled rg from the ui by request of the PO, but here
    is a place where it was still potentially being used in the
    consideration of what books to deem available for a particular
    language. We removed that.
  • STET New STET input documents and associated meta data updates for gu, ru, and bulgarian (rmn-x-yerliroman). Please note that ru is filtered out of STET since STET document references only NT books and ru does not provide NT books, only OT.
  • DOC Get Word styling of hyperlinks closer to PO's request.
  • DOC Get PDF styling of h1 and hyperlinks closer to Docx (easy quick change - just a wip)
  • DOC Fixed a bug that snuck in wherein paragraph formatting was being removed from source bible text. Fixed for all languages now.

Prior to this commit, ulb was always preferred for any language. We
learned that at least one language, fr, should prefer non-ulb usfm
text if available. This change makes it possible to specify additional
languages besides fr that may need the same treatment.
A test with fr, f10, revealed that its chapter source was not being
properly split into verses because of the extra markup formatting that
is in f10. This commit switches to using BeautifulSoup to ensure
proper matching of nested beginning and ending tags so that chapters
are properly split into discrete verses. It may be more robust for
other languages that we have not tested yet too which also have
similar markup characteristics.
We already have disabled rg from the ui by request of the PO, but here
is a place where it was still potentially being used in the
consideration of what books to consider available for a particular
language.
Add gu, ru, and bulgarian. Note that ru does not provide NT books,
only OT books, so it has no utility in STET where all references are
to NT. Thus ru is filtered out of the list of source languages
currently displayed by STET.
Underline and black. Have not added the highlight desired yet as it is
quite tricky to achieve and may not be desirable since it will gobble
toner.
@linearcombination linearcombination force-pushed the various-updates-stet-passages-doc branch from 01154fa to 2a865b9 Compare June 22, 2026 02:57
Comment thread backend/doc/domain/parsing.py
Comment thread backend/doc/domain/parsing.py
Comment thread Makefile Outdated
Comment thread Makefile
@linearcombination linearcombination changed the base branch from doc.bibleineverylanguage.org to doc-dev.walink.org June 23, 2026 04:05
@linearcombination linearcombination self-assigned this Jun 25, 2026
Prefer defaulted function parameters for referential transparency.
From this view, stylistically, they function as dependency injection.
- Was able to unify the fr and non-fr cases to one function for DOC.

- Deemed it worthwhile to abandon DRY to let STET and Passages have
their own version of same to allow for future differentiation as
needed and not have to cross reference to DOC as much for API support.
This is grey area when it comes to design, but I think it makes sense
in this case.
- Some cleanup and move to use BeautifulSoup a bit more than regex to
ensure tag end matching.
@linearcombination

Copy link
Copy Markdown
Contributor Author

Thanks for the very helpful review. I've made changes related to your feedback and also others that improve things. Can you please rereview?

Comment thread backend/doc/domain/parsing.py
Comment thread backend/doc/domain/parsing.py
@PurpleGuitar PurpleGuitar merged commit cafe8ce into WycliffeAssociates:doc-dev.walink.org Jun 30, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in DOC Project Management Jun 30, 2026
@linearcombination linearcombination deleted the various-updates-stet-passages-doc branch June 30, 2026 15:58
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