spanjaan/wn-nepaliunicode-plugin
最新稳定版本:v2.0.0
Composer 安装命令:
composer require spanjaan/wn-nepaliunicode-plugin
包简介
Nepali Unicode conversion plugin for WinterCMS — converts Preeti and Hisab fonts to Nepali Unicode.
README 文档
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
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-01