@natlibfi/sfs-4900
v1.1.0
Published
Transliteration from cyrillic (Russian, Ukrainian) text to latin (Finnish) as defined in the SFS-4900 standard
Downloads
412
Readme
Transliteration from Russian and Ukranian texts to Finnish as defined in SFS-4900 standard
Installation
npm install sfs4900
Usage
var converter = require('sfs4900');
var conversion = converter.convertToLatin('Чайковский, Гоголь'); // defaults to russian
// Second argument can be used to specify language code: 'rus' or 'ukr':
var ukrainianConversion = converter.convertToLatin('Гоголь', 'ukr');
console.log(conversion);
/* prints:
{
'from': 'Чайковский, Гоголь',
'result': 'Tšaikovski, Gogol',
'warnings': []
}
*/
console.log(ukrainianConversion);
/* prints:
{
'from': 'Гоголь',
'result': 'Hohol',
'warnings': []
}
*/
Warnings include notes on characters that were not converted.
See also
https://fi.wikipedia.org/wiki/Ven%C3%A4j%C3%A4n_translitterointi