Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stscoundrel/old-norse-alphabet
Old Norse language alphabet constants for JS.
https://github.com/stscoundrel/old-norse-alphabet
alphabet constants javascript medieval-languages nodejs old-norse
Last synced: about 2 months ago
JSON representation
Old Norse language alphabet constants for JS.
- Host: GitHub
- URL: https://github.com/stscoundrel/old-norse-alphabet
- Owner: stscoundrel
- License: mit
- Created: 2020-09-16T15:19:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-28T17:52:28.000Z (3 months ago)
- Last Synced: 2024-09-28T17:55:10.935Z (3 months ago)
- Topics: alphabet, constants, javascript, medieval-languages, nodejs, old-norse
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Old Norse Alphabet
Old Norse alphabet alphabet constants for JS.
### Motivation
Old Norse constains letters that may be hard to type with most keyboards. Prime examples being þ, ð and ǫ. There are also some letters "missing", like c and q. This package offers the alphabet & tricky individual letters as JS constants.
### Install
`npm install old-norse-alphabet`
### Usage
Letter lists:
```javascript
const {
ALPHABET,
LOWER_CASE,
UPPER_CASE,
VALID_AS_FIRST,
} = require('old-norse-alphabet')console.log(LOWER_CASE)
// ['a', 'á', 'b', 'd', 'ð', 'e', 'é', 'f', 'g', 'h', 'i', 'í', 'j', 'k', 'l', 'm', 'n', 'o', 'ó', 'p', 'r', 's', 't', 'u', 'ú', 'v', 'w', 'y', 'ý', 'þ', 'æ', 'ǫ', 'ø', 'œ']console.log(UPPER_CASE)
//['A', 'Á', 'B', 'D', 'Ð', 'E', 'É', 'F', 'G', 'H', 'I', 'Í', 'J', 'K', 'L', 'M', 'N', 'O', 'Ó', 'P', 'R', 'S', 'T', 'U', 'Ú', 'V', 'W', 'Y', 'Ý', 'Þ', 'Æ', 'Ǫ', 'Ø', 'Œ']// Not all letters are valid as first letters.
console.log(VALID_AS_FIRST) // wont have ðconsole.log(ALPHABET) // combined upper & lower case.
```
Individual tricky characters:
```javascript
const {
ETH,
THORN,
O_CAUDATA,
ASH,
SLASHED_O,
OE,
AE,
} = require('old-norse-alphabet')console.log(ETH) // ð
console.log(THORN) // þ
console.log(O_CAUDATA) // ǫ
console.log(ASH) // æ
console.log(SLASHED_O) // ø
console.log(OE) // œ
console.log(AE) // Same as ASH, æ```
### About Old Norse
[Old Norse](https://en.wikipedia.org/wiki/Old_Norse) was a North Germanic language that was spoken by inhabitants of Scandinavia and their overseas settlements from about the 7th to the 15th centuries.