https://github.com/lamansky/hebrew
A JSON file of Hebrew character names and Unicode points.
https://github.com/lamansky/hebrew
characters hebrew json node-module unicode
Last synced: 5 months ago
JSON representation
A JSON file of Hebrew character names and Unicode points.
- Host: GitHub
- URL: https://github.com/lamansky/hebrew
- Owner: lamansky
- License: mit
- Created: 2018-08-15T14:48:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T15:09:54.000Z (about 7 years ago)
- Last Synced: 2025-04-25T16:19:18.293Z (5 months ago)
- Topics: characters, hebrew, json, node-module, unicode
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# hebrew
A JSON file of Hebrew character names and Unicode points.
## Rationale
Programming with Hebrew can be tricky. Code editors can have difficulty working with right-to-left characters in the midst of left-to-right code, and combining characters (which pointed Hebrew uses constantly) are almost impossible to work with by themselves in a code editor without rendering them as obscure codes like `\u05b0`.
This JSON file gives you named Hebrew character variables to work with, so you can, for example, type `holam` instead of `'\u05b9'`.
## Important Notes
* There are many different ways to spell English transliterations of Hebrew character names. This library uses the same spellings as those found in [the Unicode standard](https://www.unicode.org/charts/PDF/U0590.pdf).
* In the JSON object, the characters are subdivided by seven keys corresponding to the Hebrew character category name prefixes in the Unicode standard (`letters`, `points`, `accents`, `punctuation`, `marks`, `signs`, `yiddishLigatures`).
* Those consonants which have a final form (kaf, mem, nun, pe, and tsadi) will have both forms in an array, the final form being last.
## Installation
Using [Node.js](https://nodejs.org/):
```bash
npm i hebrew
```## Examples
```javascript
const {letters: {dalet, vav}, points: {dagesh, hiriq, qamats}} = require('hebrew')dalet + dagesh + qamats + vav + hiriq + dalet // 'דָּוִד'
``````javascript
const {letters: {kaf: [kaf, finalKaf]}} = require('hebrew')kaf // 'כ'
finalKaf // 'ך'
```