@natlibfi/sfs-4900

1.1.0 • Public • Published

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

/@natlibfi/sfs-4900/

    Package Sidebar

    Install

    npm i @natlibfi/sfs-4900

    Weekly Downloads

    182

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    34.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • natlibfi-jonollil
    • drone-melinda