Sajilo typing for Mac.
A macOS input method that converts Roman input into Nepali (Devanagari)
script — the desktop equivalent of Google Input Tools for Nepali. Type
namaste and get नमस्ते. Sajilo learns from your selections and reorders
future candidates based on what you pick.
Unsigned installer. A double-click is blocked, so
right-click the downloaded .pkg → Open, then
click Open again.
It learns what you pick. Choose a lower suggestion once and it moves up the list next time.
It spells words it has never seen. Names and new words get
a rule-based reading, so dilip still becomes दिलिप.
Caps Lock types English. No switching input sources for a quick English word.
Requirements
- macOS 14 (Sonoma) or newer
Install
Download Sajilo-0.1.10.pkg (the latest version; older ones are on the Releases page), then:
- Right-click the
.pkg→ Open (don't double-click — the installer is unsigned, so Gatekeeper blocks plain double-clicks). Click Open on the security dialog and walk through the installer. It installs to~/Library/Input Methods/— no admin password required. - Enable the input source: System Settings → Keyboard → Text Input → Edit → + → search "Nepali" → सजिलो (Sajilo).
- Switch to it with Control + Space or the input-source menu in the
menu bar, then type
namastein any text field.
To verify a download, run
gh attestation verify Sajilo-X.Y.Z.pkg --repo dilipgurung/sajilo. It works
for the fixed-name Sajilo.pkg too: both files are attested and have the same
contents.
Basic keys
| Key | Action |
|---|---|
| Space | Commit the highlighted candidate, then insert a space |
| Return | Commit the highlighted candidate (no newline) |
| Shift+Return | Commit the typed Roman letters as-is |
| Tab / 1–9 | Commit the first / Nth candidate. With no candidates, Tab commits the typed letters; a number past the list does nothing |
| ↑ ↓ | Move the highlight |
| ← → | Move within the word being typed, to fix a letter |
| Esc | Cancel |
. |
Becomes । after a word and stays . after a number. .. gives ।। (after a number, ।). Three or more stay periods (...) |
| |
Becomes । |
| Digits | Become ०–९ |
| Other keys while typing a word (Home, Page Down, Option+key, …) | Commit the highlighted candidate, then do their usual job |
| Caps Lock | English mode: letters, digits, . and | are typed as-is |
Typing guide
Common words come from the dictionary, so a rough spelling usually works. The rules below are for names and new words. If the first suggestion is wrong, pick another one: Sajilo remembers it next time.
Vowels (after a consonant they become the matching vowel sign):
a |
aa |
i |
ee |
u |
oo |
e |
ai |
o |
au |
|---|---|---|---|---|---|---|---|---|---|
| अ | आ | इ | ई | उ | ऊ | ए | ऐ | ओ | औ |
A single a at the end of a word is the inherent vowel. Type aa for ा.
For example,
chhoraa→ छोराTikaa→ टिका
Consonants mostly follow the English sound (k → क, b → ब, m → म). The
less obvious ones:
ch |
chh |
sh |
ph / f |
v / w |
ksh |
gy |
shr |
x |
|---|---|---|---|---|---|---|---|---|
| च | छ | श | फ | व | क्ष | ज्ञ | श्र | क्स |
Add h for the aspirated form (th and dh are in the table below).
For example,
kh→ खgh→ घjh→ झbh→ भ
Capitals give the retroflex letters (ट-row). Lowercase gives the dental ones (त-row). Each pair differs only by Shift:
| Lowercase | Gives | Capital | Gives |
|---|---|---|---|
t |
त | T |
ट |
th |
थ | Th |
ठ |
d |
द | D |
ड |
dh |
ध | Dh |
ढ |
n |
न | N |
ण |
s |
स | S |
ष |
sh |
श | Sh |
ष |
For example,
daal→ दाल (lentils) butDaal→ डाल (branch)Thulo→ ठुलोgaNesh→ गणेशriShi→ ऋषि
A capital also offers the lowercase reading as an alternative, so a word you
capitalize by accident still shows up. Use Shift for these capitals: with Caps
Lock on, Sajilo types English instead (see Basic keys). The other capitals
(K, M, P, …) are the same as lowercase.
Special keys, typed as part of the word:
| Type | Adds | Example |
|---|---|---|
\ |
् (halant) | bas\ → बस् |
* |
ं (anusvara) | man* → मनं |
** |
ँ (chandrabindu) | kahaa** → कहाँ |
After a word is already typed, \ and * still add ् and ं to it.
Less common letters:
| Type | Gives | Example |
|---|---|---|
ri |
ृ after a consonant, ऋ at the start of a word | kripaa → कृपा, prithvee → पृथ्वी (after a vowel it stays रि: hari → हरि) |
rri |
Same as ri, for when you want it explicit |
rri → ऋ |
rree |
ॄ / ॠ (long vocalic R) | rree → ॠ |
ng |
ङ | sangeet → सङ्गीत, rang → रङ (न्ग is the alternative) |
ny |
न्य, with ञ as the alternative | kanyaa → कन्या |
om |
ॐ at the start of a word | om → ॐ (ओम is the alternative) |
yna |
ञ | yna → ञ (य्न is the alternative) |
Adding your own words
Choose Open User Dictionary… from Sajilo's input-source menu and add one line per word, tab-separated:
roman<TAB>देवनागरी[<TAB>frequency]
Save the file and it reloads immediately — no restart needed.
Privacy
Sajilo learns from the words you pick. It stores the Roman letters you typed
and the word you chose in
~/Library/Application Support/Sajilo/learner.sqlite, on your Mac. Sajilo
makes no network connections.
It records nothing while macOS secure input is on, as it is in password fields, or when a word is finished because you switched apps.
A Terminal prompt such as sudo is not a password field unless Terminal's
Secure Keyboard Entry is on, so switch to ABC before typing a password there.
Pause Learning in the सजिलो input menu stops learning; words already learned still rank suggestions. Clear Learned Words ▸ Clear Now erases everything learned.
Uninstall
- Drag
~/Library/Input Methods/Sajilo.appto the Trash. From a source checkout you can run./scripts/uninstall.shinstead. - Optionally, delete
~/Library/Application Support/Sajilo/to remove your user dictionary and learned data. - Remove the stale input source: System Settings → Keyboard → Text Input → Edit → select सजिलो (Sajilo) → click −.