1.1.5 • Published 5 years ago
bahai-term-phonemes v1.1.5
Bahai-term-phonemes
Simple utility to convert properly formatted HTML/UTF-8 Baha'i terms into IPA phoneme codes for correct pronunciation by TTS engines
Install the interface module into your node project with:
npm install --save bahai-term-phonemes
Functionality
import terms from 'bahai-term-phonemes'
// or
const terms = require('bahai-term-phonemes')
// checks if term is likely a Baha'i transliteration
isPossibleTerm(str)
// translates a word to IPA code in double-brackets
phonemes("‘Abdu’l-Ḥamíd")
// output: "[[@ b d @U ? l ? h @ m i: d]]"
// replaces Baha'i terms in string
parse("Bahá’u’lláh, Whose Mission...")
// output: "[[b @ h A: ? @U ? l l A: h]], Whose Mission..."
// returns ASCII version of string, removing dot-unders, accents and underscores
strip_accents("‘Abdu’l-Ḥamíd")
// output: "'Abdu'l-Hamid"
Demo
Browser jsfiddle demo: https://jsfiddle.net/chadananda/xa7dtvc3/
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.1
6 years ago
1.1.0
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago