Converts Preeti and other Nepali fonts to Unicode
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/565546/1750869/Preeti%20to%20Unicode%20Converter.js
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.
preeti('sf7df08"');
> 'काठमाण्डू'
preeti = require('preeti');
preeti('sf7df08"');
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');
This project is based on code and regular expressions from the FOSS Nepal community
Creative Commons Attribution Non-Commerical Share-Alike