Closed mshannon-sil closed 7 months ago
This PR is porting over the changes from https://github.com/sillsdev/machine/pull/163 as well now.
Attention: Patch coverage is 92.22462%
with 36 lines
in your changes are missing coverage. Please review.
Project coverage is 88.33%. Comparing base (
61d49d8
) to head (4e6ccde
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Based on the changes in Machine from https://github.com/sillsdev/machine/pull/160, I've updated machine.py's handling of USFM accordingly.
Main changes:
machine/corpora
were either created or modified to align with new files/changes in MachineVersification.load()
inmachine/scripture/verse_ref.py
was updated to accept a stream as input, like it can in Machinetest_utf_16_encoding_stream()
intests/scripture/test_versification.py
to test code I added which handles Unicode errors for loading versification from a stream.This change is