Mercurial > freewnn
comparison Wnn/include/wnn_config.h @ 0:bbc77ca4def5
initial import
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 13 Dec 2007 04:30:14 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bbc77ca4def5 |
---|---|
1 /* | |
2 * $Id: wnn_config.h,v 1.6 2005/04/10 15:26:37 aonoto Exp $ | |
3 */ | |
4 | |
5 /* | |
6 * FreeWnn is a network-extensible Kana-to-Kanji conversion system. | |
7 * This file is part of FreeWnn. | |
8 * | |
9 * Copyright Kyoto University Research Institute for Mathematical Sciences | |
10 * 1987, 1988, 1989, 1990, 1991, 1992 | |
11 * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 | |
12 * Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 | |
13 * Copyright FreeWnn Project 1999, 2000 | |
14 * | |
15 * Maintainer: FreeWnn Project <freewnn@tomo.gr.jp> | |
16 * | |
17 * This library is free software; you can redistribute it and/or | |
18 * modify it under the terms of the GNU Lesser General Public | |
19 * License as published by the Free Software Foundation; either | |
20 * version 2 of the License, or (at your option) any later version. | |
21 * | |
22 * This library is distributed in the hope that it will be useful, | |
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
25 * Lesser General Public License for more details. | |
26 * | |
27 * You should have received a copy of the GNU Lesser General Public | |
28 * License along with this library; if not, write to the | |
29 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
30 * Boston, MA 02111-1307, USA. | |
31 */ | |
32 | |
33 #ifndef WNN_CONFIG_H | |
34 #define WNN_CONFIG_H | |
35 | |
36 #ifdef TAIWANESE | |
37 #ifndef CHINESE | |
38 #define CHINESE | |
39 #endif | |
40 #endif | |
41 | |
42 #define WNN_USERNAME_ENV "WNNUSER" | |
43 #define WNN_JSERVER_ENV "JSERVER" | |
44 #define WNN_CSERVER_ENV "CSERVER" | |
45 #define WNN_KSERVER_ENV "KSERVER" | |
46 #define WNN_TSERVER_ENV "TSERVER" | |
47 #define WNN_J_LANG "ja_JP" | |
48 #define WNN_C_LANG "zh_CN" | |
49 #define WNN_K_LANG "ko_KR" | |
50 #define WNN_T_LANG "zh_TW" | |
51 #ifdef JAPANESE | |
52 #define WNN_DEFAULT_LANG WNN_J_LANG | |
53 #define WNN_DEF_SERVER_ENV WNN_JSERVER_ENV | |
54 #else /* JAPANESE */ | |
55 #ifdef CHINESE | |
56 #ifdef TAIWANESE | |
57 #define WNN_DEFAULT_LANG WNN_T_LANG | |
58 #define WNN_DEF_SERVER_ENV WNN_TSERVER_ENV | |
59 #else /* TAIWANESE */ | |
60 #define WNN_DEFAULT_LANG WNN_C_LANG | |
61 #define WNN_DEF_SERVER_ENV WNN_CSERVER_ENV | |
62 #endif /* TAIWANESE */ | |
63 #else /* CHINESE */ | |
64 #ifdef KOREAN | |
65 #define WNN_DEFAULT_LANG WNN_K_LANG | |
66 #define WNN_DEF_SERVER_ENV WNN_KSERVER_ENV | |
67 #else /* KOREAN */ | |
68 #define WNN_DEFAULT_LANG WNN_J_LANG | |
69 #define WNN_DEF_SERVER_ENV WNN_JSERVER_ENV | |
70 #endif /* KOREAN */ | |
71 #endif /* CHINESE */ | |
72 #endif /* JAPANESE */ | |
73 #define WNN_UUM_ENV "UUMRC" | |
74 #define WNN_KEYBOARD_ENV "KEYBOARD" | |
75 #define WNN_COUNTDOWN_ENV "UUM_COUNTDOWN" | |
76 | |
77 #define PATHNAMELEN 256 | |
78 | |
79 /* for jserver */ | |
80 #ifndef SERVER_INIT_FILE | |
81 # ifdef JAPANESE | |
82 # define SERVER_INIT_FILE "/ja_JP/jserverrc" | |
83 # else /* JAPANESE */ | |
84 # ifdef CHINESE | |
85 # ifdef TAIWANESE | |
86 # define SERVER_INIT_FILE "/zh_TW/tserverrc" | |
87 # else /* TAIWANESE */ | |
88 # define SERVER_INIT_FILE "/zh_CN/cserverrc" | |
89 # endif /* TAIWANESE */ | |
90 # else /* CHINESE */ | |
91 # ifdef KOREAN | |
92 # define SERVER_INIT_FILE "/ko_KR/kserverrc" | |
93 # else /* KOREAN */ | |
94 # define SERVER_INIT_FILE "/ja_JP/jserverrc" /* Default */ | |
95 # endif /* KOREAN */ | |
96 # endif /* CHINESE */ | |
97 # endif /* JAPANESE */ | |
98 #endif | |
99 #define JSERVER_DIR LIBDIR | |
100 | |
101 /* for uum */ | |
102 #define RCFILE "/uumrc" /* LIBDIR/@LANG/RCFILE */ | |
103 #define USR_UUMRC "/.uumrc" | |
104 #define RKFILE "/rk/mode" /* LIBDIR/@LANG/RKFILE */ | |
105 #define CPFILE "/uumkey" /* LIBDIR/@LANG/CPFILE */ | |
106 #define MESSAGEFILE "/message_file" | |
107 | |
108 #define CONVERT_FILENAME "/cvt_key_tbl" | |
109 | |
110 #define ENVRCFILE "/wnnenvrc" | |
111 #ifndef HINSIDATA_FILE | |
112 # define HINSIDATA_FILE "/ja_JP/hinsi.data" | |
113 #endif /* HINSIDATA_FILE */ | |
114 | |
115 #define USR_DIC_DIR_VAR "@USR" | |
116 | |
117 /* | |
118 if you wish to do flow control active for your tty, | |
119 define FLOW_CONTROL to 1. | |
120 note that this 'tty' means the tty from which wnn is invoked. | |
121 */ | |
122 | |
123 #define FLOW_CONTROL 0 | |
124 | |
125 #define C_LOCAL '!' | |
126 /* For Local File Name. | |
127 Local File Name is send as "Hostname!Filename" when C_LOCAL is '!'. | |
128 It is also used in jl_library to specify local file-name, that is, | |
129 file-names which start with this character are considered to be local. | |
130 */ | |
131 | |
132 | |
133 /* | |
134 define default kanji code system for your 'tty' side and 'pty' side. | |
135 'tty' side (TTY_KCODE) means 'your terminal's code'. | |
136 'pty' side (PTY_KCODE) means 'application's code'. | |
137 */ | |
138 | |
139 #ifdef luna | |
140 # ifdef uniosu | |
141 #define TTY_KCODE J_EUJIS | |
142 #define PTY_KCODE J_EUJIS | |
143 # else /* defined(MACH) || defined(uniosb) */ | |
144 #define TTY_KCODE J_EUJIS | |
145 #define PTY_KCODE J_EUJIS | |
146 # endif | |
147 #else /* !luna */ | |
148 # ifdef DGUX | |
149 #define TTY_KCODE J_EUJIS | |
150 #define PTY_KCODE J_EUJIS | |
151 # else /* !DGUX */ | |
152 #define TTY_KCODE J_JIS | |
153 #define PTY_KCODE J_JIS | |
154 # endif | |
155 #endif | |
156 | |
157 #define TTY_CCODE C_EUGB | |
158 #define PTY_CCODE C_EUGB | |
159 #define TTY_TCODE C_BIG5 | |
160 #define PTY_TCODE C_BIG5 | |
161 | |
162 #define TTY_HCODE K_EUKSC | |
163 #define PTY_HCODE K_EUKSC | |
164 | |
165 /* | |
166 OPTIONS defines what options are available. | |
167 define it by modifying ALL_OPTIONS string. | |
168 if you wish to make some option abailable, leave that character unchanged. | |
169 else turn that character some non-option character, ex. '*'. | |
170 TAKE CARE NOT TO MOVE CHARACTER POSITION, ORDER, ETC!! | |
171 | |
172 see sdefine.h for precise definition of ALL_OPTIONS. defines below | |
173 may be incorrect. | |
174 | |
175 #define GETOPTSTR "hHujsUJSPxXk:c:r:l:D:n:vL:" | |
176 #define ALL_OPTIONS "hHujsUJSPxXkcrlDnvL" | |
177 | |
178 #ifndef OPTIONS | |
179 #define OPTIONS ALL_OPTIONS | |
180 #endif | |
181 */ | |
182 | |
183 #define WNN_TIMEOUT 5 /* connect の際に5秒待つんだよ */ | |
184 #define WNN_DISP_MODE_LEN 5 /* モード表示に必要なcolumn数 */ | |
185 | |
186 #endif /* WNN_CONFIG_H */ |