Skip to content
CornerTools

Preeti to Unicode Converter

Convert Nepali text typed in the Preeti font to Unicode, and Unicode back to Preeti.

Convert
Words: 0Characters: 0
Words: 0Characters: 0

Converts Nepali typed in the Preeti font to Unicode, the encoding Kalimati, Mangal and every modern Nepali font use, and Unicode back to Preeti for a document that still uses the old font. Paste text in either pane; the result updates as you type. Nothing you paste leaves your browser.

Preeti text opened where the font is not installed shows Latin characters such as g]kfn ;/sf/ where नेपाल सरकार was meant. Converted to Unicode it reads as Nepali everywhere, in email, on a website and in a search box, and can be searched and spell-checked.

How to use it

Choose the direction under Convert. Switching it moves the converted text into the input, so each pane keeps its encoding. The result can be copied, downloaded as a text file or cleared.

The Preeti pane shows its text in Preeti when the font is installed on your device; without it you see the stored Latin characters, and the page says so. The conversion is the same either way.

Preeti uses every Latin letter for a Nepali shape, so English words typed among Preeti text cannot be told apart from it and are converted too. Convert the Nepali parts on their own, or retype the English afterwards. Characters that are not Preeti keys, such as text already in Unicode, are kept as they are and listed under the result.

Converting to Preeti keeps characters it has no glyph for, such as English letters, and lists them. Latin digits are written as Devanagari digits: Preeti's digit keys draw letters (1 is ज्ञ), and its only digits are the Devanagari ones on the shifted digit keys.

How Preeti stores Nepali

Preeti draws Devanagari shapes on the code points of a Latin font: k draws प, f the ा stem, ] the े stroke. Text is stored in the order the shapes appear on the line, not the order they are spoken. Unicode stores each letter once, in spoken order, and leaves the shaping to the font. Converting means reading the shapes and putting them back in order:

  • ि (l) is typed before its consonant, and before the whole conjunct when it sits on one; Unicode stores it after.
  • The reph (the र् curl above a letter, key {) is typed after its syllable, usually after the vowel signs; Unicode stores र् before the consonant.
  • Half letters followed by the ा stem make the full letter, as 0f makes ण and if makes ष.
  • The tail m turns the glyph before it into another letter: km is फ, pm is ऊ, qm is क्र. Signs typed between the two, as in k'm (फु), belong after it.
  • Vowels drawn in parts are joined: अ with the stem is आ, the stem with the े stroke is ो, and इ with the reph glyph is ई.

The glyph table was made from the Preeti font itself, the 1993 original, rendering each of the 138 characters it draws. Two are not read on their own: m, which only completes the letter before it, and a glyph of three raised dots with no Nepali reading. The conversion was checked on lines from six Nepal Ministry of Home Affairs documents typed in Preeti: each converts to the text its page shows, and back to the same keys.

Preeti often has two ways to key the same shape, such as › and b| for द्र, and typists differ in whether the reph comes before or after ु. Converting to Preeti picks one, as a rule the keys typed most often in those documents, so a text converted to Unicode and back can differ in its keys while showing the same Nepali.

Examples

A line of a government statute

Preeti text
r_ ldq /fi6« Pj+ cGo cGt/f{li6«o lgsfox¿sf ;fy} /fli6«o kbflwsf/Lx¿;Fusf]
Unicode text
च) मित्र राष्ट्र एवं अन्य अन्तर्राष्ट्रिय निकायहरूका साथै राष्ट्रिय पदाधिकारीहरूसँगको

From the statute of the National Platform for Disaster Risk Reduction, 2065. In cGt/f{li6«o the { typed after /f (रा) becomes the र् before it, and the l typed before i6« is the ि after the whole conjunct ष्ट्र.

Unicode to Preeti

Unicode text
विपद् जोखिम न्यूनीकरण कार्यक्रम
Preeti text
ljkb\ hf]lvd Go"gLs/0f sfo{qmd

The halanta ending विपद् is written with \, since द has no half form. The reph of कार्य is keyed after its syllable, and क्र is q with the tail m.

Common Preeti keys

Preeti keys and the Unicode they convert to
PreetiUnicodeWhat it shows
lkपिि (l) typed before its consonant
/fli6«oराष्ट्रियि before a conjunct; « is the rakar under ट
sfo{कार्यReph ({) typed after its syllable
k|प्रRakar (|) under a consonant
If]qक्षेत्रHalf क्ष completed by the ा stem
0fणHalf ण completed by the ा stem
ifषHalf ष completed by the ा stem
kmफप with the tail m
qmक्रत्र with the tail m
emझभ with the tail m
pmऊउ with the tail m
O{ईइ with the hook of ई
cf]ओअ, the ा stem and the े stroke
k'¥ofपुर्‍याEyelash ra (¥)
1ज्ञConjunct glyph on a digit key
>श्रConjunct glyph
.।Danda
=.Full stop
-s_(क)Brackets
!@#१२३Devanagari digits on the shifted digit keys

Frequently asked questions

Preeti text is stored as Latin characters and shows as Nepali only where the Preeti font is installed and chosen. Anywhere else, such as a phone, a website or a computer without the font, the letters themselves show. Converting it to Unicode fixes this for good.
Use what the form expects. A Word or Excel form already typed in Preeti needs Preeti keys to match the rest of its text, which this page gives from Unicode. A website or online application takes Unicode: Preeti keys typed there are stored as the Latin characters they are.
Its table was taken from Preeti only. Text in another legacy Nepali font, such as Kantipur or Sagarmatha, converts correctly only where that font puts the same glyph on each key, so compare the result with the original before relying on it.
Kalimati is a Unicode font, as are Mangal and Nirmala UI. Text converted here is Unicode, so it shows in Kalimati when Kalimati is chosen, and in any other Nepali font otherwise.

See also