Preeti to Unicode Converter

Converts Preeti and other Nepali fonts to Unicode

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/565546/1750869/Preeti%20to%20Unicode%20Converter.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Forfatter
kid4rm90s
Versjon
1.1.0
Lagd
08.02.2026
Oppdatert
08.02.2026
Size
14,7 kB
Lisens
MIT

preeti

Preeti is a popular font used in Nepal to write Nepali text

Without Preeti font, the text is just ASCII, so this module converts it to Unicode Devanagari characters.

Usage

preeti('sf7df08"');
> 'काठमाण्डू'

In NodeJS

preeti = require('preeti');
preeti('sf7df08"');

Other fonts

You also can use converters for other fonts by providing a second parameter. Here is the list of all supported fonts.

preeti('sf&df)*"', 'PCS Nepali');
preeti('sf7df08"', 'Kantipur');
preeti('sf&df)*"', 'Fontasy Himali TT');
preeti('sf7df08"', 'Sagarmatha');

Original Shell and JS code

This project is based on code and regular expressions from the FOSS Nepal community

License

Creative Commons Attribution Non-Commerical Share-Alike