hebrew-transliteration 2.3.0 → 2.3.1

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 CHANGED
@@ -468,13 +468,14 @@ export declare class Schema implements SylOpts {
468
468
  location: "before-syllable" | "after-syllable" | "before-vowel" | "after-vowel";
469
469
  mark: string;
470
470
  };
471
+ allowNoNiqqud: SylOpts["allowNoNiqqud"];
472
+ article: SylOpts["article"];
473
+ holemHaser: SylOpts["holemHaser"];
471
474
  longVowels: SylOpts["longVowels"];
472
475
  qametsQatan: SylOpts["qametsQatan"];
473
476
  sqnmlvy: SylOpts["sqnmlvy"];
474
- wawShureq: SylOpts["wawShureq"];
475
- article: SylOpts["article"];
476
- allowNoNiqqud: SylOpts["allowNoNiqqud"];
477
477
  strict: SylOpts["strict"];
478
+ wawShureq: SylOpts["wawShureq"];
478
479
  constructor(schema: Schema);
479
480
  }
480
481
  export declare class SBL extends Schema {
package/dist/schema.js CHANGED
@@ -78,6 +78,7 @@ class Schema {
78
78
  (this.article = schema.article),
79
79
  (this.allowNoNiqqud = schema.allowNoNiqqud),
80
80
  (this.strict = schema.strict);
81
+ this.holemHaser = schema.holemHaser;
81
82
  }
82
83
  }
83
84
  exports.Schema = Schema;
@@ -156,7 +157,8 @@ class SBL extends Schema {
156
157
  wawShureq: (_44 = schema.wawShureq) !== null && _44 !== void 0 ? _44 : true,
157
158
  article: (_45 = schema.article) !== null && _45 !== void 0 ? _45 : true,
158
159
  allowNoNiqqud: (_46 = schema.allowNoNiqqud) !== null && _46 !== void 0 ? _46 : true,
159
- strict: (_47 = schema.strict) !== null && _47 !== void 0 ? _47 : false
160
+ strict: (_47 = schema.strict) !== null && _47 !== void 0 ? _47 : false,
161
+ holemHaser: schema.holemHaser || "remove"
160
162
  });
161
163
  }
162
164
  }
@@ -71,5 +71,6 @@ exports.brillAcademic = {
71
71
  wawShureq: true,
72
72
  article: true,
73
73
  allowNoNiqqud: true,
74
- strict: false
74
+ strict: false,
75
+ holemHaser: "remove"
75
76
  };
@@ -70,5 +70,6 @@ exports.brillSimple = {
70
70
  wawShureq: true,
71
71
  article: true,
72
72
  allowNoNiqqud: true,
73
- strict: false
73
+ strict: false,
74
+ holemHaser: "remove"
74
75
  };
@@ -64,5 +64,6 @@ exports.michiganClaremont = {
64
64
  wawShureq: true,
65
65
  article: false,
66
66
  allowNoNiqqud: true,
67
- strict: false
67
+ strict: false,
68
+ holemHaser: "remove"
68
69
  };
@@ -70,5 +70,6 @@ exports.sblAcademicSpirantization = {
70
70
  wawShureq: true,
71
71
  article: true,
72
72
  allowNoNiqqud: true,
73
- strict: false
73
+ strict: false,
74
+ holemHaser: "remove"
74
75
  };
@@ -79,5 +79,6 @@ exports.sblSimple = {
79
79
  wawShureq: true,
80
80
  article: true,
81
81
  allowNoNiqqud: true,
82
- strict: false
82
+ strict: false,
83
+ holemHaser: "remove"
83
84
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hebrew-transliteration",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "a package for transliterating Hebrew",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -64,22 +64,22 @@
64
64
  "author": "Charles Loder",
65
65
  "license": "MIT",
66
66
  "devDependencies": {
67
- "@types/jest": "^29.2.2",
68
- "@typescript-eslint/eslint-plugin": "^5.42.1",
69
- "esbuild": "^0.15.13",
70
- "eslint": "^8.27.0",
67
+ "@types/jest": "^29.2.4",
68
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
69
+ "esbuild": "^0.16.8",
70
+ "eslint": "^8.30.0",
71
71
  "eslint-config-prettier": "^8.5.0",
72
- "eslint-plugin-jest": "^27.1.4",
73
- "eslint-plugin-jsdoc": "^39.6.2",
72
+ "eslint-plugin-jest": "^27.1.7",
73
+ "eslint-plugin-jsdoc": "^39.6.4",
74
74
  "eslint-plugin-prefer-arrow": "^1.2.3",
75
75
  "jest": "^29.3.1",
76
- "npm-check-updates": "^16.3.18",
76
+ "npm-check-updates": "^16.6.0",
77
77
  "npm-dts": "^1.3.12",
78
- "prettier": "^2.7.1",
78
+ "prettier": "^2.8.1",
79
79
  "ts-jest": "^29.0.3",
80
- "typescript": "^4.8.4"
80
+ "typescript": "^4.9.4"
81
81
  },
82
82
  "dependencies": {
83
- "havarotjs": "^0.11.2"
83
+ "havarotjs": "^0.12.0"
84
84
  }
85
85
  }
