Mercurial > hg > xemacs-beta
comparison lisp/egg/eggrc-wnn @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | |
children | 0d2f883870bc |
comparison
equal
deleted
inserted
replaced
69:804d1389bcd6 | 70:131b0175ea99 |
---|---|
1 ;; -*-Emacs-Lisp-*- | |
2 ;; Standard Start Up File for EGG | |
3 ;; Copyright (C) 1992 Free Software Foundation, Inc. | |
4 ;; This file is part of Mule (MULtilingual Enhancement of GNU Emacs). | |
5 | |
6 ;; Mule is free software distributed in the form of patches to GNU Emacs. | |
7 ;; You can redistribute it and/or modify | |
8 ;; it under the terms of the GNU General Public License as published by | |
9 ;; the Free Software Foundation; either version 1, or (at your option) | |
10 ;; any later version. | |
11 | |
12 ;; Mule is distributed in the hope that it will be useful, | |
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ;; GNU General Public License for more details. | |
16 | |
17 ;; You should have received a copy of the GNU General Public License | |
18 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
19 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
20 | |
21 ;;; Version 1.0 | |
22 ;;; Written by Satoru.Tomura@etl.jp 1988 | |
23 ;;; modified for LUNA'default ryuji@nfa.ncl.omron.junet | |
24 ;;; | |
25 ;;; modified for Wnn V4 - Use compatible library of Wnn v3 | |
26 ;;; Copyright 1989 OMRON Tateisi Electronics, Co. | |
27 ;;; 1989 7/12 by H.Kuribayashi kuri@frf.oron.junet | |
28 | |
29 ;;; 92.5.19 modified for Wnn V4 by T.Shingu <shingu@cpr.canon.co.jp> | |
30 ;;; Use non compatible library. | |
31 ;;; 93.1.8 file names of frequency and private dictionary ware adjusted | |
32 ;;; to Wnn version 4.1. | |
33 ;;; 93.4.2 dictianary, frequency files are set up on normal/reverse | |
34 ;;; environment individually. | |
35 ;;; 93.6.30 specifying default user directory to make customize easily | |
36 ;;; suggested by K.Sakai <ksakai@mtl.t.u-tokyo.ac.jp> | |
37 | |
38 ;(defvar wnn-usr-dic-dir "usr/$USER") | |
39 (defvar wnn-usr-dic-dir (concat "usr/" (user-login-name))) | |
40 | |
41 (defun wnn6-jserver-setup () | |
42 (set-wnn-reverse nil) | |
43 (set-wnn-fuzokugo "iwanami/kougo.fzk") | |
44 (add-wnn-fisys-dict "iwanami/fisd" | |
45 (concat wnn-usr-dic-dir "/fisd.h") t) | |
46 (add-wnn-fiusr-dict (concat wnn-usr-dic-dir "/fiud") "" t nil) | |
47 (add-wnn-dict "iwanami/kihon.dic" | |
48 (concat wnn-usr-dic-dir "/kihon.h") 6 nil t) | |
49 (add-wnn-dict "iwanami/symbol.dic" | |
50 (concat wnn-usr-dic-dir "/symbol.h") 1 nil t) | |
51 (add-wnn-dict "iwanami/tankan.dic" "" 1 nil nil) | |
52 (add-wnn-dict "iwanami/tankan2.dic" "" 1 nil nil) | |
53 (add-wnn-dict "iwanami/tel.dic" "" 1 nil nil) | |
54 (add-wnn-dict "iwanami/zip.dic" "" 1 nil nil) | |
55 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 15 t t) | |
56 ; (add-wnn-dict "wnncons/tankan2.dic" "" 1 nil nil) | |
57 ; (add-wnn-dict "wnncons/tankan3.dic" "" 1 nil nil) | |
58 (set-wnn-param 5 10 2 45 0 80 5 1 20 0 400 -100 400 80 200 2 200) | |
59 | |
60 (add-wnn-notrans-dict "usr/$USER/katakana" 15 t) | |
61 (add-wnn-bmodify-dict "usr/$USER/bunsetsu" 15 t) | |
62 | |
63 (set-last-is-first-mode t) | |
64 (set-complex-conv-mode nil) | |
65 ; (set-okuri-flag -1) | |
66 (set-prefix-flag 0) | |
67 | |
68 (set-okuri-learn-mode t) | |
69 (set-prefix-learn-mode t) | |
70 (set-suffix-learn-mode t) | |
71 (set-common-learn-mode t) | |
72 (set-yuragi-mode nil) | |
73 | |
74 (set-freq-func-mode 4) | |
75 | |
76 ; (set-numeric-mode -12) | |
77 ; (set-alphabet-mode -30) | |
78 ; (set-symbol-mode -40) | |
79 | |
80 (set-wnn-reverse t) | |
81 (set-wnn-fuzokugo "iwanami/kougo.fzk") | |
82 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 15 t t) | |
83 (set-wnn-param 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200) | |
84 | |
85 ) | |
86 | |
87 | |
88 (defun wnn4-jserver-setup () | |
89 (set-wnn-reverse nil) | |
90 (set-wnn-fuzokugo "pubdic/full.fzk") | |
91 (add-wnn-dict "pubdic/kihon.dic" (concat wnn-usr-dic-dir "/kihon.h") 5 nil t) | |
92 (add-wnn-dict "pubdic/setsuji.dic" (concat wnn-usr-dic-dir "/setsuji.h") 5 nil t) | |
93 (add-wnn-dict "pubdic/koyuu.dic" (concat wnn-usr-dic-dir "/koyuu.h") 1 nil t) | |
94 (add-wnn-dict "pubdic/chimei.dic" (concat wnn-usr-dic-dir "/chimei.h") 1 nil t) | |
95 (add-wnn-dict "pubdic/jinmei.dic" (concat wnn-usr-dic-dir "/jinmei.h") 1 nil t) | |
96 (add-wnn-dict "pubdic/special.dic" (concat wnn-usr-dic-dir "/special.h") 5 nil t) | |
97 (add-wnn-dict "pubdic/computer.dic" (concat wnn-usr-dic-dir "/computer.h") 5 nil t) | |
98 (add-wnn-dict "pubdic/symbol.dic" (concat wnn-usr-dic-dir "/symbol.h") 1 nil t) | |
99 (add-wnn-dict "pubdic/tankan.dic" "" 1 nil nil) | |
100 (add-wnn-dict "pubdic/bio.dic" (concat wnn-usr-dic-dir "/bio.h") 1 nil t) | |
101 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
102 ; (add-wnn-dict "wnncons/tankan2.dic" "" 1 nil nil) | |
103 ; (add-wnn-dict "wnncons/tankan3.dic" "" 1 nil nil) | |
104 (set-wnn-param 2 10 2 45 5 80 5 1 40 0 400 -100 400 80 200 2 200) | |
105 (set-wnn-reverse t) | |
106 (set-wnn-fuzokugo "pubdic/full.fzk") | |
107 (add-wnn-dict "pubdic/kihon.dic" (concat wnn-usr-dic-dir "/kihon.h") 5 nil t) | |
108 (add-wnn-dict "pubdic/setsuji.dic" (concat wnn-usr-dic-dir "/setsuji.h") 5 nil t) | |
109 (add-wnn-dict "pubdic/koyuu.dic" (concat wnn-usr-dic-dir "/koyuu.h") 1 nil t) | |
110 (add-wnn-dict "pubdic/chimei.dic" (concat wnn-usr-dic-dir "/chimei.h") 1 nil t) | |
111 (add-wnn-dict "pubdic/jinmei.dic" (concat wnn-usr-dic-dir "/jinmei.h") 1 nil t) | |
112 (add-wnn-dict "pubdic/special.dic" (concat wnn-usr-dic-dir "/special.h") 5 nil t) | |
113 (add-wnn-dict "pubdic/computer.dic" (concat wnn-usr-dic-dir "/computer.h") 5 nil t) | |
114 ; (add-wnn-dict "pubdic/symbol.dic" (concat wnn-usr-dic-dir "/symbol.h") 1 nil t) | |
115 (add-wnn-dict "pubdic/tankan.dic" "" 1 nil nil) | |
116 (add-wnn-dict "pubdic/bio.dic" (concat wnn-usr-dic-dir "/bio.h") 1 nil t) | |
117 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
118 ; (add-wnn-dict "wnncons/tankan2.dic" "" 1 nil nil) | |
119 ; (add-wnn-dict "wnncons/tankan3.dic" "" 1 nil nil) | |
120 (set-wnn-param 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200) | |
121 | |
122 ) | |
123 | |
124 (cond ((eq wnn-server-type 'jserver) | |
125 (if (is-wnn6-server) | |
126 (wnn6-jserver-setup) | |
127 (wnn4-jserver-setup))) | |
128 ((eq wnn-server-type 'cserver) | |
129 (set-wnn-reverse nil) | |
130 (set-wnn-fuzokugo "sys/full.con") | |
131 (add-wnn-dict "sys/level_1.dic" (concat wnn-usr-dic-dir "/level_1.h") 4 nil t) | |
132 (add-wnn-dict "sys/level_2.dic" (concat wnn-usr-dic-dir "/level_2.h") 1 nil t) | |
133 (add-wnn-dict "sys/basic.dic" (concat wnn-usr-dic-dir "/basic.h") 7 nil t) | |
134 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
135 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
136 (set-wnn-reverse t) | |
137 (set-wnn-fuzokugo "sys/full.con") | |
138 (add-wnn-dict "sys/level_1.dic" (concat wnn-usr-dic-dir "/level_1.h") 4 nil t) | |
139 (add-wnn-dict "sys/level_2.dic" (concat wnn-usr-dic-dir "/level_2.h") 1 nil t) | |
140 (add-wnn-dict "sys/basic.dic" (concat wnn-usr-dic-dir "/basic.h") 7 nil t) | |
141 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
142 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
143 ) | |
144 ((eq wnn-server-type 'tserver) | |
145 (set-wnn-reverse nil) | |
146 (set-wnn-fuzokugo "sys/full.con") | |
147 (add-wnn-dict "sys/cns_ch.dic" (concat wnn-usr-dic-dir "/cns_ch.h") 4 nil t) | |
148 (add-wnn-dict "sys/cns_wd.dic" (concat wnn-usr-dic-dir "/cns_wd.h") 1 nil t) | |
149 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
150 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
151 (set-wnn-reverse t) | |
152 (set-wnn-fuzokugo "sys/full.con") | |
153 (add-wnn-dict "sys/cns_ch.dic" (concat wnn-usr-dic-dir "/cns_ch.h") 4 nil t) | |
154 (add-wnn-dict "sys/cns_wd.dic" (concat wnn-usr-dic-dir "/cns_wd.h") 1 nil t) | |
155 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
156 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
157 ) | |
158 ((eq wnn-server-type 'kserver) | |
159 (set-wnn-reverse nil) | |
160 (set-wnn-fuzokugo "sys/full.fzk") | |
161 ; (add-wnn-dict "sys/hword.dic" (concat wnn-usr-dic-dir "/hword.h") 4 nil t) | |
162 (add-wnn-dict "sys/single.dic" (concat wnn-usr-dic-dir "/single.h") 1 nil t) | |
163 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
164 ; (add-wnn-dict (concat wnn-usr-dic-dir "/hangul") "" 5 t t) | |
165 ; (add-wnn-dict (concat wnn-usr-dic-dir "/fuzokugo") "" 5 t t) | |
166 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
167 (set-wnn-reverse t) | |
168 (set-wnn-fuzokugo "sys/full.fzk") | |
169 ; (add-wnn-dict "sys/hword.dic" (concat wnn-usr-dic-dir "/hword.h") 4 nil t) | |
170 (add-wnn-dict "sys/single.dic" (concat wnn-usr-dic-dir "/single.h") 1 nil t) | |
171 (add-wnn-dict (concat wnn-usr-dic-dir "/ud") "" 5 t t) | |
172 ; (add-wnn-dict (concat wnn-usr-dic-dir "/hangul") "" 5 t t) | |
173 ; (add-wnn-dict (concat wnn-usr-dic-dir "/fuzokugo") "" 5 t t) | |
174 (set-wnn-param 1 5 2 750 10 80 10 5 1000 50 0 -200 0 0 0 16 0) | |
175 ) | |
176 ) | |
177 | |
178 ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko | |
179 |