Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle control characters in usfm #223

Merged

Conversation

linearcombination
Copy link
Contributor

This handles the STET en + ln (Lingala) case, but will handle others with this same class of source USFM errors.

Our test team noted that when building a doc for English->Lingala (ln), the build fails with an error

This happened because the USFM for Lingala had control characters in
the text, in particular ^B (STX in ASCII - start of text). Since there
could be other source languages that have control characters I have
augmented STET to strip them out prior to processing.
Refactored a little to move code to DOC since STET will take advantage
of that and it is likely to impact DOC too.
@linearcombination linearcombination merged commit e4ae96f into doc-dev.walink.org Oct 16, 2024
13 checks passed
@linearcombination linearcombination deleted the handle-control-characters-in-usfm branch October 18, 2024 20:42
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.

1 participant