Skip to main content

Crate shlesha

Crate shlesha 

Source
Expand description

§Shlesha: High-Performance Extensible Transliteration Library

Shlesha is a next-generation transliteration library using a hub-and-spoke architecture with Devanagari ↔ ISO-15919 as the central hub for maximum accuracy and runtime extensibility.

§Key Features

  • Hub-and-Spoke Architecture: All transliteration flows through proven Devanagari ↔ ISO-15919 mapping
  • Runtime Extensibility: Add new scripts without recompilation via schema loading
  • Modular Design: Clean separation of concerns with interface-based communication
  • High Performance: Optimized string processing with caching

§Design Philosophy

  • Factual documentation: Technical decisions are explained with their reasons and trade-offs, without promotional language or unsupported claims
  • Transparency: Design constraints and limitations are documented alongside capabilities
  • Evidence-based: Performance claims and comparisons are backed by measurable benchmarks

§Quick Start

use shlesha::Shlesha;

let transliterator = Shlesha::new();
let result = transliterator
    .transliterate("धर्म", "devanagari", "iso")
    .unwrap();
println!("{}", result); // "dharma"

Re-exports§

pub use modules::core::unknown_handler::TransliterationMetadata;
pub use modules::core::unknown_handler::TransliterationResult;
pub use modules::core::unknown_handler::UnknownToken;

Modules§

modules

Structs§

SchemaInfo
Information about a schema (built-in or runtime loaded)
Shlesha
Main transliterator struct implementing hub-and-spoke architecture

Enums§

ProcessorSource
Processor source for handling both static and runtime compiled processors

Constants§

VERSION
Library version information