Skip to content

Commit

Permalink
Add sequence key to make sorting easier (w/ thanks to @curiousdannii)
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 14, 2017
1 parent a6c0746 commit 548c6e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/extract_references.js
Expand Up @@ -19,11 +19,12 @@ var rl = readline.createInterface({
var references = [];

function extract_references (data) {
var res = bcv.parse(data).osis_and_indices();
var res = bcv.parse(data).parsed_entities();
res.forEach(function(match) {
var ref = {};
ref.original = data.slice(match.indices[0], match.indices[1]);
ref.osis = match.osis;
ref.seq = bcv.translations.default.order[match.start.b] * 1000000 + match.start.c * 1000 + match.start.v;
ref.reformat = formatter('yc-long', match.osis);
references.push(ref);
});
Expand Down

0 comments on commit 548c6e2

Please sign in to comment.