Script your own InputMethods for OS X (Franco-Arabic example included!)
![]() | BowdlatorBowdlator is an extensible InputMethod for Mac OS X.
|
Everything typed in, while the Bowdlator InputMethod is selected, is written into a unix domain socket at /usr/local/var/run/bowdlator.sock
.
You can write scripts (called filters) that connect to the socket and transform the input.
Check out the examples/
for sample filters. Following are currently included:
\texnotation
into Unicode. You enter tex
-mode by \
and leave it by pressing a non-printable keyMicrosoft’s Cairo Research Lab wrote a fine piece of software called Maren, offering JIT transliteration to actual Arabic:
Unfortunately, such a program doesn’t exist for OS X, so I wrote this one. Prime goal was making it extensible by allowing arbitary filter scripts.
After connecting to the AF_UNIX
socket, a nul-terminated string corresponding to the character typed will be sent. The filter then replies with the text to display and optionally a candidate list and/or a commit instruction (\4
ASCII ETX
).
Sample filters in C, Perl, Python and Ruby are provided in examples/
. If no filter is running, typed text is posted to the active process as is.
~/Library/Input Methods
or /Library/Input Methods
Bowdlator
git clone http://github.com/a3f/bowdlator
cd bowdlator
make
make install
osascript -e 'tell app "System Events" to «event aevtrlgo»'
Bowdlator
Copyright (C) 2016 Ahmad Fatoum
The InputMethod is free software; you can redistribute it and/or modify
it under the terms of the GNU GPL3+. See LICENSE for the full terms. Additionally, the examples/
are in the public domain.
Logo by Islam Negm.