estrangela-code-util
Estrangela ASCII code font utilities
Installation
In order to use this library, Node.js should be installed. Then run:
npm install estrangela-code-util --save
Following bundles are available:
-
estrangela-code-util.js
- UMD ES5 version for use in browser, node, etc. -
estrangela-code-util.min.js
- minified version ofestrangela-code-util.js
-
estrangela-code-util.esm.js
- ES6 module version, suitable for bundling with other libraries and applications
The package could also be downloaded directly from: https://registry.npmjs.org/estrangela-code-util/-/estrangela-code-util-1.1.0.tgz
More information
Estrangela Font Encoding Chart
License
Contributing
The final goal for this work is to learn the Word of God as recorded by Peshitta. You are welcomed to improve this implementation or provide feedback. Please feel free to Fork, create a Pull Request or submit Issues.
To read quick updates about Peshitta app or post questions or feedback, follow
@peshittap
at or
Development
npm install
npm run build
API Reference
-
estrangelaCodeUtil
-
.consonantsByName :
Object.<string, string>
-
.baseConsonants :
Array.<string>
-
.finalConnected :
Array.<string>
-
.finalNonConnected :
Array.<string>
-
.ligatures :
Array.<string>
-
.allConsonants :
Array.<string>
-
.unconnected :
Array.<string>
-
.vowelsByName :
Object.<string, string>
-
.commonVowels :
Array.<string>
-
.easternVowels :
Array.<string>
-
.shiftedVowels :
Array.<string>
-
.baseVowels :
Array.<string>
-
.allVowels :
Array.<string>
-
.diacriticsByName :
Object.<string, string>
-
.commonDiacritics :
Array.<string>
-
.easternDiacritics :
Array.<string>
-
.baseDiacritics :
Array.<string>
-
.shiftedDiacritics :
Array.<string>
-
.allDiacritics :
Array.<string>
-
.punctuation :
Array.<string>
-
.joiners :
Array.<string>
-
.letterAsciiMap :
Object.<string, string>
-
.dotting :
Array.<string>
-
.isConsonant ⇒
boolean
-
.isVowel ⇒
boolean
-
.isDiacritic ⇒
boolean
-
.isPunctuation ⇒
boolean
-
.isJoiner ⇒
boolean
-
.isEasternDiacritic ⇒
boolean
-
.isUnconnected ⇒
boolean
-
.isDotting ⇒
boolean
-
.endify ⇒
string
-
.isDotted ⇒
boolean
-
.removeDotting ⇒
string
-
.sort ⇒
number
-
.consonantsByName :
Object.<string, string>
estrangelaCodeUtil.consonantsByName : Estrangela consonant name to value map
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.baseConsonants : Estrangela base consonants - the 22 aramaic consonants
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.finalConnected : Estrangela final connected modified consonants
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.finalNonConnected : Estrangela final non-connected modified consonants
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.ligatures : Estrangela 2 ligatures
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.allConsonants : All Estrangela font consonants
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.unconnected : Estrangela consonants unconnected on the left
Kind: static constant of estrangelaCodeUtil
Object.<string, string>
estrangelaCodeUtil.vowelsByName : Estrangela vowel name to value map
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.commonVowels : Estrangela common vowels - common to both eastern and western
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.easternVowels : Estrangela eastern only vowels
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.shiftedVowels : Estrangela shifted vowels (SHIFT key on)
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.baseVowels : Estrangela vowels (both common and eastern) - excluding shifted
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.allVowels : All Estrangela vowels (including shifted)
Kind: static constant of estrangelaCodeUtil
Object.<string, string>
estrangelaCodeUtil.diacriticsByName : Sedra/CAL diacritic name map
- qushaya: 2 - dot above
- rukkakha: 3 - dot below
- lineaOccultans: 5 - linea occultans
- seyame: * - seyame, rebwe
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.commonDiacritics : Estrangela base/common diacritics (both western and eastern)
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.easternDiacritics : Estrangela eastern specific diacritics
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.baseDiacritics : Estrangela diacritics - excluding shifted
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.shiftedDiacritics : Estrangela shifted diacritics
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.allDiacritics : All Estrangela diacritics (including shifted)
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.punctuation : Estrangela punctuation
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.joiners : Estrangela joiners
Kind: static constant of estrangelaCodeUtil
Object.<string, string>
estrangelaCodeUtil.letterAsciiMap : Estrangela to ordinal ASCII value. Used for sorting: a b c d e f g h i j k l m n o p q r s t u v w x y z { | }
Kind: static constant of estrangelaCodeUtil
Array.<string>
estrangelaCodeUtil.dotting : Vowels and diacritics: used for consonantal only mapping
Kind: static constant of estrangelaCodeUtil
boolean
estrangelaCodeUtil.isConsonant ⇒ Is character c an Estrangela consonant
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela consonant
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isVowel ⇒ Is character c an Estrangela vowel
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela vowel
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isDiacritic ⇒ Is character c an Estrangela diacritic
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela diacritic
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isPunctuation ⇒ Is character c an Estrangela punctuation
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela punctuation
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isJoiner ⇒ Is character c an Estrangela joiner
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela joiner
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isEasternDiacritic ⇒ Is character c an Estrangela Eastern Diacritic
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is Estrangela Eastern Diacritic
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isUnconnected ⇒ Is character c an unconnected on the left Estrangela consonant
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is unconnected on the left consonant
Param | Type | Description |
---|---|---|
c | string |
input character |
boolean
estrangelaCodeUtil.isDotting ⇒ Returns true if c is dotting character
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if c is dotting
Param | Type | Description |
---|---|---|
c | string |
input character |
string
estrangelaCodeUtil.endify ⇒ Fix end consonant for a word in base Estrangela font
Kind: static constant of estrangelaCodeUtil
Returns: string
- word with end consonant corrected
Param | Type | Description |
---|---|---|
word | string |
input word |
boolean
estrangelaCodeUtil.isDotted ⇒ Return true if input word has vowels or diacritics
Kind: static constant of estrangelaCodeUtil
Returns: boolean
- true if word has vowels or diacritics
Param | Type | Description |
---|---|---|
word | string |
input word |
string
estrangelaCodeUtil.removeDotting ⇒ Remove dotting (vowels and diacritics), leaving consonantal word only.
Kind: static constant of estrangelaCodeUtil
Returns: string
- consonantal word
Param | Type | Description |
---|---|---|
word | string |
input word to be processed |
number
estrangelaCodeUtil.sort ⇒ Comparator function to be used for sorting Estrangela words
Kind: static constant of estrangelaCodeUtil
Returns: number
- -1, 0, 1 depending on word sorting
Param | Type | Description |
---|---|---|
word1 | string |
first word to compare |
word2 | string |
second word to compare |