UNPKG

usfm-grammar

Version:

Uses the tree-sitter-usfm3 parser to convert USFM files to other formats such as USJ, USX, and CSV, and converts them back to USFM

33 lines (31 loc) 588 B
exports.NO_USFM_USJ_TYPES = ["USJ", "table"]; exports.CLOSING_USJ_TYPES = ["char", "note", "figure", "ref"]; exports.NON_ATTRIB_USJ_KEYS = [ "type", "marker", "content", "number", "sid", "code", "caller", "align", "version", "altnumber", "pubnumber", "category", ]; exports.NON_ATTRIB_USX_KEYS = [ "style", "number", "sid", "code", "caller", "align", "version", "altnumber", "pubnumber", "category", ]; exports.NO_NEWLINE_USJ_TYPES = ["char", "note", "verse", "table:cell"]; exports.NO_NEWLINE_USX_TYPES = ["char", "note", "verse", "cell"];