912 make a new bible text swap feature for biblica global publishing - #1157
Open
Fikitti wants to merge 10 commits into
Open
912 make a new bible text swap feature for biblica global publishing#1157Fikitti wants to merge 10 commits into
Fikitti wants to merge 10 commits into
Conversation
…into 912-make-a-new-bible-text-swap-feature-for-biblica-global-publishing
…into 912-make-a-new-bible-text-swap-feature-for-biblica-global-publishing
…into 912-make-a-new-bible-text-swap-feature-for-biblica-global-publishing
3 tasks
…lica-global-publishing Resolve conflicts: - exportHandler.ts: keep `options` (used for Bible Swap) alongside main's new `roundTrip` context parameter; adopt main's timestamp-free export file naming while preserving the `_bible-swap` suffix when a swap was applied. - biblicaExporter.ts: keep the Bible Swap story-application code appended on this branch and main's trailing newline at end of file. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Biblica Bible Swap Feature
Format:
912-make-a-new-bible-text-swap-feature-for-biblica-global-publishing
Summary
Closes #912
Adds an optional Bible Swap step to Biblica round-trip export: after notes are rebuilt into the Study IDML, verse text can be replaced from a translated Bible IDML while study notes, InDesign structure, and styling stay in place.
###Swap modes
Surgical — replace only prose inside Study character/paragraph ranges (study layout stays English-shaped).
Structure — replace each study chapter text span with the matching Bible paragraph XML so translated poetry, speaker labels, and chapter-boundary p_dc1/p_dc2 styling come from the Bible file.
###Export UI (Biblica only)
Pick Surgical vs Structure, choose a language, attach a Bible IDML, then see a compatibility report before export: book/chapter/verse overlap, projected match %, and versification changes (replace / remove / insert, including Psalms).
###Languages and mappings
Shipped precomputed versification plans ({language}/{VOLUME}.mapping.json) for the six study volumes (GEN–DEU through ACT–REV):
Per-language strategies pick preferred mode, force Structure on heavy volumes (e.g. JOB–SNG for Russian/French/Marathi), and apply known plan patches (e.g. Portuguese HAB 3).
###Versification
Aligns study vs Bible by book/chapter/verse, including Psalms (superscriptions as v1, extra Bible verses inserted, study-only verses removed, chapter remaps). Handles split chapters, boundary bleed, and insert-only heading chapters.
Test Checklist