package/dist/.DS_Store DELETED
Binary file
@@ -1,2 +0,0 @@
1
- import { Schema } from "../schema";
2
- export declare const romaniote: Schema;
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.romaniote = void 0;
4
- exports.romaniote = {
5
- ALEF: "",
6
- BET: "β",
7
- BET_DAGESH: "μπ",
8
- GIMEL: "γ",
9
- GIMEL_DAGESH: "γκ",
10
- DALET: "δ",
11
- DALET_DAGESH: "ντ",
12
- HE: "",
13
- VAV: "β",
14
- ZAYIN: "ζ",
15
- HET: "χ",
16
- TET: "τ",
17
- YOD: "γι",
18
- KAF: "χ",
19
- KAF_DAGESH: "κ",
20
- FINAL_KAF: "χ",
21
- LAMED: "λ",
22
- MEM: "μ",
23
- FINAL_MEM: "μ",
24
- NUN: "ν",
25
- FINAL_NUN: "ν",
26
- SAMEKH: "σ",
27
- AYIN: "",
28
- PE: "φ",
29
- PE_DAGESH: "π",
30
- FINAL_PE: "φ",
31
- TSADI: "τσ",
32
- FINAL_TSADI: "τς",
33
- QOF: "κ",
34
- RESH: "ρ",
35
- SIN: "σ",
36
- SHIN: "σσ",
37
- TAV: "θ",
38
- TAV_DAGESH: "τ",
39
- DAGESH: "",
40
- DAGESH_CHAZAQ: false,
41
- VOCAL_SHEVA: "ε",
42
- PATAH: "α",
43
- HATAF_PATAH: "α",
44
- QAMATS: "α",
45
- HATAF_QAMATS: "ο",
46
- SEGOL: "ε",
47
- HATAF_SEGOL: "ε",
48
- TSERE: "ε",
49
- HIRIQ: "ι",
50
- HOLAM: "ω",
51
- QUBUTS: "ου",
52
- QAMATS_HE: "α",
53
- SEGOL_HE: "ε",
54
- TSERE_HE: "ε",
55
- SEGOL_YOD: "ε",
56
- HIRIQ_YOD: "η",
57
- TSERE_YOD: "ε",
58
- FURTIVE_PATAH: "a",
59
- QAMATS_QATAN: "ο",
60
- HOLAM_VAV: "ω",
61
- SHUREQ: "ου",
62
- MS_SUFX: "άβ",
63
- PASEQ: "",
64
- SOF_PASUQ: "",
65
- MAQAF: "-",
66
- DIVINE_NAME: "Αδωνάη",
67
- ADDITIONAL_FEATURES: [
68
- {
69
- FEATURE: "cluster",
70
- HEBREW: "זּ",
71
- TRANSLITERATION: "τζ"
72
- },
73
- {
74
- FEATURE: "syllable",
75
- HEBREW: "ִים",
76
- TRANSLITERATION: "είμ"
77
- },
78
- // https://github.com/microsoft/TypeScript/issues/36444
79
- // can I define a final tsere-yod where syllable.isFinal
80
- // https://stackoverflow.com/questions/56949513/typescript-type-of-a-property-dependent-on-another-property-within-the-same-obj
81
- {
82
- FEATURE: "syllable",
83
- HEBREW: "\u{05B5}\u{05D9}$",
84
- TRANSLITERATION: "αί"
85
- },
86
- {
87
- FEATURE: "syllable",
88
- HEBREW: "\u{05B5}\u{05D9}[\u{05BE}|-]?$",
89
- TRANSLITERATION: "αί-"
90
- },
91
- {
92
- FEATURE: "cluster",
93
- HEBREW: "\u{5E9}\u{5C1}$",
94
- TRANSLITERATION: "σς"
95
- },
96
- {
97
- FEATURE: "cluster",
98
- HEBREW: "\u{5E9}\u{5C1}$",
99
- TRANSLITERATION: "σς"
100
- }
101
- ],
102
- longVowels: true,
103
- sqnmlvy: true,
104
- qametsQatan: true,
105
- wawShureq: true,
106
- article: true,
107
- allowNoNiqqud: true,
108
- strict: false
109
- };