Skip to content

DanielC-N/ptxaligner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ptxaligner

what does this package do ?

will_do

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors