unfoldingWord / proskomma-react-hooks

A collection of React Hooks that provide a way to simplify the implementation of Proskomma into your React projects.
https://proskomma-react-hooks.netlify.app/
MIT License
1 stars 2 forks source link

Populate Proskomma using useProskomma via non-USFM sources #3

Open mvahowe opened 3 years ago

mvahowe commented 3 years ago

@klappy This is almost the first thing that Chaliki does - see https://github.com/Proskomma/chaliki/blob/master/src/App.js

That code (which could definitely be prettier) loads an array of docSets in Proskomma serialized format, and also loads versification files for some of those docSets. In the latest version of Proskomma we could also be loading TSV files, syntax trees and/or key-value entries, and indeed any or all of those could be hiding inside the Proskomma serialized format.

How would we handle this cleanly using hooks?

mvahowe commented 3 years ago

See also https://github.com/Proskomma/proskomma-freeze which effectively loads and saves the whole of Proskomma state as one file.