Debian Codegraph @

nicola/skk-kanagaki-menu.el

raw
1 ;;; skk-kanagaki-menu.el --- NICOLA-DDSKK $B$N%a%K%e!<%5%]!<%H(B -*- coding: iso-2022-jp -*-
2
3 ;; Copyright (C) 2000 Tetsuo Tsukamoto <[email protected]>
4
5 ;; Author: Tetsuo Tsukamoto <[email protected]>
6 ;; Keywords: hardware, japanese, mule, input method
7
8 ;; This file is part of Daredevil SKK.
9
10 ;; This program is free software: you can redistribute it and/or
11 ;; modify it under the terms of the GNU General Public License as
12 ;; published by the Free Software Foundation, either version 3 of
13 ;; the License, or (at your option) any later version.
14
15 ;; This program is distributed in the hope that it will be
16 ;; useful, but WITHOUT ANY WARRANTY; without even the implied
17 ;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 ;; PURPOSE. See the GNU General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
22
23 ;;; Commentary:
24
25 ;; NICOLA-DDSKK $B$N%a%K%e!<$r(B SKK $BI8=`$N%a%K%e!<$KDI2C$7$^$9!#(B
26
27 ;;; Code:
28
29 (eval-when-compile
30 (require 'cl-lib)
31 (require 'skk-vars))
32
33 (eval-and-compile
34 (autoload 'browse-url-netscape "browse-url"))
35
36 (require 'easymenu)
37
38 (eval-and-compile
39 (defvar skk-kanagaki-menu-items
40 '("NICOLA DDSKK"
41 ["Set Henkan point" skk-set-henkan-point-subr t]
42 ["Input Prefix or Suffix" skk-kanagaki-midashi-henkan t]
43 ["Start Conversion with Okuri" skk-kanagaki-set-okurigana t]
44 "--"
45 ["Input a Character by Code" skk-input-by-code-or-menu t]
46 ["Enter SKK Abbrev Mode" skk-abbrev-mode t]
47 ["\
48 Convert Hiragana <=> Katakana or Toggle Hiragana <=> Katakana Mode"
49 skk-toggle-kana t]
50 ["Enter SKK JIS X 0208 Latin Mode" skk-jisx0208-latin-mode t]
51 ["\
52 Convert to Hankaku Katakana or Toggle Katakana <=> Hankaku Katakana Mode"
53 skk-toggle-katakana t]
54 ["Enter SKK Latin Mode" skk-latin-mode t]
55 ["Enter SKK Japanese Mode" skk-kakutei t]
56 ["Toggle Roma <=> Kana" skk-kanagaki-toggle-rom-kana t]
57 "--"
58 ["Show Key Bindings" skk-kanagaki-help t]
59 ["Show the Current Keymap based on NICOLA" skk-nicola-help
60 (featurep 'skk-nicola)]
61 ["Show NICOLA-Specific Key Bindings" skk-nicola-2nd-help
62 (featurep 'skk-nicola)]
63 "--"
64 ["Visit NIHONGO-NYURYOKU CONSORTIUM Web Site"
65 skk-nicola-visit-nicola-website (locate-library "browse-url")])))
66
67 (dolist (map (list skk-j-mode-map
68 skk-latin-mode-map
69 skk-abbrev-mode-map
70 skk-jisx0208-latin-mode-map))
71 (easy-menu-add-item
72 map
73 '("menu-bar" "SKK")
74 skk-kanagaki-menu-items))
75
76 (when (eval-when-compile (featurep 'emacs))
77 (setq skk-emacs-menu-resource-ja
78 (append
79 skk-emacs-menu-resource-ja
80 '(("Set Henkan point" . "$BJQ493+;OE@$r%;%C%H(B")
81 ("Input Prefix or Suffix" . "$B@\F,<-!&@\Hx<-$rF~NO(B")
82 ("Start Conversion with Okuri" . "$BAw$j$"$jJQ49$r3+;O(B")
83 ("Input a Character by Code" . "$B%3!<%IF~NO(B")
84 ("Enter SKK Abbrev Mode" . "Abbrev $B%b!<%I$KF~$k(B")
85 ("\
86 Convert Hiragana <=> Katakana or Toggle Hiragana <=> Katakana Mode"
87 . "$B$+$J(B <=> $B%+%J(B $BJQ49(B $B$^$?$O(B $B$+$J%b!<%I(B <=> $B%+%J%b!<%I(B $B@Z49$((B")
88 ("Enter SKK JIS X 0208 Latin Mode" . "$BA41Q%b!<%I$KF~$k(B")
89 ("\
90 Convert to Hankaku Katakana or Toggle Katakana <=> Hankaku Katakana Mode"
91 . "\
92 $BH>3Q%+%J$KJQ49(B $B$^$?$O(B $BA43Q%+%J%b!<%I(B <=> $BH>3Q%+%J%b!<%I(B $B@Z49$((B")
93 ("Enter SKK Latin Mode" . "$B%"%9%-!<%b!<%I$KF~$k(B")
94 ("Enter SKK Japanese Mode" . "$B$+$J%b!<%I$KF~$k(B")
95 ("Toggle Roma <=> Kana" . "$B$+$JF~NOJ}<0(B $B%m!<%^(B <=> $B$+$J(B $B@Z49$((B")
96 ("Show Key Bindings" . "$B$+$JF~NOFH<+$N%-!<Dj5A$rI=<((B")
97 ("Show the Current Keymap based on NICOLA"
98 . "NICOLA $B%-!<G[Ns$rI=<((B")
99 ("Show NICOLA-Specific Key Bindings"
100 . "NICOLA $BFCM-$N%-!<Dj5A$rI=<((B")
101 ("Visit NIHONGO-NYURYOKU CONSORTIUM Web Site"
102 . "$BF|K\8lF~NO%3%s%=!<%7%"%`$N%5%$%H$X(B")))))
103
104 (provide 'skk-kanagaki-menu)
105
106 ;; Local Variables:
107 ;; indent-tabs-mode: nil
108 ;; End:
109
110 ;;; skk-kanagaki-menu.el ends here