项目作者: aslamplr

项目描述 :
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.
高级语言: Rust
项目地址: git://github.com/aslamplr/unicode-to-mltt-converter.git
创建时间: 2020-03-11T15:47:54Z
项目社区:https://github.com/aslamplr/unicode-to-mltt-converter

开源协议:Other

下载


Malayalam unicode to mltt converter



Malayalam unicode to mltt converter



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.


Built with Rust 🦀 and WebAssembly🕸

🚴 Usage

🌎 Web example

Requires bundler such as webpack with appropriate wasm loaders to consume the library.
See the example in www directory for complete web application.

  1. import * as mlttConverter from 'unicode-to-mltt-converter';
  2. fetch("www/public/karthika.map").then((resp) => resp.text()).then((defaultCharmapVal) => {
  3. mlttConverter.convert(inputValue, defaultCharmapVal);
  4. });

🖥 Run Rust 🦀 CLI util

  1. 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¶³

🛠️ Build with wasm-pack build

  1. wasm-pack build

🔬 Run all unit and integration tests

  1. cargo test

🔬 Test in Headless Browsers with wasm-pack test

  1. wasm-pack test --headless --firefox

🕸 Web Application using React is in the www directory inside this repo. Separate README.md included for www.

Development dependencies

  • rustc 1.41.1
  • wasm-pack 0.9.1
  • node v13.7.0