crh.transliteration
JavaScript library and tool for transliteration cyrillic Crimean Tatar words to latin and back.
Based on transliterator developed by Alexander Goryainov, 2006-2009.
Library can be used in browser and on node.js platform. Browser version can be found in the dist directory.
Browse the demos on https://prosvita.github.io/crh.transliteration/
Install in Node.js
npm install transliteration.crh --save
var transliteration=require('transliteration.crh');
transliteration.crh.fromCyrillic('Мерхаба!');
transliteration.crh.toCyrillic('Merhaba!');
Use in browser
This module should support all major browsers including IE 7-8.
bower
bower install transliteration.crh
<html>
<head>
<script src="bower_components/transliteration.crh/dist/transliteration.crh.min.js"></script>
</head>
<body>
<script>
console.log(transliteration.crh.fromCyrillic('Мерхаба!'));
console.log(transliteration.crh.toCyrillic('Merhaba!'));
</script>
</body>
</html>
Vanilla
<script src="https://prosvita.github.io/crh.transliteration/dist/transliteration.crh.min.js"></script>
Install command line tool globally
npm install transliteration.crh -g
crh --help
Usage: crh <options> <sourceFile> [targetFile]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --to-cyrillic Convert to Cyrillic from Latin
-l, --from-cyrillic Convert to Latin from Cyrillic