transliteration.crh
v0.3.0
Published
Transliteration tool for Crimean Tatar language (Latin and Cyrillic alphabets)
Downloads
14
Maintainers
Readme
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('Мерхаба!'); // Merhaba!
transliteration.crh.toCyrillic('Merhaba!'); // Мерхаба!
Use in browser
This module should support all major browsers including IE 7-8.
bower
# Install bower if not already installed
# npm install bower -g
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('Мерхаба!')); // Merhaba!
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