- [x] Reduce the file size (with subsetting and unicode-range)
- [x] Load key font files as early as possible (with preloading)
- [x] Manage FOUT and FOIT (with font-display)
Unicode provides a universal character encoding so that scripts, even complex ones, can be viewed across all modern computers, platforms, programs, and languages.
In macOS (or Mac OS X) There is a built-in keyboard for Nepali Devanagari input. See below for a “romanized” layout that is more natural for Westerners.
To enable Nepali input in macOS, go to “System Preferences,” then the preference pane for “Keyboard” (in older versions, “Language & Text” or “International”), then the “Input Sources” tab. Add (“+”) an input source, “Nepali.” You should select the optional checkbox “Show input menu in menu bar” to be able to change the language easily from the menu bar. When you turn on this menu, you can also enable the helpful “Keyboard Viewer” by going to “Keyboard” tab (in the “Keyboard” preference pane). Select the “Show viewers for keyboard, emoji, and symbols in menu bar” (in older versions, “Show Keyboard & Character Viewers in menu bar”). Now you can select Nepali from the menu bar icon. You can also select “Show keyboard viewer” from the same menu bar icon to see how Nepali Devanagari is mapped to your keyboard. You can click and insert Nepali characters from the viewer if necessary.
A phonetic (“romanized”) layout is available to help Westerners (the ‘क’ is mapped to ‘k’, ‘ख’ to ‘shift + k’, etc.). Using the phonetic layout is a much more natural way to learn to type Nepali. To use the phonetic layout, download the zip file attached to this post. The phonetic keyboard layout is taken from http://suvash.github.io/nepali-romanized-pro/ but with the macOS default icon for Nepali and a small correction. This keyboard in turn is based on the standard set by the Kathmandu library, Madan Puraskar Pustakalaya.
Install the custom “Nepali – Phonetic” keyboard layout for macOS:
Change the input keyboard by selecting “Nepali” (or “Nepali – Phonetic”) from the menu bar icon. The keyboard shortcut is control + space. Select “Show keyboard viewer” in the menu bar icon to familiarize yourself with the layout (see directions above to enable it). You can see how pressing “shift” and “caps lock” affect the input. The Keyboard Viewer will float above other applications while it is open. If you have not enabled the menu bar option, you will have to change the keyboard layout to “Nepali – Phonetic” within System Preferences.
Devanagari Unicode fonts are available on Mac systems. OS X 10.10 (Yosemite) and up uses “Kohinoor Devanagari” as its Devanagari default, and there is also “ITF Devanagari” and “Shree Devanagari 714.” Previous versions (10.2 and up), used “Devanagari MT” as the default and also had “Arial Unicode MS” as a fallback. The computer will use the default Devanagari font automatically when you select Nepali input and begin to type (if another Devanagari Unicode font is not already selected).
In older versions, the Asian language kit may need to be installed from installation disks. You will know that your computer needs this step if in place of Unicode text such as ‘नेपाली,’ there are only empty squares. The default browser, Safari, needs no special adjustment to view Unicode pages. Not every word processing application can handle complex Unicode scripts, like Devanagari conjuncts, or half-letters. Applications that are ready for complex Unicode scripts include TextEdit, Pages, Word (2016), OpenOffice and LibreOffice.
Devanagari is used for many South Asian languages. The Unicode fonts are not specific to Nepali, but are still acceptable for writing Nepali. Some differences between generic Devanagari and Nepali include the “झ” character and some numbers. Darjeeling-area Nepali uses the generic Devanagari characters, like Hindi. Devanagari Unicode fonts also include Sanskrit characters which are not used in Nepali writing. If you are looking for a Unicode font that has all the Devanagari variants specific to Nepali, see the Annapurna SIL Nepal font. There are also Nepali-specific Devanagari Unicode fonts at South Asia Language Resource Center.