spanjaan / wn-nepaliunicode-plugin
Nepali Unicode conversion plugin for WinterCMS — converts Preeti and Hisab fonts to Nepali Unicode.
Package info
github.com/spanjaan/wn-nepaliunicode-plugin
Type:winter-plugin
pkg:composer/spanjaan/wn-nepaliunicode-plugin
v2.0.0
2026-04-09 16:07 UTC
Requires
- php: >=8.0
- composer/installers: ^1.0
README
Convert Nepali text between Preeti, Hisab, and Unicode instantly.
A lightweight WinterCMS plugin with real-time AJAX conversion, responsive UI, and dark mode support.
Features
- 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
Quick Start
[unicodeConverter] defaultInputFont = "preeti" defaultOutputFont = "unicode"
{% component 'unicodeConverter' %}
Configuration
| 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 |
Developer API
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);
Requirements
- WinterCMS 1.2+
- PHP 8.0+
Install
composer require spanjaan/wn-nepaliunicode-plugin
License
MIT © Sudarshan Pudasaini