From 499f8058dd582b80bed6abbddd535105d2091591 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 18 Oct 2005 02:22:51 +0000 Subject: [PATCH] New input method. --- cjk-util.mim | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ zh-py-b5.mim | 45 +++++++++++++++++++++++ zh-py-gb.mim | 45 +++++++++++++++++++++++ 3 files changed, 205 insertions(+) create mode 100644 cjk-util.mim create mode 100644 zh-py-b5.mim create mode 100644 zh-py-gb.mim diff --git a/cjk-util.mim b/cjk-util.mim new file mode 100644 index 0000000..59d9c1f --- /dev/null +++ b/cjk-util.mim @@ -0,0 +1,115 @@ +;; cjk-util.mim -- Provide utilities for CJK input methods. +;; Copyright (C) 2005 +;; National Institute of Advanced Industrial Science and Technology (AIST) +;; Registration Number H15PRO112 + +;; This file is part of the m17n library. + +;; The m17n library is free software; you can redistribute it and/or +;; modify it under the terms of the GNU Lesser General Public License +;; as published by the Free Software Foundation; either version 2.1 of +;; the License, or (at your option) any later version. + +;; The m17n library is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; Lesser General Public License for more details. + +;; You should have received a copy of the GNU Lesser General Public +;; License along with the m17n library; if not, write to the Free +;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +;; 02111-1307, USA. + +;;;
  • fullwidth.mim + +(input-method t nil cjk-util) + +(title "AA") + +(description + "") + +(map + (fullwidth + (" " ? ) ("!" ?!) ("\"" ?") ("#" ?#) + ("$" ?$) ("%" ?%) ("&" ?&) ("'" ?') + ("(" ?\() (")" ?\)) ("*" ?*) ("+" ?+) + ("," ?,) ("-" ?-) ("." ?.) ("/" ?/) + ("0" ?0) ("1" ?1) ("2" ?2) ("3" ?3) + ("4" ?4) ("5" ?5) ("6" ?6) ("7" ?7) + ("8" ?8) ("9" ?9) (":" ?:) (";" ?;) + ("<" ?<) ("=" ?=) (">" ?>) ("?" ??) + ("@" ?ï¼ ) ("A" ?A) ("B" ?ï¼¢) ("C" ?ï¼£) + ("D" ?D) ("E" ?ï¼¥) ("F" ?F) ("G" ?G) + ("H" ?H) ("I" ?I) ("J" ?J) ("K" ?K) + ("L" ?L) ("M" ?ï¼­) ("N" ?ï¼®) ("O" ?O) + ("P" ?ï¼°) ("Q" ?ï¼±) ("R" ?ï¼²) ("S" ?ï¼³) + ("T" ?ï¼´) ("U" ?ï¼µ) ("V" ?V) ("W" ?ï¼·) + ("X" ?X) ("Y" ?ï¼¹) ("Z" ?Z) ("[" ?\ï¼») + ("\\" ?ï¼¼) ("]" ?\ï¼½) ("^" ?ï¼¾) ("_" ?_) + ("`" ?`) ("a" ?a) ("b" ?b) ("c" ?c) + ("d" ?d) ("e" ?e) ("f" ?f) ("g" ?g) + ("h" ?h) ("i" ?i) ("j" ?j) ("k" ?k) + ("l" ?l) ("m" ?m) ("n" ?n) ("o" ?o) + ("p" ?p) ("q" ?q) ("r" ?r) ("s" ?s) + ("t" ?t) ("u" ?u) ("v" ?v) ("w" ?w) + ("x" ?x) ("y" ?y) ("z" ?z) ("{" ?\{) + ("|" ?|) ("}" ?\}) ("~" ?~) + + ((cent) ?ï¿ ) + ((sterling) ?ï¿¡) + ((notsign) ?ï¿¢) + ((brokenbar) ?¦) + ((yen) ?ï¿¥) + ((Korean_Won) ?₩)) + + (enter-fullwidth-mode + (">>" (shift fullwidth-mode))) + (exit-fullwidth-mode + ("<<" (shift t))) + (enter-single-fullwidth-mode + ("Z" (shift single-fullwidth-mode))) + + ;; Typing 1, 2, ..., 0 selects the 0th, 1st, ..., 9th candidate. + (choose + ("1" (select 0)) + ("2" (select 1)) + ("3" (select 2)) + ("4" (select 3)) + ("5" (select 4)) + ("6" (select 5)) + ("7" (select 6)) + ("8" (select 7)) + ("9" (select 8)) + ("0" (select 9))) + + (change-candidate + ((Left) (select @-)) + ((C-b) (select @-)) + ((Right) (select @+)) + ((C-f) (select @+)) + ((Up) (select @[)) + ((C-p) (select @[)) + ((Down) (select @])) + ((C-n) (select @])))) + +(state + (init + "A" + (enter-fullwidth-mode) + (enter-single-fullwidth-mode)) + + (fullwidth-mode + "A" + (fullwidth (commit)) + (exit-fullwidth-mode) + (nil (unhandle))) + + (single-fullwidth-mode + "A" + (fullwidth (commit) (shift t)))) + +;; Local Variables: +;; mode: lisp +;; coding: utf-8 +;; End: diff --git a/zh-py-b5.mim b/zh-py-b5.mim new file mode 100644 index 0000000..6f3ead3 --- /dev/null +++ b/zh-py-b5.mim @@ -0,0 +1,45 @@ +;; zh-py-b5.mim -- Chinese Big5 input method with Pinyin sequence +;; Copyright (C) 2005 +;; National Institute of Advanced Industrial Science and Technology (AIST) +;; Registration Number H15PRO112 + +;; This file is part of the m17n database; a sub-part of the m17n +;; library. + +;; The m17n library is free software; you can redistribute it and/or +;; modify it under the terms of the GNU Lesser General Public License +;; as published by the Free Software Foundation; either version 2.1 of +;; the License, or (at your option) any later version. + +;; The m17n library is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; Lesser General Public License for more details. + +;; You should have received a copy of the GNU Lesser General Public +;; License along with the m17n library; if not, write to the Free +;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +;; 02111-1307, USA. + +(input-method zh py-b5) + +(description "Chinese Big5 input method with Pinyin sequence. +In addition to Chinese characters, fullwidth latin characters and +symbols are available in fullwidth mode (turns on and off by +\">>\" and \"<<\" respectively). This mode can also be turned on +temporarily by typing \"Z\". +") + +(title "拼B5") + +(variable + (candidates-group-size "" 10) + (candidates-charset "" big5)) + +(include (zh py) map) +(include (zh py) state) + +;; Local Variables: +;; coding: utf-8 +;; mode: lisp +;; End: diff --git a/zh-py-gb.mim b/zh-py-gb.mim new file mode 100644 index 0000000..b0b7a54 --- /dev/null +++ b/zh-py-gb.mim @@ -0,0 +1,45 @@ +;; zh-py-gb.mim -- Chinese GB2312.1980 input method with Pinyin sequence +;; Copyright (C) 2005 +;; National Institute of Advanced Industrial Science and Technology (AIST) +;; Registration Number H15PRO112 + +;; This file is part of the m17n database; a sub-part of the m17n +;; library. + +;; The m17n library is free software; you can redistribute it and/or +;; modify it under the terms of the GNU Lesser General Public License +;; as published by the Free Software Foundation; either version 2.1 of +;; the License, or (at your option) any later version. + +;; The m17n library is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +;; Lesser General Public License for more details. + +;; You should have received a copy of the GNU Lesser General Public +;; License along with the m17n library; if not, write to the Free +;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +;; 02111-1307, USA. + +(input-method zh py-gb) + +(description "Chinese GB2312 input method with Pinyin sequence. +In addition to Chinese characters, fullwidth latin characters and +symbols are available in fullwidth mode (turns on and off by +\">>\" and \"<<\" respectively). This mode can also be turned on +temporarily by typing \"Z\". +") + +(title "拼gb") + +(variable + (candidates-group-size "" 10) + (candidates-charset "" gb2312.1980)) + +(include (zh py) map) +(include (zh py) state) + +;; Local Variables: +;; coding: utf-8 +;; mode: lisp +;; End: -- 1.7.10.4