hebrew-transliteration 2.0.0 → 2.0.3

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/dist/schema.d.ts DELETED
@@ -1,475 +0,0 @@
1
- import { SylOpts } from "havarotjs/dist/text";
2
- /**
3
- * class for defining a schema for transliteration
4
- */
5
- export declare class Schema implements SylOpts {
6
- /**
7
- * HEBREW POINT SHEVA (U+05B0) ְ◌
8
- * @example
9
- * 'ǝ'
10
- */
11
- VOCAL_SHEVA: string;
12
- /**
13
- * HEBREW POINT HATAF SEGOL (U+05B1) ֱ◌
14
- * @example
15
- * 'ĕ'
16
- */
17
- HATAF_SEGOL: string;
18
- /**
19
- * HEBREW POINT HATAF PATAH (U+05B2) ֲ◌
20
- * @example
21
- * 'ă'
22
- */
23
- HATAF_PATAH: string;
24
- /**
25
- * HEBREW POINT HATAF QAMATS (U+05B3) ֳ◌
26
- * @example
27
- * 'ŏ'
28
- */
29
- HATAF_QAMATS: string;
30
- /**
31
- * HEBREW POINT HIRIQ (U+05B4) ִ◌
32
- * @example
33
- * 'i'
34
- */
35
- HIRIQ: string;
36
- /**
37
- * HEBREW POINT TSERE (U+05B5) ֵ◌
38
- * @example
39
- * 'ē'
40
- */
41
- TSERE: string;
42
- /**
43
- * HEBREW POINT SEGOL (U+05B6) ֶ◌
44
- * @example
45
- * 'e'
46
- */
47
- SEGOL: string;
48
- /**
49
- * HEBREW POINT PATAH (U+05B7) ַ◌
50
- * @example
51
- * 'a'
52
- */
53
- PATAH: string;
54
- /**
55
- * HEBREW POINT QAMATS (U+05B8) ָ◌
56
- * @example
57
- * 'ā'
58
- */
59
- QAMATS: string;
60
- /**
61
- * HEBREW POINT HOLAM (U+05B9) ֹ◌
62
- * @example
63
- * 'ō'
64
- */
65
- HOLAM: string;
66
- /**
67
- * HEBREW POINT QUBUTS (U+05BB) ֻ◌
68
- * @example
69
- * 'u'
70
- */
71
- QUBUTS: string;
72
- /**
73
- * HEBREW POINT DAGESH OR MAPIQ (U+05BC) ּ◌
74
- * @description typically, this will be a blank string
75
- * @example
76
- * ''
77
- */
78
- DAGESH: string;
79
- /**
80
- * HEBREW POINT DAGESH OR MAPIQ (U+05BC) ּ◌
81
- * @description if true, repeats the consonant with the dagesh
82
- * @example
83
- * ```js
84
- * transliterate('שַׁבָּת', { DAGESH_CHAZAQ: true });
85
- * // 'shabbat'
86
- * ```
87
- */
88
- DAGESH_CHAZAQ: boolean;
89
- /**
90
- * HEBREW PUNCTUATION MAQAF (U+05BE) ־◌
91
- * @example
92
- * '-'
93
- */
94
- MAQAF: string;
95
- /**
96
- * HEBREW PUNCTUATION PASEQ (U+05C0) ׀ ◌
97
- * @description if a blank string, two spaces will occur between words
98
- * @example
99
- * '|' or ''
100
- * @example
101
- * ```js
102
- * transliterate('כְּשֶׁ֣בֶת ׀ הַמֶּ֣לֶךְ', { PASEQ: '' });
103
- * // 'kǝšebet hammelek'
104
- * ```
105
- */
106
- PASEQ: string;
107
- /**
108
- * HEBREW PUNCTUATION SOF PASUQ (U+05C3) ׃◌
109
- * @example
110
- * '' or '.'
111
- */
112
- SOF_PASUQ: string;
113
- /**
114
- * HEBREW POINT QAMATS QATAN (U+05C7) ׇ◌
115
- * @example
116
- * 'o'
117
- */
118
- QAMATS_QATAN: string;
119
- /**
120
- * HEBREW POINT PATAH (U+05B7) ◌ַ
121
- * @example
122
- * 'a'
123
- */
124
- FURTIVE_PATAH: string;
125
- /**
126
- * HEBREW POINT HIRIQ (U+05B4) and YOD (U+05D9) י◌ִ
127
- * @example
128
- * 'î'
129
- */
130
- HIRIQ_YOD: string;
131
- /**
132
- * HEBREW POINT TSERE (U+05B5) and YOD (U+05D9) י◌ֵ
133
- * @example
134
- * 'ê'
135
- */
136
- TSERE_YOD: string;
137
- /**
138
- * HEBREW POINT SEGOL (U+05B6) and YOD (U+05D9) י◌ֶ
139
- * @example
140
- * 'ê'
141
- */
142
- SEGOL_YOD: string;
143
- /**
144
- * HEBREW LETTER VAV (U+05D5) and DAGESH (U+05BC) וּ
145
- * @example
146
- * 'û'
147
- */
148
- SHUREQ: string;
149
- /**
150
- * HEBREW LETTER HOLAM (U+05B9) and VAV (U+05D5) ֹו◌
151
- * @example
152
- * 'ô'
153
- */
154
- HOLAM_VAV: string;
155
- /**
156
- * HEBREW POINT QAMATS (U+05B8) and HE (U+05D4) ה◌ָ
157
- * @example
158
- * 'â'
159
- */
160
- QAMATS_HE: string;
161
- /**
162
- * HEBREW POINT SEGOL (U+05B6) and HE (U+05D4) ה◌ֶ
163
- * @example
164
- * 'ê'
165
- */
166
- SEGOL_HE: string;
167
- /**
168
- * HEBREW POINT TSERE (U+05B5) and HE (U+05D4) ה◌ֵ
169
- * @example
170
- * 'ê'
171
- */
172
- TSERE_HE: string;
173
- /**
174
- * HEBREW LETTER QAMATS (U+05B8) and YOD (U+05D9) and VAV (U+05D5) יו◌ָ
175
- * @example
176
- * 'āyw'
177
- */
178
- MS_SUFX: string;
179
- /**
180
- * HEBREW LETTER ALEF (U+05D0) א
181
- * @example
182
- * 'ʾ'
183
- */
184
- ALEF: string;
185
- /**
186
- * HEBREW LETTER BET (U+05D1) ב
187
- * @example
188
- * 'b' or 'v'
189
- */
190
- BET: string;
191
- /**
192
- * HEBREW LETTER BET (U+05D1) and DAGESH (U+05BC) ּב
193
- * @description
194
- * the letter bet with a dagesh kal
195
- * @description
196
- * use when need to distinguish between spirantized forms
197
- * @example
198
- * 'b'
199
- */
200
- BET_DAGESH?: string;
201
- /**
202
- * HEBREW LETTER GIMEL (U+05D2) ג
203
- * @example
204
- * 'g'
205
- */
206
- GIMEL: string;
207
- /**
208
- * HEBREW LETTER GIMEL (U+05D2) and DAGESH (U+05BC) גּ
209
- * @description
210
- * the letter gimel with a dagesh kal
211
- * @description
212
- * use when need to distinguish between spirantized forms
213
- * @example
214
- * 'g'
215
- */
216
- GIMEL_DAGESH?: string;
217
- /**
218
- * HEBREW LETTER DALET (U+05D3) ד
219
- * @example
220
- * 'd'
221
- */
222
- DALET: string;
223
- /**
224
- * HEBREW LETTER DALET (U+05D3) and DAGESH (U+05BC) דּ
225
- * @description
226
- * the letter dalet with a dagesh kal
227
- * @description
228
- * use when need to distinguish between spirantized forms
229
- * @example
230
- * 'd'
231
- */
232
- DALET_DAGESH?: string;
233
- /**
234
- * HEBREW LETTER HE (U+05D4) ה
235
- * @example
236
- * 'h'
237
- */
238
- HE: string;
239
- /**
240
- * HEBREW LETTER VAV (U+05D5) ו
241
- * @example
242
- * 'w'
243
- */
244
- VAV: string;
245
- /**
246
- * HEBREW LETTER ZAYIN (U+05D6) ז
247
- * @example
248
- * 'z'
249
- */
250
- ZAYIN: string;
251
- /**
252
- * HEBREW LETTER HET (U+05D7) ח
253
- * @example
254
- * 'ḥ'
255
- */
256
- HET: string;
257
- /**
258
- * HEBREW LETTER TET (U+05D8) ט
259
- * @example
260
- * 'ṭ'
261
- */
262
- TET: string;
263
- /**
264
- * HEBREW LETTER YOD (U+05D9) י
265
- * @example
266
- * 'y'
267
- */
268
- YOD: string;
269
- /**
270
- * HEBREW LETTER FINAL KAF (U+05DA) ך
271
- * @example
272
- * 'k' or 'kh'
273
- */
274
- FINAL_KAF: string;
275
- /**
276
- * HEBREW LETTER KAF (U+05DB) כ
277
- * @example
278
- * 'k' or 'kh'
279
- */
280
- KAF: string;
281
- /**
282
- * HEBREW LETTER KAF (U+05DB) and DAGESH (U+05BC) כּ
283
- * @description
284
- * the letter kaf with a dagesh kal
285
- * @description
286
- * use when need to distinguish between spirantized forms
287
- * @example
288
- * 'k'
289
- */
290
- KAF_DAGESH?: string;
291
- /**
292
- * HEBREW LETTER LAMED (U+05DC) ל
293
- * @example
294
- * 'l'
295
- */
296
- LAMED: string;
297
- /**
298
- * HEBREW LETTER FINAL MEM (U+05DD) ם
299
- * @example
300
- * 'm'
301
- */
302
- FINAL_MEM: string;
303
- /**
304
- * HEBREW LETTER MEM (U+05DE) מ
305
- * @example
306
- * 'm'
307
- */
308
- MEM: string;
309
- /**
310
- * HEBREW LETTER FINAL NUN (U+05DF) ן
311
- * @example
312
- * 'n'
313
- */
314
- FINAL_NUN: string;
315
- /**
316
- * HEBREW LETTER NUN (U+05E0) נ
317
- * @example
318
- * 'n'
319
- */
320
- NUN: string;
321
- /**
322
- * HEBREW LETTER SAMEKH (U+05E1) ס
323
- * @example
324
- * 's'
325
- */
326
- SAMEKH: string;
327
- /**
328
- * HEBREW LETTER AYIN (U+05E2) ע
329
- * @example
330
- * 'ʿ'
331
- */
332
- AYIN: string;
333
- /**
334
- * HEBREW LETTER FINAL PE (U+05E3) ף
335
- * @example
336
- * 'p' or 'f'
337
- */
338
- FINAL_PE: string;
339
- /**
340
- * HEBREW LETTER PE (U+05E4) פ
341
- * @example
342
- * 'p' or 'f'
343
- */
344
- PE: string;
345
- /**
346
- * HEBREW LETTER PE (U+05E4) and DAGESH (U+05BC) פּ
347
- * @description
348
- * the letter pe with a dagesh kal
349
- * @description
350
- * use when need to distinguish between spirantized forms
351
- * @example
352
- * 'p'
353
- */
354
- PE_DAGESH?: string;
355
- /**
356
- * HEBREW LETTER FINAL TSADI (U+05E5) ץ
357
- * @example
358
- * 'ṣ'
359
- */
360
- FINAL_TSADI: string;
361
- /**
362
- * HEBREW LETTER TSADI (U+05E6) צ
363
- * @example
364
- * 'ṣ'
365
- */
366
- TSADI: string;
367
- /**
368
- * HEBREW LETTER QOF (U+05E7) ק
369
- * @example
370
- * 'q'
371
- */
372
- QOF: string;
373
- /**
374
- * HEBREW LETTER RESH (U+05E8) ר
375
- * @example
376
- * 'r'
377
- */
378
- RESH: string;
379
- /**
380
- * HEBREW LETTER SHIN (U+05E9) and SHIN DOT (U+05C1) שׁ
381
- * @example
382
- * 'š'
383
- */
384
- SHIN: string;
385
- /**
386
- * HEBREW LETTER SHIN (U+05E9) and SIN DOT (U+05C2) שׁ
387
- * @example
388
- * 'ś'
389
- */
390
- SIN: string;
391
- /**
392
- * HEBREW LETTER TAV (U+05EA) ת
393
- * @example
394
- * 't' or 'th'
395
- */
396
- TAV: string;
397
- /**
398
- * HEBREW LETTER TAV (U+05EA) and DAGESH (U+05BC) תּ
399
- * @description
400
- * the letter tav with a dagesh kal
401
- * @description
402
- * use when need to distinguish between spirantized forms
403
- * @example
404
- * 't'
405
- */
406
- TAV_DAGESH?: string;
407
- /**
408
- * define additional sequences of characters
409
- *
410
- * ⚠️ there may be unpredictable results
411
- *
412
- * @example
413
- * [{
414
- * FEATURE: 'cluster',
415
- * HEBREW: 'זּ',
416
- * TRANSLITERATION: 'tz'
417
- * }]
418
- */
419
- ADDITIONAL_FEATURES?: {
420
- /**
421
- * additional orthographic feature
422
- *
423
- * - `"cluster"` is any combination of a single character and optionally a _dagesh_ and vowel.
424
- * - `"syllable"` is any combination of a multiple characters and a single vowel and optionally a _dagesh_
425
- * - `"word"` covers everything else
426
- */
427
- FEATURE: "word" | "syllable" | "cluster";
428
- /** use consonants and vowels; do not use taamim */
429
- HEBREW: string;
430
- TRANSLITERATION: string;
431
- }[];
432
- /**
433
- * the full form of the divine name - יהוה
434
- * @example
435
- * 'yhwh'
436
- */
437
- DIVINE_NAME: string;
438
- /**
439
- * a syllable separator, usually an empty string
440
- * @example
441
- * '' or '-'
442
- * @example
443
- * ```js
444
- * transliterate('הָאָֽרֶץ', { SYLLABLE_SEPARATOR: '-' });
445
- * // 'hā-ʾā-reṣ'
446
- * ```
447
- */
448
- SYLLABLE_SEPARATOR?: string;
449
- /**
450
- * a mark for indentifying the stressed syllable
451
- *
452
- * @description
453
- * taamim are needed in the Hebrew text to correctly identify stress
454
- * @example
455
- * 'ˈ' or '\u0341'
456
- * @example
457
- * ```js
458
- * transliterate('מֶ֣לֶךְ', { STRESS_MARKER: { location: 'after-vowel', mark: '\u0301' } });
459
- * // 'mélek'
460
- * ```
461
- */
462
- STRESS_MARKER?: {
463
- location: "before-syllable" | "after-syllable" | "before-vowel" | "after-vowel";
464
- mark: string;
465
- };
466
- longVowels: SylOpts["longVowels"];
467
- qametsQatan: SylOpts["qametsQatan"];
468
- sqnmlvy: SylOpts["sqnmlvy"];
469
- wawShureq: SylOpts["wawShureq"];
470
- article: SylOpts["article"];
471
- constructor(schema: Schema);
472
- }
473
- export declare class SBL extends Schema {
474
- constructor(schema: Partial<Schema>);
475
- }
package/dist/schema.js DELETED
@@ -1,160 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SBL = exports.Schema = void 0;
4
- /**
5
- * class for defining a schema for transliteration
6
- */
7
- class Schema {
8
- constructor(schema) {
9
- (this.VOCAL_SHEVA = schema.VOCAL_SHEVA),
10
- (this.HATAF_SEGOL = schema.HATAF_SEGOL),
11
- (this.HATAF_PATAH = schema.HATAF_PATAH),
12
- (this.HATAF_QAMATS = schema.HATAF_QAMATS),
13
- (this.HIRIQ = schema.HIRIQ),
14
- (this.TSERE = schema.TSERE),
15
- (this.SEGOL = schema.SEGOL),
16
- (this.PATAH = schema.PATAH),
17
- (this.QAMATS = schema.QAMATS),
18
- (this.HOLAM = schema.HOLAM),
19
- (this.QUBUTS = schema.QUBUTS),
20
- (this.DAGESH = schema.DAGESH),
21
- (this.DAGESH_CHAZAQ = schema.DAGESH_CHAZAQ),
22
- (this.MAQAF = schema.MAQAF),
23
- (this.PASEQ = schema.PASEQ),
24
- (this.SOF_PASUQ = schema.SOF_PASUQ),
25
- (this.QAMATS_QATAN = schema.QAMATS_QATAN),
26
- (this.FURTIVE_PATAH = schema.FURTIVE_PATAH),
27
- (this.HIRIQ_YOD = schema.HIRIQ_YOD),
28
- (this.TSERE_YOD = schema.TSERE_YOD),
29
- (this.SEGOL_YOD = schema.SEGOL_YOD),
30
- (this.SHUREQ = schema.SHUREQ),
31
- (this.HOLAM_VAV = schema.HOLAM_VAV),
32
- (this.QAMATS_HE = schema.QAMATS_HE),
33
- (this.SEGOL_HE = schema.SEGOL_HE),
34
- (this.TSERE_HE = schema.TSERE_HE),
35
- (this.MS_SUFX = schema.MS_SUFX),
36
- (this.ALEF = schema.ALEF),
37
- (this.BET_DAGESH = schema.BET_DAGESH),
38
- (this.BET = schema.BET),
39
- (this.GIMEL = schema.GIMEL),
40
- (this.GIMEL_DAGESH = schema.GIMEL_DAGESH),
41
- (this.DALET = schema.DALET),
42
- (this.DALET_DAGESH = schema.DALET_DAGESH),
43
- (this.HE = schema.HE),
44
- (this.VAV = schema.VAV),
45
- (this.ZAYIN = schema.ZAYIN),
46
- (this.HET = schema.HET),
47
- (this.TET = schema.TET),
48
- (this.YOD = schema.YOD),
49
- (this.FINAL_KAF = schema.FINAL_KAF),
50
- (this.KAF = schema.KAF),
51
- (this.KAF_DAGESH = schema.KAF_DAGESH),
52
- (this.LAMED = schema.LAMED),
53
- (this.FINAL_MEM = schema.FINAL_MEM),
54
- (this.MEM = schema.MEM),
55
- (this.FINAL_NUN = schema.FINAL_NUN),
56
- (this.NUN = schema.NUN),
57
- (this.SAMEKH = schema.SAMEKH),
58
- (this.AYIN = schema.AYIN),
59
- (this.FINAL_PE = schema.FINAL_PE),
60
- (this.PE = schema.PE),
61
- (this.PE_DAGESH = schema.PE_DAGESH),
62
- (this.FINAL_TSADI = schema.FINAL_TSADI),
63
- (this.TSADI = schema.TSADI),
64
- (this.QOF = schema.QOF),
65
- (this.RESH = schema.RESH),
66
- (this.SHIN = schema.SHIN),
67
- (this.SIN = schema.SIN),
68
- (this.TAV = schema.TAV),
69
- (this.TAV_DAGESH = schema.TAV_DAGESH),
70
- (this.DIVINE_NAME = schema.DIVINE_NAME),
71
- (this.SYLLABLE_SEPARATOR = schema.SYLLABLE_SEPARATOR),
72
- (this.ADDITIONAL_FEATURES = schema.ADDITIONAL_FEATURES),
73
- (this.STRESS_MARKER = schema.STRESS_MARKER),
74
- (this.longVowels = schema.longVowels),
75
- (this.qametsQatan = schema.qametsQatan),
76
- (this.sqnmlvy = schema.sqnmlvy),
77
- (this.wawShureq = schema.wawShureq),
78
- (this.article = schema.article);
79
- }
80
- }
81
- exports.Schema = Schema;
82
- class SBL extends Schema {
83
- constructor(schema) {
84
- var _a, _b, _c, _d, _e, _f;
85
- super({
86
- VOCAL_SHEVA: schema.VOCAL_SHEVA || "ǝ",
87
- HATAF_SEGOL: schema.HATAF_SEGOL || "ĕ",
88
- HATAF_PATAH: schema.HATAF_PATAH || "ă",
89
- HATAF_QAMATS: schema.HATAF_QAMATS || "ŏ",
90
- HIRIQ: schema.HIRIQ || "i",
91
- TSERE: schema.TSERE || "ē",
92
- SEGOL: schema.SEGOL || "e",
93
- PATAH: schema.PATAH || "a",
94
- QAMATS: schema.QAMATS || "ā",
95
- HOLAM: schema.HOLAM || "ō",
96
- QUBUTS: schema.QUBUTS || "ū",
97
- DAGESH: schema.DAGESH || "",
98
- DAGESH_CHAZAQ: (_a = schema.DAGESH_CHAZAQ) !== null && _a !== void 0 ? _a : true,
99
- MAQAF: schema.MAQAF || "-",
100
- PASEQ: schema.PASEQ || "",
101
- SOF_PASUQ: schema.SOF_PASUQ || "",
102
- QAMATS_QATAN: schema.QAMATS_QATAN || "o",
103
- FURTIVE_PATAH: schema.FURTIVE_PATAH || "a",
104
- HIRIQ_YOD: schema.HIRIQ_YOD || "î",
105
- TSERE_YOD: schema.TSERE_YOD || "ê",
106
- SEGOL_YOD: schema.SEGOL_YOD || "ê",
107
- SHUREQ: schema.SHUREQ || "û",
108
- HOLAM_VAV: schema.HOLAM_VAV || "ô",
109
- QAMATS_HE: schema.QAMATS_HE || "â",
110
- SEGOL_HE: schema.SEGOL_HE || "ê",
111
- TSERE_HE: schema.TSERE_HE || "ê",
112
- MS_SUFX: schema.MS_SUFX || "āyw",
113
- ALEF: schema.ALEF || "ʾ",
114
- BET: schema.BET || "b",
115
- BET_DAGESH: schema.BET_DAGESH || undefined,
116
- GIMEL: schema.GIMEL || "g",
117
- GIMEL_DAGESH: schema.GIMEL_DAGESH || undefined,
118
- DALET: schema.DALET || "d",
119
- DALET_DAGESH: schema.DALET_DAGESH || undefined,
120
- HE: schema.HE || "h",
121
- VAV: schema.VAV || "w",
122
- ZAYIN: schema.ZAYIN || "z",
123
- HET: schema.HET || "ḥ",
124
- TET: schema.TET || "ṭ",
125
- YOD: schema.YOD || "y",
126
- FINAL_KAF: schema.FINAL_KAF || "k",
127
- KAF: schema.KAF || "k",
128
- KAF_DAGESH: schema.KAF_DAGESH || undefined,
129
- LAMED: schema.LAMED || "l",
130
- FINAL_MEM: schema.FINAL_MEM || "m",
131
- MEM: schema.MEM || "m",
132
- FINAL_NUN: schema.FINAL_NUN || "n",
133
- NUN: schema.NUN || "n",
134
- SAMEKH: schema.SAMEKH || "s",
135
- AYIN: schema.AYIN || "ʿ",
136
- FINAL_PE: schema.FINAL_PE || "p",
137
- PE: schema.PE || "p",
138
- PE_DAGESH: schema.PE_DAGESH || undefined,
139
- FINAL_TSADI: schema.FINAL_TSADI || "ṣ",
140
- TSADI: schema.TSADI || "ṣ",
141
- QOF: schema.QOF || "q",
142
- RESH: schema.RESH || "r",
143
- SHIN: schema.SHIN || "š",
144
- SIN: schema.SIN || "ś",
145
- TAV: schema.TAV || "t",
146
- TAV_DAGESH: schema.TAV_DAGESH || undefined,
147
- DIVINE_NAME: schema.DIVINE_NAME || "yhwh",
148
- SYLLABLE_SEPARATOR: schema.SYLLABLE_SEPARATOR || undefined,
149
- ADDITIONAL_FEATURES: schema.ADDITIONAL_FEATURES || undefined,
150
- STRESS_MARKER: schema.STRESS_MARKER || undefined,
151
- longVowels: (_b = schema.longVowels) !== null && _b !== void 0 ? _b : true,
152
- qametsQatan: (_c = schema.qametsQatan) !== null && _c !== void 0 ? _c : true,
153
- sqnmlvy: (_d = schema.sqnmlvy) !== null && _d !== void 0 ? _d : true,
154
- wawShureq: (_e = schema.wawShureq) !== null && _e !== void 0 ? _e : true,
155
- article: (_f = schema.article) !== null && _f !== void 0 ? _f : true
156
- });
157
- }
158
- }
159
- exports.SBL = SBL;
160
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings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AAS;YAC1C,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,MAAM;YACzC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,IAAI,SAAS;YAC1D,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,IAAI,SAAS;YAC5D,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,SAAS;YAChD,UAAU,EAAE,MAAA,MAAM,CAAC,UAAU,mCAAI,IAAI;YACrC,WAAW,EAAE,MAAA,MAAM,CAAC,WAAW,mCAAI,IAAI;YACvC,OAAO,EAAE,MAAA,MAAM,CAAC,OAAO,mCAAI,IAAI;YAC/B,SAAS,EAAE,MAAA,MAAM,CAAC,SAAS,mCAAI,IAAI;YACnC,OAAO,EAAE,MAAA,MAAM,CAAC,OAAO,mCAAI,IAAI;SAChC,CAAC,CAAC;IACL,CAAC;CACF;AA3ED,kBA2EC"}
@@ -1,18 +0,0 @@
1
- export declare const vowels: RegExp;
2
- /**
3
- * sequences Hebrew charactes according to the [SBL Hebrew Font Manual](https://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf)
4
- *
5
- * @param text - a string of Hebrew character
6
- * @param qametsQatan - option to convert regular qamets characters to qamets qatan
7
- * @returns a sequenced string of text
8
- * @remarks
9
- * seqeuncing follows the pattern of: consonant - dagesh - vowel - ta'am as defined in the {@link https://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf | SBL Hebrew Font Manual}
10
- *
11
- * @example
12
- *
13
- * ```ts
14
- * heb.sequence("\u{5D1}\u{5B0}\u{5BC}\u{5E8}\u{5B5}\u{5D0}\u{5E9}\u{5B4}\u{5C1}\u{596}\u{5D9}\u{5EA}");
15
- * "\u{5D1}\u{5BC}\u{5B0}\u{5E8}\u{5B5}\u{5D0}\u{5E9}\u{5C1}\u{5B4}\u{596}\u{5D9}\u{5EA}";
16
- * ```
17
- */
18
- export declare const sequence: (text: string, qametsQatan?: boolean) => string;
package/dist/sequence.js DELETED
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sequence = exports.vowels = void 0;
4
- const havarotjs_1 = require("havarotjs");
5
- exports.vowels = /[\u{05B0}-\u{05BD}\u{05BF}\u{05C7}]/u;
6
- /**
7
- * sequences Hebrew charactes according to the [SBL Hebrew Font Manual](https://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf)
8
- *
9
- * @param text - a string of Hebrew character
10
- * @param qametsQatan - option to convert regular qamets characters to qamets qatan
11
- * @returns a sequenced string of text
12
- * @remarks
13
- * seqeuncing follows the pattern of: consonant - dagesh - vowel - ta'am as defined in the {@link https://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf | SBL Hebrew Font Manual}
14
- *
15
- * @example
16
- *
17
- * ```ts
18
- * heb.sequence("\u{5D1}\u{5B0}\u{5BC}\u{5E8}\u{5B5}\u{5D0}\u{5E9}\u{5B4}\u{5C1}\u{596}\u{5D9}\u{5EA}");
19
- * "\u{5D1}\u{5BC}\u{5B0}\u{5E8}\u{5B5}\u{5D0}\u{5E9}\u{5C1}\u{5B4}\u{596}\u{5D9}\u{5EA}";
20
- * ```
21
- */
22
- const sequence = (text, qametsQatan = false) => {
23
- return exports.vowels.test(text) ? new havarotjs_1.Text(text, { qametsQatan }).text : text;
24
- };
25
- exports.sequence = sequence;
26
- //# sourceMappingURL=sequence.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sequence.js","sourceRoot":"","sources":["../src/sequence.ts"],"names":[],"mappings":";;;AAAA,yCAAiC;AAEpB,QAAA,MAAM,GAAG,sCAAsC,CAAC;AAE7D;;;;;;;;;;;;;;;GAeG;AACI,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,WAAW,GAAG,KAAK,EAAU,EAAE;IACpE,OAAO,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,gBAAI,CAAC,IAAI,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AACzE,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB"}
@@ -1,4 +0,0 @@
1
- export declare const testEach: (array: string[], { qametsQatan, isSimple }?: {
2
- qametsQatan?: boolean | undefined;
3
- isSimple?: boolean | undefined;
4
- }) => string[];