https://github.com/juliuste/telephone-keypads
Language-specific and language-independent telephone keypad assignments according to ETSI ES 202 130.
https://github.com/juliuste/telephone-keypads
library
Last synced: 10 months ago
JSON representation
Language-specific and language-independent telephone keypad assignments according to ETSI ES 202 130.
- Host: GitHub
- URL: https://github.com/juliuste/telephone-keypads
- Owner: juliuste
- License: isc
- Created: 2019-12-27T09:37:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T04:15:16.000Z (about 6 years ago)
- Last Synced: 2025-03-18T14:49:30.550Z (over 1 year ago)
- Topics: library
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# telephone-keypads
Language-specific and language-independent telephone keypad assignments according to [**ETSI ES 202 130, _v2.1.1_**](https://www.etsi.org/deliver/etsi_es/202100_202199/202130/02.01.01_50/es_202130v020101m.pdf).
[](https://www.npmjs.com/package/telephone-keypads)
[](https://travis-ci.org/juliuste/telephone-keypads)
[](https://greenkeeper.io/)
[](license)
## Installation
```bash
npm install telephone-keypads
```
## Usage
A telephone keypad generally has the following structure:
```js
// example: greek keypad
{
"1": [],
"2": ["α", "β", "γ", "2", "ά", "a", "b", "c"],
"3": ["δ", "ε", "ζ", "3", "έ", "d", "e", "f"],
"4": ["η", "θ", "ι", "4", "ή", "ί", "ϊ", "ΐ", "g", "h", "i"],
"5": ["κ", "λ", "μ", "5", "j", "k", "l"],
"6": ["ν", "ξ", "ο", "6", "ό", "m", "n", "o"],
"7": ["π", "ρ", "σ", "ς", "7", "p", "q", "r", "s"],
"8": ["τ", "υ", "φ", "8", "ύ", "ϋ", "ΰ", "t", "u", "v"],
"9": ["χ", "ψ", "ω", "9", "ώ", "w", "x", "y", "z"],
"0": []
}
```
The following keypads are currently supported:
### Language independent
#### Cyrillic
```js
// pick one of these methods to import the keypad
const cyrillic = require('telephone-keypads').languageIndependent.cyrillic
const cyrillic = require('telephone-keypads/language-independent/cyrillic.json')
```
#### Latin
```js
// pick one of these methods to import the keypad
const latin = require('telephone-keypads').languageIndependent.latin
const latin = require('telephone-keypads/language-independent/latin.json')
```
### Language specific
#### Chinese (Pinyin)
```js
// pick one of these methods to import the keypad
const pinyin = require('telephone-keypads').languageSpecific.pinyin
const pinyin = require('telephone-keypads/language-specific/pinyin.json')
```
#### French
```js
// pick one of these methods to import the keypad
const french = require('telephone-keypads').languageSpecific.french
const french = require('telephone-keypads/language-specific/french.json')
```
#### German
```js
// pick one of these methods to import the keypad
const german = require('telephone-keypads').languageSpecific.german
const german = require('telephone-keypads/language-specific/german.json')
```
#### Greek
```js
// pick one of these methods to import the keypad
const greek = require('telephone-keypads').languageSpecific.greek
const greek = require('telephone-keypads/language-specific/greek.json')
```
#### Hebrew
```js
// pick one of these methods to import the keypad
const hebrew = require('telephone-keypads').languageSpecific.hebrew
const hebrew = require('telephone-keypads/language-specific/hebrew.json')
```
#### Polish
```js
// pick one of these methods to import the keypad
const polish = require('telephone-keypads').languageSpecific.polish
const polish = require('telephone-keypads/language-specific/polish.json')
```
#### Turkish
```js
// pick one of these methods to import the keypad
const turkish = require('telephone-keypads').languageSpecific.turkish
const turkish = require('telephone-keypads/language-specific/turkish.json')
```
Feel free to contribute and add more languages here!
## Contributing
If you found a bug, want to add support for another language or propose a feature, feel free to visit [the issues page](https://github.com/juliuste/telephone-keypads/issues).