This repository contains code for the Interscript JavaScript runtime ("Interscript-JS").
This software allows performing script conversions by using the default set of Interscript maps hosted at GitHub.
Interscript is a project for interoperable script conversion systems and provides executable runtimes for multiple platforms. Full documentation available here.
var Interscript = require('interscript');
Interscript.load_map('bgnpcgn-ukr-Cyrl-Latn-2019').then(function() {
alert(Interscript.transliterate('bgnpcgn-ukr-Cyrl-Latn-2019', prompt()));
});
This library should be mostly compatible with webpack. It may be necessary to supply a path to the maps, as those are not bundled by default.
To do so, you need to do something like:
Interscript.map_path = "/node_modules/interscript/src/maps/";