2

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

 2 years ago
source link: http://siongui.github.io/2016/01/12/go-online-input-method-pali-by-gopherjs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

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

January 12, 2016

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.


Author

: Siong-Ui Te Category: GopherJS


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK