Preeti to Unicode Converter
Convert Nepali text typed in the Preeti font to Unicode, and Unicode back to Preeti.
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
0fmakes ण andifmakes ष. - The tail
mturns the glyph before it into another letter:kmis फ,pmis ऊ,qmis क्र. Signs typed between the two, as ink'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 | Unicode | What 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
See also
- Nepali Typing (English to Nepali) — to type Nepali in English letters, then copy it as Unicode or Preeti.
- Krutidev to Unicode Converter — for the same conversion, for Hindi typed in Kruti Dev 010.