issues
search
Bridgeconn
/
usfm-grammar
An elegant USFM parser.
https://usfmgrammar.vachanengine.org/
MIT License
36
stars
14
forks
source link
USJ tests and fixes
#223
Closed
kavitharaju
closed
1 year ago
kavitharaju
commented
1 year ago
This PR includes:
Pulls recent testsuite updates from usfm-bible/tcdocs
Replaces the USJ samples we had generated here using our grammar, with the usx2usj converted ones. This is copied from the
PR to the tcdocs repo
.
Adds a new set of tests to compare the USJs generated using grammar and those in testsuite
Fixes based on the above tests
Grammar changes:
Keep \b at paragraph level, instead of as paragraph content
Allow footnotes and cross-refs to come within character markers
Fixes in USJ generation code:
Handling of \b
Avoiding empty strings in contents
Wrong order of some elements
This PR includes: