hebrew-transliteration 1.2.6 → 2.0.0

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