hcu

hebrew-code-util

Utility functions for Hebrew Unicode

Showing:

Popularity

Downloads/wk

4

GitHub Stars

2

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

Yes?

Categories

Readme

hebrew-code-util

npm version npm module downloads Build Status License: MIT Dependency Status Coverage Status Gitter

Hebrew unicode utilities

Installation

In order to use this library, Node.js should be installed. Then run:

npm install hebrew-code-util --save

Following bundles are available:

  • hebrew-code-util.js - UMD ES5 version for use in browser, node, etc.
  • hebrew-code-util.min.js - minified version of hebrew-code-util.js
  • hebrew-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/hebrew-code-util/-/hebrew-code-util-1.0.6.tgz

More information

Peshitta App

Beth Mardutho

CAL

License

MIT

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 @peshittapor Gitter

Development

npm install
npm run build

API Reference

hebrewCodeUtil.consonantsByName : Object.<string, string>

Hebrew consonant name to value map

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.consonants : Array.<string>

Hebrew base 22 consonants

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.finalConsonants : Array.<string>

Hebrew 5 final consonants

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.withFinalConsonants : Array.<string>

Hebrew 5 with final pair consonants

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.toFinalConsonantMap : Object.<string, string>

Map from regular to final consonant

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.begadkepat : Array.<string>

Begadkepat letters

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.yiddishDigraphs : Array.<string>

Yiddish digraphs

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.allConsonants : Array.<string>

All Hebrew consonants including final ones and yiddish digraphs

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.punctuation : Array.<string>

Hebrew punctuation

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.vowelsByName : Object.<string, string>

Hebrew vowel name to value map

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.commonVowels : Array.<string>

Hebrew common vowels - common in relation to Syriac

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.easternCommonVowels : Array.<string>

Hebrew vowels common to eastern syriac

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.otherVowels : Array.<string>

Rest of Hebrew vowels

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.allVowels : Array.<string>

All Hebrew vowels

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.diacriticsByName : Array.<string>

Hebrew regular diacritics name/value map

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.diacritics : Array.<string>

Hebrew regular diacritics

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.cantillationDiacritics : Array.<string>

Hebrew cantillation marks

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.allDiacritics : Array.<string>

All hebrew diacritics

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.dotting : Array.<string>

Vowels and diacritics: used for consonantal only mapping

Kind: static constant of hebrewCodeUtil

hebrewCodeUtil.letterAsciiMap : Object.<string, string>

Hebrew 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 hebrewCodeUtil

hebrewCodeUtil.isConsonant ⇒ boolean

Is character c a Hebrew consonant? All consonants and diagraphs are included.

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is Hebrew consonant

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isFinalConsonant ⇒ boolean

Is character c one of the 5 Hebrew final consonant?

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is Hebrew final consonant

ParamTypeDescription
cstringinput character

hebrewCodeUtil.hasFinalConsonant ⇒ boolean

Is character c one of the 5 Hebrew consonant that have final pairs?

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is Hebrew consonant with final pair

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isVowel ⇒ boolean

Is character c a vowel? Shuruq may stand as diagraph too - context needed for that.

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is a vowel

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isRegularDiacritic ⇒ boolean

Is character c a regular diacritic?

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is a regular diacritic

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isCantillationDiacritic ⇒ boolean

Is character c a cantillation diacritic?

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is a cantillation diacritic

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isDiacritic ⇒ boolean

Is character c a diacritic.

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is a diacritic

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isPunctuation ⇒ boolean

Is character c a punctuation character.

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is punctuation

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isDotting ⇒ boolean

Returns true if c is dotting character

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is dotting

ParamTypeDescription
cstringinput character

hebrewCodeUtil.isDotted ⇒ boolean

Return true if input word has vowels or diacritics

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if word has vowels or diacritics

ParamTypeDescription
wordstringinput Hebrew unicode word

hebrewCodeUtil.isBegadkepat ⇒ boolean

Returns true if c is begadkepat character

Kind: static constant of hebrewCodeUtil
Returns: boolean - true if c is begadkepat

ParamTypeDescription
cstringinput character

hebrewCodeUtil.removeDotting ⇒ string

Remove dotting (vowels and diacritics), leaving consonantal word only.

Kind: static constant of hebrewCodeUtil
Returns: string - consonantal word

ParamTypeDescription
wordstringinput word to be processed

hebrewCodeUtil.endify ⇒ string

Fix end consonant for a Hebrew word

Kind: static constant of hebrewCodeUtil
Returns: string - word with end consonant corrected

ParamTypeDescription
wordstringinput word

hebrewCodeUtil.sort ⇒ number

Comparator function to be used for sorting words

Kind: static constant of hebrewCodeUtil
Returns: number - -1, 0, 1 depending on word sorting

ParamTypeDescription
word1stringfirst word to compare
word2stringsecond word to compare

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial