[Golang] Online Input Method (Pāli) by GopherJS


Demo (Fork me on Github)

Inspired by palipad (demo of palipad), I write a Golang webapp which help users input Pāli language online. The implementation is simple. Create an input:text element first, and then listen to the onKeyup event of the input:text element. The last two characters of the input:text element will be replaced according to the following rule. This application is an example of DOM manipulation by GopherJS. See GopherJS DOM Example series for more details.

Type For
AA Ā
aa ā
II Ī
ii ī
UU Ū
uu ū
"N
"n
.M
.m
~N Ñ
~n ñ
.T
.t
.D
.d
.N
.n
.L
.l

Source Code for Demo (HTML):

Source Code for Demo (Go):


Tested on: Ubuntu Linux 15.10, Go 1.5.2.