This is a web-based utility for converting text between Unicode and Preeti encoding formats, specifically designed for Nepali language text processing. The application allows users to seamlessly convert text between two different character encodings, which is particularly useful for working with legacy Devanagari text documents.
- Convert text from legacy Preeti encoding to Unicode
- Convert text from Unicode back to Preeti encoding
- Handles complex Devanagari character transformations
- Supports Nepali numerals and special characters
- Preserves text formatting and diacritical marks
The converter uses two main functions:
convert_to_unicode()
: Transforms text from Preeti encoding to Unicodeconvert_to_Preeti()
: Converts Unicode text back to Preeti encoding
Both functions use extensive character mapping arrays to handle the intricate transformations between encoding systems.
- Uses JavaScript arrays to map characters between encodings
- Implements multiple replacement passes to handle special cases
- Corrects positioning of matras (vowel marks)
- Handles special glyphs and ligatures
- Full range of Devanagari characters
- Nepali numerals
- Special symbols
- Nukta variants
- Complex consonant clusters
- Enter text in the source text area
- Select conversion direction (Unicode to Preeti or vice versa)
- Click convert
- View the converted text in the target text area
- Requires manual text input
- Works best with clean, well-formed text
- May require manual corrections for extremely complex text layouts
- Works in modern web browsers
- JavaScript must be enabled
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
Developed for the Nepali language text processing community. Specially, MEME Creators.