charlesLoder/hebrew-transliteration

verse failing

Closed this issue · 2 comments

attempt to transliterate
יִֽירָא֥וּךָ עִם־שָׁ֑מֶשׁ וְלִפְנֵ֥י יָ֜רֵ֗חַ דֹּ֣ור דֹּורִֽים׃

ספר תהילים פרק:72 פסוק 5
your site gives "Hmmm...it seems something went wrong"
running the code both for transliterate and sequence are failing.
transliterate

/node_modules/havarotjs/dist/utils/syllabifier.js:238
throw new Error("Syllable should not precede a Cluster with a Mater");
^

Error: Syllable should not precede a Cluster with a Mater
at groupShureqs ( /node_modules/havarotjs/dist/utils/syllabifier.js:238:23)
at groupClusters ( /node_modules/havarotjs/dist/utils/syllabifier.js:260:26)
at syllabify ( /node_modules/havarotjs/dist/utils/syllabifier.js:344:29)
at Word.get syllables [as syllables] ( /node_modules/havarotjs/dist/word.js:67:44)
at /node_modules/hebrew-transliteration/dist/index.js:410:30
at Array.map ()
at transliterate ( /node_modules/hebrew-transliteration/dist/index.js:406:24)
at Object. ( /script/hebapp.js:33:20)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)

sequence

{}
/node_modules/hebrew-transliteration/dist/index.js:94
var mapChars = (text, schema) => [...text].map((char) => char in transliterateMap ? schema[transliterateMap[char]] : char).join("");
^

TypeError: text is not iterable
at mapChars ( /node_modules/hebrew-transliteration/dist/index.js:94:38)
at transliterate ( /node_modules/hebrew-transliteration/dist/index.js:403:12)
at Object. ( /script/hebapp.js:36:19)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47

אוךָ
just the three letters and one vowel are enough for failure.

Great catch!

Fixed in havarotjs — charlesLoder/havarotjs#29