Convert Nepali text between Preeti, Hisab, and Unicode instantly.
A lightweight WinterCMS plugin with real-time AJAX conversion, responsive UI, and dark mode support.
- Multi-format conversion: Preeti ↔ Hisab ↔ Unicode
- Real-time conversion: 300ms debounce for smooth experience
- One-click copy: Copy converted text to clipboard
- Dark mode: Automatic system preference detection
- Developer API: Use converters programmatically
[unicodeConverter]
defaultInputFont = "preeti"
defaultOutputFont = "unicode"{% component 'unicodeConverter' %}| Property | Type | Default | Description |
|---|---|---|---|
defaultInputFont |
dropdown | preeti |
Input font (preeti, hisab) |
defaultOutputFont |
dropdown | unicode |
Output font (unicode, preeti, hisab) |
maxLength |
string | 100000 |
Max input characters |
use SpAnjaan\NepaliUnicode\Classes\PreetiConverter;
$unicode = PreetiConverter::convert($preetiText);use SpAnjaan\NepaliUnicode\Classes\HisabConverter;
$unicode = HisabConverter::convert($hisabText);use SpAnjaan\NepaliUnicode\Classes\FontConverter;
$hisab = FontConverter::preetiToHisab($preetiText);
$preeti = FontConverter::hisabToPreeti($hisabText);- WinterCMS 1.2+
- PHP 8.0+
composer require spanjaan/wn-nepaliunicode-pluginMIT © Sudarshan Pudasaini