How bsb-publishing/bsb2usfm works
This repository produces BSB and MSB Bible text datasets in USFM, USJ, and USX, with standard, interlinear, and Strong’s variants. The principal workflow converts source text into structured book files, cleans the shared USX representation, and packages outputs for download. Separate utilities adapt files for Paratext and DBL, while a Flask interface offers a conversion workflow. The README documents the format and release capabilities; some build wiring and conversion internals are unsampled, so those relationships are omitted where not evidenced.
Main entry points: bsb2usfm.py Book converter · create_zips.py ZIP archive creation · webapp.py Conversion web interface · mirror_bsb_ot_to_msb.py Mirror BSB Old Testament
Components 13
Conversion
- Book converter
bsb2usfm.py - USX tree cleanup
usx_cleanup.py
Edition handling
- BSB and MSB editions
- Mirror BSB Old Testament
mirror_bsb_ot_to_msb.py - MSB corrections and versification
fix_msb.py
Format adaptation
- Paratext USFM adaptation
adapt_usfm_for_paratext.py - DBL USX adaptation
adapt_usx_for_DBL.py - Footnote reference extraction
getirefs.py
Delivery
- ZIP archive creation
create_zips.py - Conversion web interface
web_service/webapp.py
Other components
- Bible source text
- Web user
- Dataset user
Connections 12
- Bible source text → Book converter: converts text
README.md - Book converter → USX tree cleanup: calls cleanup
bsb2usfm.py - Book converter → BSB and MSB editions: generates editions
README.md - BSB and MSB editions → Paratext USFM adaptation: adapts USFM
- BSB and MSB editions → DBL USX adaptation: adapts USX
- BSB and MSB editions → Footnote reference extraction: extracts references
- Mirror BSB Old Testament → BSB and MSB editions: copies OT files
mirror_bsb_ot_to_msb.py - MSB corrections and versification → BSB and MSB editions: corrects MSB files
fix_msb.py - BSB and MSB editions → ZIP archive creation: packages outputs
README.md - Web user → Conversion web interface: requests conversion
web_service/webapp.py - Conversion web interface → Book converter: launches conversion
web_service/webapp.py - ZIP archive creation → Dataset user: provides archives
README.md