laonetics
v0.4.3
Published
Get Lao language IPA phonetics and romanization, french and english karaoke for any phoneme/syllable.
Downloads
5
Maintainers
Readme
Laonetics
Laonetics is a Typescript/Javascript component to convert lao chars in english/french phonetic forms, aka karaoke.
Install: npm install --save laonetics
Use with Typescript:
import { LaoneticsTranslater, ISlicedSyllables } from 'laonetics';
const translater = new LaoneticsTranslater();
// exemple with rabbit word in lao: "ກະຕ່າຍ"
let slicedSyllables: ISlicedSyllables = translater.getKaraoke('ກະຕ່າຍ', ['fr', 'en', 'ph']);
/*
'slicedSyllables' now contains an Object with the typescript interface {
lao: Array<string>;
roms: Array<Array<string>>;
};
'lao' contains the sliced sentence in lao: ['ກະ', 'ຕາຍ']
'roms' contains an array for each language, ordered like asked: [
['kâ', 'tâ:y'], // french
['ka', 'ta:i'], // english
['ka', 'taːɲ'] // IPA phonetics
]
*/
Or use with JavaScript:
const laonetics = require("laonetics");
const translater = new laonetics.LaoneticsTranslater();
let slicedSyllables = translater.getKaraoke('ກະຕ່າຍ', ['fr', 'en', 'ph']);
Current version: Beta v0.4.3 "Smart lao language karaoke".
Demo running here: laonetics.io
Licences: CC-BY-NC-4.0: you can use/copy/modify any code but only without commercial intentions.
Transparent & agile project management: Trello
Development watch && serve
Run npm run update && npm start
for a dev server. Navigate to http://localhost:5000/
. The app will automatically reload if you change any of the source files.
Run npm run update && node server.js
for a prod server. Navigate to http://localhost:3000/
. The app will automatically reload if you change any of the source files.