inditrans 0.7.0 copy "inditrans: ^0.7.0" to clipboard
inditrans: ^0.7.0 copied to clipboard

A functional transliterator library for the most common Indic/Brahmic scripts.

inditrans #

A functional transliterator library for the most common Indic/Brahmic scripts.

  • Available on all platforms.
  • No dependencies (for transliteration) and no server needed. Uses ffi (non-Web)/wasm (Web) for near native performance.
  • Supports ITRANS toggle transliteration with ## and skipping XML tags
  • Special handling for scripts like Tamil, Malayalam, Gurmukhi, etc. Tuned for reability.
  • Supports vedic accents for vedic scriptures.

References:

Supported scripts #

Installation #

flutter pub add inditrans

Usage example #

import 'package:inditrans/inditrans.dart' as inditrans;

Future<void> main() async {
  // Init needs to complete before Inditrans could be used
  await inditrans.init();

  final result = inditrans.transliterate(
      "श्री॒ गु॒रु॒भ्यो नमः॒ । ह॒रिः॒ ओ३म् ॥",
      inditrans.Script.devanagari,
      inditrans.Script.tamil,
      inditrans.Options.IgnoreVedicAccents + inditrans.Options.TamilSuperscripted);
  ...
}
2
likes
150
pub points
38%
popularity

Publisher

verified publishervm75.duckdns.org

A functional transliterator library for the most common Indic/Brahmic scripts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi, flutter, flutter_web_plugins, inject_js, js, plugin_platform_interface, wasm_ffi, wasm_interop

More

Packages that depend on inditrans