scripture-guide 1.0.61 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/scriptlang.js +24 -1
- package/package.json +1 -1
- package/scriptures-compiled.js +0 -6
- package/scriptures.js +1 -2
package/data/scriptlang.js
CHANGED
|
@@ -304,7 +304,30 @@ module.exports = {
|
|
|
304
304
|
},
|
|
305
305
|
eo: {
|
|
306
306
|
books:
|
|
307
|
-
{ "Genezo": ["Gen"], "Eliro": ["Eli"], "Levidoj": ["Lev"], "Nombroj": ["Nom"], "Readmono": ["Rea"], "Josuo": ["Jos"], "Juĝistoj": ["Juĝ"], "Rut": ["Rut"], "1 Samuel": ["1 Sam"], "2 Samuel": ["2 Sam"], "1 Reĝoj": ["1 Reĝ"], "2 Reĝoj": ["2 Reĝ"], "1 Kroniko": ["1 Kron"], "2 Kroniko": ["2 Kron"], "Ezra": ["Ezr"], "Neĥemja": ["Neĥ"], "Ester": ["Est"], "Ijob": ["Ijob"], "Psalmaro": ["Ps"], "Sentencoj": ["Sent"], "Predikanto": ["Pred"], "Alt Kanto": ["Alt"], "Jesaja": ["Jes"], "Jeremia": ["Jer"], "Plorkanto": ["Plork"], "Jeĥezkel": ["Jeĥ"], "Daniel": ["Dan"], "Hoŝea": ["Hoŝ"], "Joel": ["Joel"], "Amos": ["Amos"], "Obadja": ["Obad"], "Jona": ["Jon"], "Miĥa": ["Miĥ"], "Naĥum": ["Naĥ"], "Ĥabakuk": ["Ĥab"], "Cefanja": ["Cef"], "Ĥagaj": ["Ĥag"], "Zeĥarja": ["Zeĥ"], "Malaĥi": ["Mal"], "Mateo": ["Mat"], "Marko": ["Mar"], "Luko": ["Luk"], "Johano": ["Joh"], "Agoj": ["Agoj"], "Romanoj": ["Rom"], "1 Korintanoj": ["1 Kor"], "2 Korintanoj": ["2 Kor"], "Galatoj": ["Gal"], "Efesanoj": ["Ef"], "Filipianoj": ["Fil"], "Koloseanoj": ["Kol"], "1 Tesalonikanoj": ["1 Tes"], "2 Tesalonikanoj": ["2 Tes"], "1 Timoteo": ["1 Tim"], "2 Timoteo": ["2 Tim"], "Tito": ["Tit"], "Filemon": ["Fil"], "Hebreoj": ["Heb"], "Jakobo": ["Jak"], "1 Petro": ["1 Pet"], "2 Petro": ["2 Pet"], "1 Johano": ["1 Joh"], "2 Johano": ["2 Joh"], "3 Johano": ["3 Joh"], "Judas": ["Jud"], "Apokalipso": ["Apok"]
|
|
307
|
+
{ "Genezo": ["Gen"], "Eliro": ["Eli"], "Levidoj": ["Lev"], "Nombroj": ["Nom"], "Readmono": ["Rea"], "Josuo": ["Jos"], "Juĝistoj": ["Juĝ"], "Rut": ["Rut"], "1 Samuel": ["1 Sam"], "2 Samuel": ["2 Sam"], "1 Reĝoj": ["1 Reĝ"], "2 Reĝoj": ["2 Reĝ"], "1 Kroniko": ["1 Kron"], "2 Kroniko": ["2 Kron"], "Ezra": ["Ezr"], "Neĥemja": ["Neĥ"], "Ester": ["Est"], "Ijob": ["Ijob"], "Psalmaro": ["Ps"], "Sentencoj": ["Sent"], "Predikanto": ["Pred"], "Alt Kanto": ["Alt"], "Jesaja": ["Jes"], "Jeremia": ["Jer"], "Plorkanto": ["Plork"], "Jeĥezkel": ["Jeĥ"], "Daniel": ["Dan"], "Hoŝea": ["Hoŝ"], "Joel": ["Joel"], "Amos": ["Amos"], "Obadja": ["Obad"], "Jona": ["Jon"], "Miĥa": ["Miĥ"], "Naĥum": ["Naĥ"], "Ĥabakuk": ["Ĥab"], "Cefanja": ["Cef"], "Ĥagaj": ["Ĥag"], "Zeĥarja": ["Zeĥ"], "Malaĥi": ["Mal"], "Mateo": ["Mat"], "Marko": ["Mar"], "Luko": ["Luk"], "Johano": ["Joh"], "Agoj": ["Agoj"], "Romanoj": ["Rom"], "1 Korintanoj": ["1 Kor"], "2 Korintanoj": ["2 Kor"], "Galatoj": ["Gal"], "Efesanoj": ["Ef"], "Filipianoj": ["Fil"], "Koloseanoj": ["Kol"], "1 Tesalonikanoj": ["1 Tes"], "2 Tesalonikanoj": ["2 Tes"], "1 Timoteo": ["1 Tim"], "2 Timoteo": ["2 Tim"], "Tito": ["Tit"], "Filemon": ["Fil"], "Hebreoj": ["Heb"], "Jakobo": ["Jak"], "1 Petro": ["1 Pet"], "2 Petro": ["2 Pet"], "1 Johano": ["1 Joh"], "2 Johano": ["2 Joh"], "3 Johano": ["3 Joh"], "Judas": ["Jud"], "Apokalipso": ["Apok"] ,
|
|
308
|
+
// Additional LDS
|
|
309
|
+
"1 Nefi": ["1 Nef"],
|
|
310
|
+
"2 Nefi": ["2 Nef"],
|
|
311
|
+
"Jakobo": ["JakK"],
|
|
312
|
+
"Enos": ["Eno"],
|
|
313
|
+
"Jerom": ["Jerom"],
|
|
314
|
+
"Omni": ["Omni"],
|
|
315
|
+
"La Vortoj de Mormon": ["Vortoj Morm"],
|
|
316
|
+
"Mosiah": ["Mos"],
|
|
317
|
+
"Alma": ["Alma"],
|
|
318
|
+
"Helaman": ["Hel"],
|
|
319
|
+
"3 Nefi": ["3 Nef"],
|
|
320
|
+
"4 Nefi": ["4 Nef"],
|
|
321
|
+
"Mormon": ["Morm"],
|
|
322
|
+
"Eter": ["Eter"],
|
|
323
|
+
"Moroni": ["Moroni"],
|
|
324
|
+
"Doktrino kaj Interligoj": ["D&I"],
|
|
325
|
+
"Moseo": ["Mos"],
|
|
326
|
+
"Abraham": ["Abr"],
|
|
327
|
+
"Joseph Smith—Mateo": ["JS-Mat"],
|
|
328
|
+
"Joseph Smith—Historio": ["JS-Historio"],
|
|
329
|
+
"Kredo Artikoloj": ["KA"]
|
|
330
|
+
|
|
308
331
|
}
|
|
309
332
|
}
|
|
310
333
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scripture-guide",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
4
4
|
"description": "A utility for biblical and scripture reference parsing that enables structured queries based on strings of traditional scripture references (e.g. John 3:16). ",
|
|
5
5
|
"main": "scriptures-compiled.js",
|
|
6
6
|
"scripts": {
|
package/scriptures-compiled.js
CHANGED
|
@@ -203,10 +203,6 @@ var cleanReference = function cleanReference(messyReference) {
|
|
|
203
203
|
_ref2 = _slicedToArray(_ref, 2),
|
|
204
204
|
wordBreak = _ref2[0],
|
|
205
205
|
buffer = _ref2[1];
|
|
206
|
-
console.log({
|
|
207
|
-
wordBreak: wordBreak,
|
|
208
|
-
buffer: buffer
|
|
209
|
-
});
|
|
210
206
|
var srcbooks = raw_regex.books;
|
|
211
207
|
var dstbooks = buffer ? raw_regex.books.map(function (i) {
|
|
212
208
|
return [i[1], i[1]];
|
|
@@ -226,9 +222,7 @@ var cleanReference = function cleanReference(messyReference) {
|
|
|
226
222
|
var re = new RegExp(wordBreak + buffer + regex[_i3][0] + buffer + "\\.*" + wordBreak, "ig");
|
|
227
223
|
var replacement = hashCypher[regex[_i3][1]] || regex[_i3][1];
|
|
228
224
|
ref = (buffer + ref + buffer).replace(re, replacement).trim();
|
|
229
|
-
//console.log({ref,re,hasBeyondAlpha,wordBreak,buffer});
|
|
230
225
|
}
|
|
231
|
-
|
|
232
226
|
var books = Object.keys(hashCypher);
|
|
233
227
|
var hashes = Object.values(hashCypher);
|
|
234
228
|
ref = ref.replace(new RegExp(hashes.join("|"), "g"), function (match) {
|
package/scriptures.js
CHANGED
|
@@ -197,7 +197,7 @@ const cleanReference = function(messyReference) {
|
|
|
197
197
|
//Handle non-latin languages because \b only works for latin alphabet
|
|
198
198
|
const [wordBreak, buffer] = raw_regex.spacing || ["\\b", ""];
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
|
|
202
202
|
let srcbooks = raw_regex.books;
|
|
203
203
|
let dstbooks = buffer ? raw_regex.books.map(i => [i[1], i[1]]) : [];
|
|
@@ -213,7 +213,6 @@ const cleanReference = function(messyReference) {
|
|
|
213
213
|
var re = new RegExp( wordBreak + buffer + regex[i][0] + buffer + "\\.*"+wordBreak, "ig");
|
|
214
214
|
let replacement = hashCypher[regex[i][1]] || regex[i][1];
|
|
215
215
|
ref = (buffer+ref+buffer).replace(re, replacement).trim();
|
|
216
|
-
//console.log({ref,re,hasBeyondAlpha,wordBreak,buffer});
|
|
217
216
|
}
|
|
218
217
|
const books = Object.keys(hashCypher);
|
|
219
218
|
const hashes = Object.values(hashCypher);
|