Repository navigation
lipimala 1.2.0
This release adds an opt-in natural reading for Devanagari and Gujarati. A call that stays on the 1.1 defaults keeps its previous Plain-English and Hunterian output.
Highlights
- Opt into
NATURALreadable style for Devanagari and Gujarati across Dart, JavaScript, Python, and PHP.LEGACYremains the default, so an existing 1.1 call keeps its previous output. - Choose vowel length per call: doubled letters (
brahmaand), collapsed letters (brahmand), orSMARTsyllable spelling (aaj,swaroop,dharan,chaar). SanskritSMARTkeeps phonemic length (dharma,shvetadveepa). - Set pronunciation independently of the script. Hindi
ऋतुisritu; the same sign in Gujarati pronunciation isrutu. Natural spellings includeश्वेतद्वीप/શ્વેતદ્વીપ→shwetdweep,स्वरूप/સ્વરૂપ→swaroop, andराष्ट्रपति→rashtrapati. - Keep Plain English and Hunterian distinct unless
NATURALandSMARTare both set, in which case Gujarati Plain and Hunterian match. Hunterian is the simplified ASCII map-and-sign form (जान→jan), with no consonant dots. It does not emit the 1954 macron spelling (jān). - Add optional sentence-start capitalization and exact word overrides. New
BrahmicPlainEnglishOptionsfields are appended, so an existing positional constructor stays valid. - Keep canonical IAST, exact-source recovery, and direct Devanagari ↔ Gujarati conversion unchanged.
Install
dart pub add lipimala
npm install lipimala
pip install lipimala
composer require jayeshmepani/lipimalaSee the README for runtime-specific examples and options.