Char
Defined in: char.ts:9
A Hebrew character and its positioning number for being sequenced correctly. See Cluster for correct normalization.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Char(
char):Char
Defined in: char.ts:15
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
char | string |
Returns
Section titled “Returns”Char
Accessors
Section titled “Accessors”characterName
Section titled “characterName”Get Signature
Section titled “Get Signature”get characterName():
null|"ETNAHTA"|"SEGOL_ACCENT"|"SHALSHELET"|"ZAQEF_QATAN"|"ZAQEF_GADOL"|"TIPEHA"|"REVIA"|"ZARQA"|"PASHTA"|"YETIV"|"TEVIR"|"GERESH"|"GERESH_MUQDAM"|"GERSHAYIM"|"QARNEY_PARA"|"TELISHA_GEDOLA"|"PAZER"|"ATNAH_HAFUKH"|"MUNAH"|"MAHAPAKH"|"MERKHA"|"MERKHA_KEFULA"|"DARGA"|"QADMA"|"TELISHA_QETANA"|"YERAH_BEN_YOMO"|"OLE"|"ILUY"|"DEHI"|"ZINOR"|"HATAF_SEGOL"|"HATAF_PATAH"|"HATAF_QAMATS"|"HIRIQ"|"TSERE"|"SEGOL"|"PATAH"|"QAMATS"|"HOLAM"|"HOLAM_HASER"|"QUBUTS"|"QAMATS_QATAN"|"ALEF"|"BET"|"GIMEL"|"DALET"|"HE"|"VAV"|"ZAYIN"|"HET"|"TET"|"YOD"|"FINAL_KAF"|"KAF"|"LAMED"|"FINAL_MEM"|"MEM"|"FINAL_NUN"|"NUN"|"SAMEKH"|"AYIN"|"FINAL_PE"|"PE"|"FINAL_TSADI"|"TSADI"|"QOF"|"RESH"|"SHIN"|"TAV"|"SHEVA"|"DAGESH"|"RAFE"|"MAQAF"|"PASEQ"|"SOF_PASUQ"|"NUN_HAFUKHA"|"GERESH_PUNCTUATION"|"GERSHAYIM_PUNCTUATION"|"SHIN_DOT"|"SIN_DOT"|"MASORA_CIRCLE"|"UPPER_DOT"|"LOWER_DOT"|"YOD_TRIANGLE"|"DOUBLE_VAV"|"VAV_YOD"|"DOUBLE_YOD"
Defined in: char.ts:240
Returns the name of the character
Example
Section titled “Example”const text = new Text("אֱלֹהִ֑ים");text.chars[0].characterName;// "ALEF"Returns
Section titled “Returns”null | "ETNAHTA" | "SEGOL_ACCENT" | "SHALSHELET" | "ZAQEF_QATAN" | "ZAQEF_GADOL" | "TIPEHA" | "REVIA" | "ZARQA" | "PASHTA" | "YETIV" | "TEVIR" | "GERESH" | "GERESH_MUQDAM" | "GERSHAYIM" | "QARNEY_PARA" | "TELISHA_GEDOLA" | "PAZER" | "ATNAH_HAFUKH" | "MUNAH" | "MAHAPAKH" | "MERKHA" | "MERKHA_KEFULA" | "DARGA" | "QADMA" | "TELISHA_QETANA" | "YERAH_BEN_YOMO" | "OLE" | "ILUY" | "DEHI" | "ZINOR" | "HATAF_SEGOL" | "HATAF_PATAH" | "HATAF_QAMATS" | "HIRIQ" | "TSERE" | "SEGOL" | "PATAH" | "QAMATS" | "HOLAM" | "HOLAM_HASER" | "QUBUTS" | "QAMATS_QATAN" | "ALEF" | "BET" | "GIMEL" | "DALET" | "HE" | "VAV" | "ZAYIN" | "HET" | "TET" | "YOD" | "FINAL_KAF" | "KAF" | "LAMED" | "FINAL_MEM" | "MEM" | "FINAL_NUN" | "NUN" | "SAMEKH" | "AYIN" | "FINAL_PE" | "PE" | "FINAL_TSADI" | "TSADI" | "QOF" | "RESH" | "SHIN" | "TAV" | "SHEVA" | "DAGESH" | "RAFE" | "MAQAF" | "PASEQ" | "SOF_PASUQ" | "NUN_HAFUKHA" | "GERESH_PUNCTUATION" | "GERSHAYIM_PUNCTUATION" | "SHIN_DOT" | "SIN_DOT" | "MASORA_CIRCLE" | "UPPER_DOT" | "LOWER_DOT" | "YOD_TRIANGLE" | "DOUBLE_VAV" | "VAV_YOD" | "DOUBLE_YOD"
cluster
Section titled “cluster”Get Signature
Section titled “Get Signature”get cluster():
null|Cluster
Defined in: char.ts:95
The parent Cluster of the character, if any.
Example
Section titled “Example”const text = new Text("דָּבָר");const firstChar = text.chars[0];firstChar.text;// "ד"firstChar.cluster?.text;// "דָּ"Returns
Section titled “Returns”null | Cluster
Set Signature
Section titled “Set Signature”set cluster(
cluster):void
Defined in: char.ts:99
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
cluster | null | Cluster |
Returns
Section titled “Returns”void
isConsonant
Section titled “isConsonant”Get Signature
Section titled “Get Signature”get isConsonant():
boolean
Defined in: char.ts:128
Returns true if the character is a consonant
Example
Section titled “Example”const text = new Text("אֱלֹהִ֑ים");text.chars[0].isConsonant;// trueReturns
Section titled “Returns”boolean
isDagesh
Section titled “isDagesh”Get Signature
Section titled “Get Signature”get isDagesh():
boolean
Defined in: char.ts:156
Returns true if the character is a dagesh
Example
Section titled “Example”const text = new Text("בּ");text.chars[1].isDagesh;// trueReturns
Section titled “Returns”boolean
isLigature
Section titled “isLigature”Get Signature
Section titled “Get Signature”get isLigature():
boolean
Defined in: char.ts:142
Returns true if the character is a ligature
Example
Section titled “Example”const text = new Text("שָׁלֽוֹם");text.chars[1].isLigature;// trueReturns
Section titled “Returns”boolean
isNotHebrew
Section titled “isNotHebrew”Get Signature
Section titled “Get Signature”get isNotHebrew():
boolean
Defined in: char.ts:226
Returns true if the character is not a Hebrew character
Example
Section titled “Example”const text = new Text("a");text.chars[0].isNotHebrew;// trueReturns
Section titled “Returns”boolean
isRafe
Section titled “isRafe”Get Signature
Section titled “Get Signature”get isRafe():
boolean
Defined in: char.ts:170
Returns true if the character is a rafe
Example
Section titled “Example”const text = new Text("בֿ");text.chars[1].isRafe;// trueReturns
Section titled “Returns”boolean
isSheva
Section titled “isSheva”Get Signature
Section titled “Get Signature”get isSheva():
boolean
Defined in: char.ts:184
Returns true if the character is a sheva
Example
Section titled “Example”const text = new Text("בְ");text.chars[1].isSheva;// trueReturns
Section titled “Returns”boolean
isTaamim
Section titled “isTaamim”Get Signature
Section titled “Get Signature”get isTaamim():
boolean
Defined in: char.ts:212
Returns true if the character is a taamim
Example
Section titled “Example”const text = new Text("בֺ֨");text.chars[2].isTaamim;// trueReturns
Section titled “Returns”boolean
isVowel
Section titled “isVowel”Get Signature
Section titled “Get Signature”get isVowel():
boolean
Defined in: char.ts:198
Returns true if the character is a sheva
Example
Section titled “Example”const text = new Text("בֺ");text.chars[1].isVowel;// trueReturns
Section titled “Returns”boolean
sequencePosition
Section titled “sequencePosition”Get Signature
Section titled “Get Signature”get sequencePosition():
number
Defined in: char.ts:267
Gets the sequence position of the character
Example
Section titled “Example”const text = new Text("אֱלֹהִ֑ים");text.chars[0].sequencePosition; // the aleph// 0text.chars[1].sequencePosition; // the segol// 3Returns
Section titled “Returns”number
a number used for sequencing
- consonants = 0
- ligatures = 1
- dagesh or rafe = 2
- niqqud (i.e vowels) = 3
- taamim (i.e. accents) = 4
Get Signature
Section titled “Get Signature”get text():
string
Defined in: char.ts:283
The text of the character
Example
Section titled “Example”const text = new Text("אֱלֹהִ֑ים");text.chars[0].text;// "א"Returns
Section titled “Returns”string
the text of the Char
Methods
Section titled “Methods”isCharacterName()
Section titled “isCharacterName()”isCharacterName(
name):boolean
Defined in: char.ts:108
Returns true if the character is a character name
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
name | "ETNAHTA" | "SEGOL_ACCENT" | "SHALSHELET" | "ZAQEF_QATAN" | "ZAQEF_GADOL" | "TIPEHA" | "REVIA" | "ZARQA" | "PASHTA" | "YETIV" | "TEVIR" | "GERESH" | "GERESH_MUQDAM" | "GERSHAYIM" | "QARNEY_PARA" | "TELISHA_GEDOLA" | "PAZER" | "ATNAH_HAFUKH" | "MUNAH" | "MAHAPAKH" | "MERKHA" | "MERKHA_KEFULA" | "DARGA" | "QADMA" | "TELISHA_QETANA" | "YERAH_BEN_YOMO" | "OLE" | "ILUY" | "DEHI" | "ZINOR" | "HATAF_SEGOL" | "HATAF_PATAH" | "HATAF_QAMATS" | "HIRIQ" | "TSERE" | "SEGOL" | "PATAH" | "QAMATS" | "HOLAM" | "HOLAM_HASER" | "QUBUTS" | "QAMATS_QATAN" | "ALEF" | "BET" | "GIMEL" | "DALET" | "HE" | "VAV" | "ZAYIN" | "HET" | "TET" | "YOD" | "FINAL_KAF" | "KAF" | "LAMED" | "FINAL_MEM" | "MEM" | "FINAL_NUN" | "NUN" | "SAMEKH" | "AYIN" | "FINAL_PE" | "PE" | "FINAL_TSADI" | "TSADI" | "QOF" | "RESH" | "SHIN" | "TAV" | "SHEVA" | "DAGESH" | "RAFE" | "MAQAF" | "PASEQ" | "SOF_PASUQ" | "NUN_HAFUKHA" | "GERESH_PUNCTUATION" | "GERSHAYIM_PUNCTUATION" | "SHIN_DOT" | "SIN_DOT" | "MASORA_CIRCLE" | "UPPER_DOT" | "LOWER_DOT" | "YOD_TRIANGLE" | "DOUBLE_VAV" | "VAV_YOD" | "DOUBLE_YOD" | a character name |
Returns
Section titled “Returns”boolean