A native Bengali keyboard for Apple Silicon Macs.
For developers or open-source users who want to compile Kolom directly from source:
Prerequisites: You must have Git and full Xcode installed from the Mac App Store (the basic Command Line Tools are not enough to build macOS apps).
git clone https://github.com/vubon/kolom.git
cd kolom
./install.shThis script will automatically:
- Compile the app in Release mode
- Install it to your
~/Library/Input Methodsfolder - Register the keyboard with macOS instantly
Kolom is a modern, native Bengali Input Method (IME) designed exclusively for Apple Silicon Macs (arm64). It is built using Swift, SwiftUI, and macOS's native Input Method Kit (IMK) framework to provide a fast, reliable, privacy-focused typing experience that integrates seamlessly with the operating system.
Kolom is organized into highly independent modules to ensure speed, stability, and maintainability:
- Native First: Built with Swift, AppKit, SwiftUI, and Input Method Kit.
- Privacy-First: Operates entirely offline. No cloud sync, no tracking, and no internet connections.
- Deterministic Suggestions: Candidates are ranked using deterministic priority rules (exact matches, frequency scores, and user vocabulary) without external prediction libraries.
For detailed design specs, see the documentation:
To compile and register Kolom, you need:
- An Apple Silicon Mac (M1/M2/M3/M4) running macOS 13.0 or newer.
- Xcode 15.0 or newer (available on the Mac App Store or Apple Developer Portal).
- XcodeGen (used to generate the
.xcodeprojfile from the spec).
If the .xcodeproj is not present, or if you modify project.yml, regenerate it using XcodeGen:
# If XcodeGen is not installed
brew install xcodegen
# Generate the project
xcodegen generate --spec project.ymlThis will create Kolom.xcodeproj containing:
Kolom(Main target including the Input Method server and Settings UI)KolomTests(Unit tests)
macOS treats input methods as high-trust system components. You must perform the following steps in Xcode to enable it:
open Kolom.xcodeproj- In the left navigator pane, select the Kolom project node.
- Select the Kolom target.
- Select the Signing & Capabilities tab.
- Set the Team dropdown to your Apple Developer account.
- Note: Make sure both the main application target and any embedded extension schemas are signed with the same identity.
- Select the Kolom scheme from the Xcode target selector.
- Press ⌘R (or Product → Run) to compile and launch the application helper.
- The application will launch as a background utility (an icon
কwill appear in your macOS menu bar).
- Open System Settings on your Mac.
- Navigate to Keyboard ➔ Input Sources (or Keyboard ➔ click Edit... under Input Sources).
- Click the + (Add) button.
- Search for or select Kolom, then click Add.
- Switch to Kolom using the input switcher in your menu bar (or using the keyboard shortcut
Fn/🌐/Control+Spacedepending on your settings). - Open TextEdit and start typing in Avro phonetic transliteration (e.g. type
amito getআমি).
You can run the unit tests directly from Xcode or via the command line.
Option 1: Using the Command Line (Recommended)
Open your terminal and run the following command in the kolom directory:
xcodebuild test -project Kolom.xcodeproj -scheme KolomTests -destination 'platform=macOS'Option 2: Using Xcode
- Open
Kolom.xcodeprojin Xcode. - Select the KolomTests scheme from the top bar.
- Press ⌘U (or go to Product → Test in the menu).
Tests cover:
- Transliteration Rules & Vowel/Consonant Context
- Composition Lifecycle & Buffer Updates
- Candidate Deduplication & Scored Ranking
- KolomApp/ — App bootstrapping, status bar agent, and App Delegate.
- KolomInputMethod/ — Core IME components, event interceptors, and candidate visual overlay.
- KolomEngine/ — Phonetic parsing, rule compiler, and preedit buffer manager.
- KolomDictionary/ — Core and user lexicography stores.
- KolomSettings/ — Preferences panels.
- docs/ — Manual installation, signing, and integration specs.
Kolom uses a standard phonetic mapping (similar to Avro) to transliterate English letters into Bengali characters.
| English | Independent (Start of word) | Dependent (Matra / কার) |
|---|---|---|
a / A |
আ | া |
i |
ই | ি |
I |
ঈ | ী |
u |
উ | ু |
U |
ঊ | ূ |
e |
এ | ে |
o |
অ | (no matra) |
O |
ও | ো |
aa |
আ | া |
ii |
ঈ | ী |
uu |
ঊ | ূ |
oi |
ঐ | ৈ |
ou |
ঔ | ৌ |
rri |
ঋ | ৃ |
| English | Bengali | English | Bengali |
|---|---|---|---|
k |
ক | t |
ত |
kh |
খ | th |
থ |
g |
গ | d |
দ |
gh |
ঘ | dh |
ধ |
ng |
ং (Anusvara) | n |
ন |
Ng |
ঙ | p |
প |
c / ch |
চ | f / ph |
ফ |
Ch / chh |
ছ | b |
ব |
j |
জ | v / bh |
ভ |
jh |
ঝ | m |
ম |
NG |
ঞ | z / y |
য |
T |
ট | Y |
য় |
Th |
ঠ | r |
র |
D |
ড | l |
ল |
Dh |
ঢ | S / sh |
শ |
N |
ণ | Sh |
ষ |
R / rr |
ড় | s |
স |
Rh |
ঢ় | h |
হ |
| English | Bengali | Note |
|---|---|---|
t\`` or T`` |
ৎ | Khanda Ta |
^ |
ঁ | Chandrabindu |
: |
ঃ | Bisarga |
| ``` (backtick) | ্ | Hasanta (Explicitly link consonants) |
. |
। | Dari (Full stop) |
.. |
॥ | Double Dari |
kSh |
ক্ষ | Ksha Conjunct |
jNG |
ঞ্জ | Jnya Conjunct |
Typing Conjuncts (যুক্তাক্ষর):
To combine two consonants, simply type them consecutively. The engine automatically inserts a Hasanta (্) between them.
If you need to separate two consonants so they don't form a conjunct, use o (which acts as an invisible inherent vowel separator).
Examples of Complex Words:
| Bengali Word | English (Pronunciation) | Phonetic Typing | Explanation / Note |
|---|---|---|---|
| স্ত্রী | Stri | strI |
Consecutive consonants (str) join automatically |
| বঙ্গ | Banga | boNgg |
The o separates b and Ng to prevent ব্ঙ |
| বাঙালি | Bangali | baNgali |
Capital N is required to get ঙ |
| বিজ্ঞান | Biggan | bijNGan |
jNG is a built-in shortcut for জ্ঞ |
| ক্ষমা | Kkhoma | kShoma |
kSh is a built-in shortcut for ক্ষ |
| শিক্ষক | Shikkhok | shikShok |
Standard use of the kSh conjunct |
| বাংলা | Bangla | bangla |
ng naturally produces the Anusvara (ং) |
| কৃষ্ণ | Krishno | krriShN |
krri gets you কৃ (k + rri), and N gets you ণ |
| কৃষ্ণা | Krishnaa | krriShNa |
Adding a at the end attaches the া to the conjunct |
| গঞ্জ | Gonj | goNGj |
NG is used for ঞ. ng would wrongly produce গংজ |
Auto-Learning & Ambiguity:
If a typed word matches multiple spellings (like typing t at the end of a word when you meant ৎ), the candidate window will intelligently suggest words from the dictionary. Kolom also learns your unique words automatically!
