Schema
Class for defining a schema for transliteration.
Remarks
Examples are truncated for brevity.
Extended by
Implements
SylOpts
SchemaVowels
Constructors
new Schema()
new Schema(
schema
):Schema
Parameters
Parameter | Type |
---|---|
schema | Schema |
Returns
Defined in
Consonants
ALEF
ALEF:
string
HEBREW LETTER ALEF (U+05D0) א
Example
Defined in
AYIN
AYIN:
string
HEBREW LETTER AYIN (U+05E2) ע
Example
Defined in
BET
BET:
string
HEBREW LETTER BET (U+05D1) ב
Example
Defined in
BET_DAGESH?
optional
BET_DAGESH:string
HEBREW LETTER BET (U+05D1) and DAGESH (U+05BC) ּב
Examples
With only BET
set
With BET
and BET_DAGESH
set
Remarks
The letter bet with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
DALET
DALET:
string
HEBREW LETTER DALET (U+05D3) ד
Example
Defined in
DALET_DAGESH?
optional
DALET_DAGESH:string
HEBREW LETTER DALET (U+05D3) and DAGESH (U+05BC) דּ
Examples
With only DALET
set
With DALET
and DALET_DAGESH
set
Remarks
The letter dalet with a dagesh kal. Ue when need to distinguish between spirantized forms
Defined in
FINAL_KAF
FINAL_KAF:
string
HEBREW LETTER FINAL KAF (U+05DA) ך
Example
Defined in
FINAL_MEM
FINAL_MEM:
string
HEBREW LETTER FINAL MEM (U+05DD) ם
Example
Defined in
FINAL_NUN
FINAL_NUN:
string
HEBREW LETTER FINAL NUN (U+05DF) ן
Example
Defined in
FINAL_PE
FINAL_PE:
string
HEBREW LETTER FINAL PE (U+05E3) ף
Example
Defined in
FINAL_TSADI
FINAL_TSADI:
string
HEBREW LETTER FINAL TSADI (U+05E5) ץ
Example
Defined in
GIMEL
GIMEL:
string
HEBREW LETTER GIMEL (U+05D2) ג
Example
Defined in
GIMEL_DAGESH?
optional
GIMEL_DAGESH:string
HEBREW LETTER GIMEL (U+05D2) and DAGESH (U+05BC) גּ
Examples
With only GIMEL
set
With GIMEL
and GIMEL_DAGESH
set
Remarks
The letter gimel with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
HE
HE:
string
HEBREW LETTER HE (U+05D4) ה
Example
Defined in
HET
HET:
string
HEBREW LETTER HET (U+05D7) ח
Example
Defined in
KAF
KAF:
string
HEBREW LETTER KAF (U+05DB) כ
Example
Defined in
KAF_DAGESH?
optional
KAF_DAGESH:string
HEBREW LETTER KAF (U+05DB) and DAGESH (U+05BC) כּ
Examples
With only KAF
set
With KAF
set and KAF_DAGESH
set
Remarks
The letter kaf with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
LAMED
LAMED:
string
HEBREW LETTER LAMED (U+05DC) ל
Example
Defined in
MEM
MEM:
string
HEBREW LETTER MEM (U+05DE) מ
Example
Defined in
NUN
NUN:
string
HEBREW LETTER NUN (U+05E0) נ
Example
Defined in
PE
PE:
string
HEBREW LETTER PE (U+05E4) פ
Example
Defined in
PE_DAGESH?
optional
PE_DAGESH:string
HEBREW LETTER PE (U+05E4) and DAGESH (U+05BC) פּ
Examples
With only PE
set
With PE
and PE_DAGESH
set
Remarks
The letter pe with a dagesh kal Use when need to distinguish between spirantized forms
Defined in
QOF
QOF:
string
HEBREW LETTER QOF (U+05E7) ק
Example
Defined in
RESH
RESH:
string
HEBREW LETTER RESH (U+05E8) ר
Example
Defined in
SAMEKH
SAMEKH:
string
HEBREW LETTER SAMEKH (U+05E1) ס
Example
Defined in
SHIN
SHIN:
string
HEBREW LETTER SHIN (U+05E9) and SHIN DOT (U+05C1) שׁ
Example
Defined in
SIN
SIN:
string
HEBREW LETTER SHIN (U+05E9) and SIN DOT (U+05C2) שׁ
Example
Defined in
TAV
TAV:
string
HEBREW LETTER TAV (U+05EA) ת
Example
Defined in
TAV_DAGESH?
optional
TAV_DAGESH:string
HEBREW LETTER TAV (U+05EA) and DAGESH (U+05BC) תּ
Examples
With only TAV
set
With TAV
and TAV_DAGESH
set
Remarks
The letter tav with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
TET
TET:
string
HEBREW LETTER TET (U+05D8) ט
Example
Defined in
TSADI
TSADI:
string
HEBREW LETTER TSADI (U+05E6) צ
Example
Defined in
VAV
VAV:
string
HEBREW LETTER VAV (U+05D5) ו
Example
Defined in
YOD
YOD:
string
HEBREW LETTER YOD (U+05D9) י
Example
Defined in
ZAYIN
ZAYIN:
string
HEBREW LETTER ZAYIN (U+05D6) ז
Example
Defined in
Marks
DAGESH
DAGESH:
string
HEBREW POINT DAGESH OR MAPIQ (U+05BC) ּ◌
Examples
A blank string
A character
Remarks
Typically, this should be a blank string.
Defined in
DAGESH_CHAZAQ
DAGESH_CHAZAQ:
string
|boolean
HEBREW POINT DAGESH OR MAPIQ (U+05BC) ּ◌
A string or boolean, and if set to true
, the consonant with the dagesh is repeated.
Examples
As a string
As a boolean
Defined in
MAQAF
MAQAF:
string
HEBREW PUNCTUATION MAQAF (U+05BE) ־◌
Example
Defined in
PASEQ
PASEQ:
string
HEBREW PUNCTUATION PASEQ (U+05C0) ׀ ◌
Example
Remarks
If a blank string, two spaces will occur between words; see example.
Defined in
SOF_PASUQ
SOF_PASUQ:
string
HEBREW PUNCTUATION SOF PASUQ (U+05C3) ׃◌
Example
Defined in
Orthographic Features
ADDITIONAL_FEATURES?
optional
ADDITIONAL_FEATURES: (WordFeature
|SyllableFeature
|ClusterFeature
)[]
Rules for customized output
This property is an array of objects with the following properties each:
FEATURE
: the type of feature that the rule is checking — “word”, “syllable”, or “cluster”HEBREW
: the Hebrew text that the rule matches, given as a string or RegexPASS_THROUGH?
: An optional property;true
if the rule should pass the characters of the result of theTRANSLITERATION
callback to the be mapped to the schemaTRANSLITERATION
: the output of the rule, either a string or a callback whose properties differ based on theFEATURE
The examples give the best indication of how to use these features, though see the particular types for more details
Examples
FEATURE
is "word"
and TRANSLITERATION
is a string
FEATURE
is "word"
and TRANSLITERATION
is a callback
FEATURE
is "syllable"
and TRANSLITERATION
is a string
FEATURE
is "syllable"
and TRANSLITERATION
is a callback
FEATURE
is "cluster"
and TRANSLITERATION
is a string
FEATURE
is “cluster” and TRANSLITERATION
is a callback
Defined in
BET_DAGESH?
optional
BET_DAGESH:string
HEBREW LETTER BET (U+05D1) and DAGESH (U+05BC) ּב
Examples
With only BET
set
With BET
and BET_DAGESH
set
Remarks
The letter bet with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
DAGESH_CHAZAQ
DAGESH_CHAZAQ:
string
|boolean
HEBREW POINT DAGESH OR MAPIQ (U+05BC) ּ◌
A string or boolean, and if set to true
, the consonant with the dagesh is repeated.
Examples
As a string
As a boolean
Defined in
DALET_DAGESH?
optional
DALET_DAGESH:string
HEBREW LETTER DALET (U+05D3) and DAGESH (U+05BC) דּ
Examples
With only DALET
set
With DALET
and DALET_DAGESH
set
Remarks
The letter dalet with a dagesh kal. Ue when need to distinguish between spirantized forms
Defined in
DIVINE_NAME
DIVINE_NAME:
string
The full form of the divine name - יהוה
Example
Defined in
DIVINE_NAME_ELOHIM?
optional
DIVINE_NAME_ELOHIM:string
The full form of the divine name pointed as ‘elohim
Example
Remarks
Matches on the forms:
- יֱהֹוִה
- יֱהוִה
- יְהֹוִה
- יְהוִה
If
undefined
, defaults to value of DIVINE_NAME
Defined in
FURTIVE_PATAH
FURTIVE_PATAH:
string
HEBREW POINT PATAH (U+05B7) ◌ַ as a furtive patah
Example
Defined in
GIMEL_DAGESH?
optional
GIMEL_DAGESH:string
HEBREW LETTER GIMEL (U+05D2) and DAGESH (U+05BC) גּ
Examples
With only GIMEL
set
With GIMEL
and GIMEL_DAGESH
set
Remarks
The letter gimel with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
HIRIQ_YOD
HIRIQ_YOD:
string
HEBREW POINT HIRIQ (U+05B4) and YOD (U+05D9) י◌ִ
Example
Defined in
HOLAM_VAV
HOLAM_VAV:
string
HEBREW LETTER HOLAM (U+05B9) and VAV (U+05D5) ֹו◌
Example
Defined in
KAF_DAGESH?
optional
KAF_DAGESH:string
HEBREW LETTER KAF (U+05DB) and DAGESH (U+05BC) כּ
Examples
With only KAF
set
With KAF
set and KAF_DAGESH
set
Remarks
The letter kaf with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
MS_SUFX
MS_SUFX:
string
HEBREW LETTER QAMATS (U+05B8) and YOD (U+05D9) and VAV (U+05D5) יו◌ָ
Example
Defined in
PE_DAGESH?
optional
PE_DAGESH:string
HEBREW LETTER PE (U+05E4) and DAGESH (U+05BC) פּ
Examples
With only PE
set
With PE
and PE_DAGESH
set
Remarks
The letter pe with a dagesh kal Use when need to distinguish between spirantized forms
Defined in
QAMATS_HE
QAMATS_HE:
string
HEBREW POINT QAMATS (U+05B8) and HE (U+05D4) ה◌ָ
Example
Defined in
SEGOL_HE
SEGOL_HE:
string
HEBREW POINT SEGOL (U+05B6) and HE (U+05D4) ה◌ֶ
Example
Defined in
SEGOL_YOD
SEGOL_YOD:
string
HEBREW POINT SEGOL (U+05B6) and YOD (U+05D9) י◌ֶ
Example
Defined in
SHIN
SHIN:
string
HEBREW LETTER SHIN (U+05E9) and SHIN DOT (U+05C1) שׁ
Example
Defined in
SHUREQ
SHUREQ:
string
HEBREW LETTER VAV (U+05D5) and DAGESH (U+05BC) וּ
Example
Defined in
SIN
SIN:
string
HEBREW LETTER SHIN (U+05E9) and SIN DOT (U+05C2) שׁ
Example
Defined in
STRESS_MARKER?
optional
STRESS_MARKER: {exclude
:"never"
|"final"
|"single"
;location
:"before-syllable"
|"after-syllable"
|"before-vowel"
|"after-vowel"
;mark
:string
; }
A mark for indentifying the stressed syllable
exclude?
optional
exclude:"never"
|"final"
|"single"
Whether to exclude the mark on certain syllables
Default
Examples
undefined
and "never"
are the same
Exclude only single syllable words using "single"
Exclude when accent is on the final syllable, implicitly excluding single syllable words using "final"
location
location:
"before-syllable"
|"after-syllable"
|"before-vowel"
|"after-vowel"
The location of the mark
mark
mark:
string
A string to use as the marker
Example
Remarks
Taamim are needed in the Hebrew text to correctly identify stress.
Defined in
SYLLABLE_SEPARATOR?
optional
SYLLABLE_SEPARATOR:string
A syllable separator, usually an empty string
Example
Defined in
TAV_DAGESH?
optional
TAV_DAGESH:string
HEBREW LETTER TAV (U+05EA) and DAGESH (U+05BC) תּ
Examples
With only TAV
set
With TAV
and TAV_DAGESH
set
Remarks
The letter tav with a dagesh kal. Use when need to distinguish between spirantized forms
Defined in
TSERE_HE
TSERE_HE:
string
HEBREW POINT TSERE (U+05B5) and HE (U+05D4) ה◌ֵ
Example
Defined in
TSERE_YOD
TSERE_YOD:
string
HEBREW POINT TSERE (U+05B5) and YOD (U+05D9) י◌ֵ
Example
Defined in
Syllabification
allowNoNiqqud
allowNoNiqqud:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
article
article:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
holemHaser
holemHaser:
undefined
|"update"
|"preserve"
|"remove"
Remarks
See implementation for more details
Implementation of
Defined in
ketivQeres?
optional
ketivQeres:KetivQere
[]
Remarks
See implementation for more details
Implementation of
Defined in
longVowels
longVowels:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
qametsQatan
qametsQatan:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
shevaAfterMeteg
shevaAfterMeteg:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
shevaWithMeteg?
optional
shevaWithMeteg:boolean
Remarks
See implementation for more details
Implementation of
Defined in
sqnmlvy
sqnmlvy:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
strict
strict:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
wawShureq
wawShureq:
undefined
|boolean
Remarks
See implementation for more details
Implementation of
Defined in
Taamim
MAQAF
MAQAF:
string
HEBREW PUNCTUATION MAQAF (U+05BE) ־◌
Example
Defined in
SOF_PASUQ
SOF_PASUQ:
string
HEBREW PUNCTUATION SOF PASUQ (U+05C3) ׃◌
Example
Defined in
Vowels
FURTIVE_PATAH
FURTIVE_PATAH:
string
HEBREW POINT PATAH (U+05B7) ◌ַ as a furtive patah
Example
Defined in
HATAF_PATAH
HATAF_PATAH:
string
HEBREW POINT HATAF PATAH (U+05B2) ֲ◌
Example
Implementation of
SchemaVowels.HATAF_PATAH
Defined in
HATAF_QAMATS
HATAF_QAMATS:
string
HEBREW POINT HATAF QAMATS (U+05B3) ֳ◌
Example
Implementation of
SchemaVowels.HATAF_QAMATS
Defined in
HATAF_SEGOL
HATAF_SEGOL:
string
HEBREW POINT HATAF SEGOL (U+05B1) ֱ◌
Example
Implementation of
SchemaVowels.HATAF_SEGOL
Defined in
HIRIQ
HIRIQ:
string
HEBREW POINT HIRIQ (U+05B4) ִ◌
Example
Implementation of
SchemaVowels.HIRIQ
Defined in
HIRIQ_YOD
HIRIQ_YOD:
string
HEBREW POINT HIRIQ (U+05B4) and YOD (U+05D9) י◌ִ
Example
Defined in
HOLAM
HOLAM:
string
HEBREW POINT HOLAM (U+05B9) ֹ◌
Example
Implementation of
SchemaVowels.HOLAM
Defined in
HOLAM_HASER
HOLAM_HASER:
string
HEBREW POINT HOLAM HASER FOR VAV (U+05BA) ֹ◌
Example
Remarks
See holemHaser for more about this character
Implementation of
SchemaVowels.HOLAM_HASER
Defined in
HOLAM_VAV
HOLAM_VAV:
string
HEBREW LETTER HOLAM (U+05B9) and VAV (U+05D5) ֹו◌
Example
Defined in
MS_SUFX
MS_SUFX:
string
HEBREW LETTER QAMATS (U+05B8) and YOD (U+05D9) and VAV (U+05D5) יו◌ָ
Example
Defined in
PATAH
PATAH:
string
HEBREW POINT PATAH (U+05B7) ַ◌
Example
Implementation of
SchemaVowels.PATAH
Defined in
QAMATS
QAMATS:
string
HEBREW POINT QAMATS (U+05B8) ָ◌
Example
Implementation of
SchemaVowels.QAMATS
Defined in
QAMATS_HE
QAMATS_HE:
string
HEBREW POINT QAMATS (U+05B8) and HE (U+05D4) ה◌ָ
Example
Defined in
QAMATS_QATAN
QAMATS_QATAN:
string
HEBREW POINT QAMATS QATAN (U+05C7) ׇ◌
Example
Remarks
See qametsQatan for details about this character.
Implementation of
SchemaVowels.QAMATS_QATAN
Defined in
QUBUTS
QUBUTS:
string
HEBREW POINT QUBUTS (U+05BB) ֻ◌
Example
Implementation of
SchemaVowels.QUBUTS
Defined in
SEGOL
SEGOL:
string
HEBREW POINT SEGOL (U+05B6) ֶ◌
Example
Implementation of
SchemaVowels.SEGOL
Defined in
SEGOL_HE
SEGOL_HE:
string
HEBREW POINT SEGOL (U+05B6) and HE (U+05D4) ה◌ֶ
Example
Defined in
SEGOL_YOD
SEGOL_YOD:
string
HEBREW POINT SEGOL (U+05B6) and YOD (U+05D9) י◌ֶ
Example
Defined in
SHUREQ
SHUREQ:
string
HEBREW LETTER VAV (U+05D5) and DAGESH (U+05BC) וּ
Example
Defined in
TSERE
TSERE:
string
HEBREW POINT TSERE (U+05B5) ֵ◌
Example
Implementation of
SchemaVowels.TSERE
Defined in
TSERE_HE
TSERE_HE:
string
HEBREW POINT TSERE (U+05B5) and HE (U+05D4) ה◌ֵ
Example
Defined in
TSERE_YOD
TSERE_YOD:
string
HEBREW POINT TSERE (U+05B5) and YOD (U+05D9) י◌ֵ
Example
Defined in
VOCAL_SHEVA
VOCAL_SHEVA:
string
HEBREW POINT SHEVA (U+05B0) ְ◌