Proskomma / proskomma-json-tools

Tools for working with Proskomma-derived JSON formats such as PERF and SOFRIA
MIT License
1 stars 2 forks source link

Perf <=> UsfmJs #43

Closed mvahowe closed 6 months ago

mvahowe commented 6 months ago

This PR implements UsfmJS to Perf conversion via a multi-step pipeline. Only the alignment information from the usfmJs is preserved, so the results should not depend much on the quality of the UsfmJs in terms of formatting etc.

There are tests for some of the individual steps as well as roundtripping.

All relevant tests pass. One new, failing test has been added for a bug in ProskommaRender that I discovered along the way.

Once this is merged I'll make another PR to move and rename files to make everything more consistent.