Commit 66c889a8 authored by Siong-Ui Te's avatar Siong-Ui Te

move velthuis scheme Pali input method to gopalilib repo

parent 263b422d
......@@ -13,16 +13,44 @@ addons:
- make
- git
- gettext
install:
- cd tipitaka/
- make install
script:
- make make-sutta
deploy:
- provider: pages
repo: siongui/tipitaka.sutta.org
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: tipitaka/website
on:
branch: master
# https://docs.travis-ci.com/user/build-matrix/
jobs:
include:
# for dictionary.online-dhamma.net
- env: TARGET_WEBSITE=dhamma
install:
- cd dictionary/
- make install
script:
- make make-dhamma
after_success:
- make custom_dhamma_deploy
# for dictionary.sutta.org
- env: TARGET_WEBSITE=sutta
install:
- cd dictionary/
- make install
script:
- make make-sutta
after_success:
- make custom_sutta_deploy
# dpl v2 (not working for lots of symlinks)
#deploy:
# - provider: pages:git
# repo: siongui/dictionary.sutta.org
# keep_history: false
# token: $GITHUB_TOKEN
# local_dir: website
# on:
# branch: master
# edge: true
# verbose: true
# dpl v1 (not working for lots of symlinks)
#deploy:
# - provider: pages
# repo: siongui/dictionary.sutta.org
# skip_cleanup: true
# github_token: $GITHUB_TOKEN
# local_dir: website
# on:
# branch: master
......@@ -260,22 +260,19 @@ po2mo:
###################
# Install Library #
###################
install: lib_pali lib_gtmpl lib_ime_pali lib_gopherjs_input_suggest lib_gopherjs
install: lib_pali lib_gtmpl lib_gopherjs_input_suggest lib_gopherjs
lib_pali:
@echo "\033[92mInstalling common lib used in this project ...\033[0m"
go get -u github.com/siongui/gopalilib/dicutil
go get -u github.com/siongui/gopalilib/lib/jsgettext
go get -u github.com/siongui/gopaliwordvfs
go get -u github.com/siongui/gopalilib/libfrontend/velthuis
lib_gtmpl:
@echo "\033[92mInstalling Go html/template with gettext support ...\033[0m"
go get -u github.com/siongui/gtmpl
lib_ime_pali:
@echo "\033[92mInstalling Online Go Pāli IME ...\033[0m"
go get -u github.com/siongui/go-online-input-method-pali
lib_gopherjs_input_suggest:
@echo "\033[92mInstalling GopherJS input suggest library ...\033[0m"
go get -u github.com/siongui/gopherjs-input-suggest
......
......@@ -3,10 +3,10 @@ package main
import (
"strings"
imepali "github.com/siongui/go-online-input-method-pali"
. "github.com/siongui/godom"
"github.com/siongui/gopalilib/lib/dicmgr"
dic "github.com/siongui/gopalilib/lib/dictionary"
"github.com/siongui/gopalilib/libfrontend/velthuis"
sg "github.com/siongui/gopherjs-input-suggest"
)
......@@ -33,7 +33,8 @@ func main() {
setupKeypad()
// add pali input method to input text element
imepali.BindPaliInputMethodToInputTextElementById("word")
// call velthuis before input suggest setup (order of keyevent handlers matters)
velthuis.BindPaliInputMethodToInputTextElementById("word")
// toggle type hint table
tth := Document.GetElementById("toggle-type-hint")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment