1.4.1 • Published 2 years ago

ptxaligner v1.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

ptxaligner

Usage as a npm package

$ npm install -g ptxaligner

then

$ ptxaligner -h     # to see the list of available commands
$ ptxaligner ./path/to/your/config.json

you have an example of a config.json in the directory 'tests' with a template

For developpers

Getting Started

$ npm install
$ npm run build

then for an alignment usfm for a french text

$ npm run testfr

or for an alignment usfm for a spanish text

$ npm run testes

or

npx ptxaligner ./path/to/your/config/file.json

How to make your own config file

see the json template below :
config.json

{
  "greek_usfm_path": "",
  "greek_selectors": {"lang": "gre", "abbr": "ugnt"},
  "raw_usfm_path": "",
  "raw_usfm_selectors":  {"lang": "YOUR_3_LETTER_LONG_LANG", "abbr": "PUT_UST_FOR_EG"},
  "ptx_path": ""
}

Make sure to fill in all the fields with the appropriate http path.
You can have an example in tests/test_titus.json

Contribute

This package is still in early development.
But feel free to make a ticket if you run into any problems.