/usr/include/wnn/wnn_config.h is in libwnn-dev 1.1.1~a021+cvs20130302-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | /*
* $Id: wnn_config.h,v 1.6 2005/04/10 15:26:37 aonoto Exp $
*/
/*
* FreeWnn is a network-extensible Kana-to-Kanji conversion system.
* This file is part of FreeWnn.
*
* Copyright Kyoto University Research Institute for Mathematical Sciences
* 1987, 1988, 1989, 1990, 1991, 1992
* Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
* Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
* Copyright FreeWnn Project 1999, 2000
*
* Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
*
* This 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 of the License, or (at your option) any later version.
*
* This 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 this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef WNN_CONFIG_H
#define WNN_CONFIG_H
#ifdef TAIWANESE
#ifndef CHINESE
#define CHINESE
#endif
#endif
#define WNN_USERNAME_ENV "WNNUSER"
#define WNN_JSERVER_ENV "JSERVER"
#define WNN_CSERVER_ENV "CSERVER"
#define WNN_KSERVER_ENV "KSERVER"
#define WNN_TSERVER_ENV "TSERVER"
#define WNN_J_LANG "ja_JP"
#define WNN_C_LANG "zh_CN"
#define WNN_K_LANG "ko_KR"
#define WNN_T_LANG "zh_TW"
#ifdef JAPANESE
#define WNN_DEFAULT_LANG WNN_J_LANG
#define WNN_DEF_SERVER_ENV WNN_JSERVER_ENV
#else /* JAPANESE */
#ifdef CHINESE
#ifdef TAIWANESE
#define WNN_DEFAULT_LANG WNN_T_LANG
#define WNN_DEF_SERVER_ENV WNN_TSERVER_ENV
#else /* TAIWANESE */
#define WNN_DEFAULT_LANG WNN_C_LANG
#define WNN_DEF_SERVER_ENV WNN_CSERVER_ENV
#endif /* TAIWANESE */
#else /* CHINESE */
#ifdef KOREAN
#define WNN_DEFAULT_LANG WNN_K_LANG
#define WNN_DEF_SERVER_ENV WNN_KSERVER_ENV
#else /* KOREAN */
#define WNN_DEFAULT_LANG WNN_J_LANG
#define WNN_DEF_SERVER_ENV WNN_JSERVER_ENV
#endif /* KOREAN */
#endif /* CHINESE */
#endif /* JAPANESE */
#define WNN_UUM_ENV "UUMRC"
#define WNN_KEYBOARD_ENV "KEYBOARD"
#define WNN_COUNTDOWN_ENV "UUM_COUNTDOWN"
#define PATHNAMELEN 256
/* for jserver */
#ifndef SERVER_INIT_FILE
# ifdef JAPANESE
# define SERVER_INIT_FILE "/ja_JP/jserverrc"
# else /* JAPANESE */
# ifdef CHINESE
# ifdef TAIWANESE
# define SERVER_INIT_FILE "/zh_TW/tserverrc"
# else /* TAIWANESE */
# define SERVER_INIT_FILE "/zh_CN/cserverrc"
# endif /* TAIWANESE */
# else /* CHINESE */
# ifdef KOREAN
# define SERVER_INIT_FILE "/ko_KR/kserverrc"
# else /* KOREAN */
# define SERVER_INIT_FILE "/ja_JP/jserverrc" /* Default */
# endif /* KOREAN */
# endif /* CHINESE */
# endif /* JAPANESE */
#endif
#define JSERVER_DIR LIBDIR
/* for uum */
#define RCFILE "/uumrc" /* LIBDIR/@LANG/RCFILE */
#define USR_UUMRC "/.uumrc"
#define RKFILE "/rk/mode" /* LIBDIR/@LANG/RKFILE */
#define CPFILE "/uumkey" /* LIBDIR/@LANG/CPFILE */
#define MESSAGEFILE "/message_file"
#define CONVERT_FILENAME "/cvt_key_tbl"
#define ENVRCFILE "/wnnenvrc"
#ifndef HINSIDATA_FILE
# define HINSIDATA_FILE "/ja_JP/hinsi.data"
#endif /* HINSIDATA_FILE */
#define USR_DIC_DIR_VAR "@USR"
/*
if you wish to do flow control active for your tty,
define FLOW_CONTROL to 1.
note that this 'tty' means the tty from which wnn is invoked.
*/
#define FLOW_CONTROL 0
#define C_LOCAL '!'
/* For Local File Name.
Local File Name is send as "Hostname!Filename" when C_LOCAL is '!'.
It is also used in jl_library to specify local file-name, that is,
file-names which start with this character are considered to be local.
*/
/*
define default kanji code system for your 'tty' side and 'pty' side.
'tty' side (TTY_KCODE) means 'your terminal's code'.
'pty' side (PTY_KCODE) means 'application's code'.
*/
#ifdef luna
# ifdef uniosu
#define TTY_KCODE J_EUJIS
#define PTY_KCODE J_EUJIS
# else /* defined(MACH) || defined(uniosb) */
#define TTY_KCODE J_EUJIS
#define PTY_KCODE J_EUJIS
# endif
#else /* !luna */
# ifdef DGUX
#define TTY_KCODE J_EUJIS
#define PTY_KCODE J_EUJIS
# else /* !DGUX */
#define TTY_KCODE J_JIS
#define PTY_KCODE J_JIS
# endif
#endif
#define TTY_CCODE C_EUGB
#define PTY_CCODE C_EUGB
#define TTY_TCODE C_BIG5
#define PTY_TCODE C_BIG5
#define TTY_HCODE K_EUKSC
#define PTY_HCODE K_EUKSC
/*
OPTIONS defines what options are available.
define it by modifying ALL_OPTIONS string.
if you wish to make some option abailable, leave that character unchanged.
else turn that character some non-option character, ex. '*'.
TAKE CARE NOT TO MOVE CHARACTER POSITION, ORDER, ETC!!
see sdefine.h for precise definition of ALL_OPTIONS. defines below
may be incorrect.
#define GETOPTSTR "hHujsUJSPxXk:c:r:l:D:n:vL:"
#define ALL_OPTIONS "hHujsUJSPxXkcrlDnvL"
#ifndef OPTIONS
#define OPTIONS ALL_OPTIONS
#endif
*/
#define WNN_TIMEOUT 5 /* connect ¤ÎºÝ¤Ë£µÉÃÂԤĤó¤À¤è */
#define WNN_DISP_MODE_LEN 5 /* ¥â¡¼¥Éɽ¼¨¤ËɬÍפÊcolumn¿ô */
#endif /* WNN_CONFIG_H */
|