Malayalam unicode to mltt converter or encoder is a character encoder from Malayalam unicode characters to corresponding ML-TT character encodings. Using ML-TTKarthika character mapping for the task.
Malayalam unicode to mltt converter
Requires bundler such as webpack with appropriate wasm loaders to consume the library.
See the example in www
directory for complete web application.
import * as mlttConverter from 'unicode-to-mltt-converter';
fetch("www/public/karthika.map").then((resp) => resp.text()).then((defaultCharmapVal) => {
mlttConverter.convert(inputValue, defaultCharmapVal);
});
cargo run -- www/public/karthika.map "പശ്ചിമഘട്ടത്തിലെ ചുരുക്കം സ്ഥലങ്ങളിൽ മാത്രം വിരളമായി കാണപ്പെടുന്ന ഒരിനം പൂമ്പാറ്റയാണ് മലബാർ മിന്നൻ"
Outputs:]ÝnaL«¯nse Npcp¡w Øe§fn am{Xw hncfambn ImWs¸Sp¶ Hcn\w ]q¼mäbmWv ae_mÀ an¶³
wasm-pack build
wasm-pack build
cargo test
wasm-pack test
wasm-pack test --headless --firefox
www
directory inside this repo. Separate README.md
included for www
.