cl-skkserv

2018-02-28

cl-skkserv

GitHub Build Status Quicklisp Amazon Wishlist

??

cl-skkserv ?SKK??????????????????? ???SKK???????????????Common Lisp????????????????????

cl-skkserv?SKK?????????????????????????????????????????? ??????????????????????????????? ??Google?CGI???SKK??????????????????????

?????????????????????API????????????? Quicklisp?????develop????????????????????master????????????? ??????API?develop??????????????

??

Common Lisp????????Roswell??????????????????????

$ ros install asciian/cl-skkserv

v0.2??Homebrew???Linuxbrew??????????????????

$ brew install asciian/lisp/cl-skkserv

???

??

$ skkserv start # skkserv?????
$ skkserv stop  # skkserv?????

??

??

~/.skkservrc????????????????????????

(in-package :skkserv-user)

(setf *dictionary* (make-instance 'skk-dictionary :pathname #p"/path/to/dictionary"))
Emacs

Emacs??????~/.emacs?????????????

(setq skk-server-host "127.0.0.1")
(setq skk-server-portnum 1178)
Vim

Vim??????~/.vimrc?????????????

let g:eskk#server = {
\   'host': 'localhost',
\   'port': 1178,
\}

??

???????CLOS??????????????DICTIONARY???????convert?????????????? ???????????????????DICTIONARY???????convert???????????????????????????????

?????????????????Echo??????? ?????????????append??????????????????

(defclass echo-dictionary (dictionary) ())
(defmethod convert append ((d echo-dictionary) (s string)) (declare (ignore d)) (list s))
(setq *dictionary* (make-instance 'echo-dictionary))

????SKK????Echo??????????SKK???????????????????????

(defclass echo-and-skk-dictionary (echo-dictionary skk-dictionary) ()) ;; skk-dicitonary ?dictionary????????????
(setq *dictionary* (make-instance 'echo-and-skk-dictionary :pathname #p"/path/to/dictionary"))

???DICTIONARY???????????????????????MIXED-DICTIONARY??????????????

(defvar skk (make-instance 'skk-dictionary :pathname #p"/path/to/dictionary"))
(defvar echo (make-instance 'echo-dictionary))
(setq *dictionary* (make-instance 'mixed-dictionary :dictionaries (list skk echo)))

cl-skkserv????????????????????????????

  • dictionary
    • skk-text-dictionary
      • skk-dictionary
    • skk-lisp-dictionary
      • skk-dictionary
    • skk-pattern-dictionary
      • skk-dictionary
    • google-ime-dictionary
    • mixed-dictionary
    • proxy-dictionary

??????

??????Papyrus??????????????????????? ?????????????????

?????

GPL??????????????????????????????????? ????????????????

?????

Copyright (c) 2017 asciian ALL Rights Reserved.

Author
asciian
License
GPLv3