/usr/include/wnn/commonhd.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 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | /*
* $Id: commonhd.h,v 1.13 2006/03/04 19:01:45 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, 2001, 2002, 2005, 2006
*
* Maintainer: FreeWnn Project
*
* 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_COMMONHD_H
#define WNN_COMMONHD_H
/****************
* Common header
****************/
#include <stdio.h>
#define JSERVER_VERSION 0x4200 /* minor version */
#define _SERVER_VERSION "FreeWnn 1.1.0 pl22"
#include "wnnerror.h"
#ifndef JS
typedef unsigned int UINT;
typedef unsigned char UCHAR;
#ifndef w_char
# define w_char unsigned short
#endif /* w_char */
#endif /*JS */
#ifdef TAIWANESE
#ifndef CHINESE
#define CHINESE
#endif
#endif
#ifdef CHINESE
#define CONVERT_from_TOP
#define CONVERT_by_STROKE /* ɮ��(Bi Xing) */
#define CONVERT_with_SiSheng /* ����(Si Sheng) */
#define NO_FZK /* ��°��ϡ��ʤ� */
#define NO_KANA /* �Ҥ餬��(�ɤߤ�Ʊ������)�ϡ��ʤ� */
#endif
#ifdef KOREAN
#define CONVERT_from_TOP
#define NO_FZK
#endif
#ifdef luna
#ifdef uniosu
# ifndef SYSVR2
# define SYSVR2
# endif
#else /* if defined(MACH) || defined(uniosb) */
# ifndef BSD42
# define BSD42
# endif
# ifndef BSD43
# define BSD43
# endif
# if defined(luna68k)
# ifndef BSD44
# define BSD44
# endif
# endif /* defined(luna68k) */
#endif
#else /* defined(luna) */
#if defined(sun) && !defined(SVR4)
# ifndef BSD42
# define BSD42
# endif
#else /* sun else */
#if defined(DGUX) || defined(linux)
# ifndef SYSVR2
# define SYSVR2
# endif
#else
#if defined(SVR4) || defined(hpux) || defined(SYSV) || defined(USG)
# ifndef SYSVR2
# define SYSVR2
# endif
# ifdef sun
# define SOLARIS
# endif
#else
# ifndef BSD43
# define BSD43
# endif
# ifndef BSD42
# define BSD42
# endif
#endif /* defined(SVR4) || defined(hpux) || defined(SYSV) || defined(USG) */
#endif /* DGUX */
#endif /* sun */
#endif /* luna */
#if defined(SVR4) || defined(hpux) || defined(SYSV) || defined(USG)
#ifndef F_OK
#define F_OK 0
#endif
#ifndef R_OK
#define R_OK 4
#endif
#endif /* defined(SVR4) || defined(hpux) || defined(SYSV) || defined(USG) */
#define MAXBUNSETSU 80
#define LIMITBUNSETSU 400
#define MAXJIKOUHO 400
#define J_IUJIS 0
#define J_EUJIS 1
#define J_JIS 2
#define J_SJIS 3
#define C_IUGB 0
#define C_EUGB 1
#define C_ICNS11643 0
#define C_ECNS11643 1
#define C_BIG5 2
#define K_IUKSC 0
#define K_EUKSC 1
#define K_KSC 2
#ifndef True
#define True 1
#endif
#ifndef False
#define False 0
#endif
#define KANJI(x) ((x) & 0x80)
#define Ctrl(X) ((X) & 0x1f)
#define NEWLINE Ctrl('J')
#define CR Ctrl('M')
#define ESC '\033'
#ifdef luna
#ifdef uniosu
#define RUBOUT 0x08 /* BS */
#else
#define RUBOUT '\177'
#endif
#else
#define RUBOUT '\177'
#endif
#define SPACE ' '
#define JSPACE 0xa1a1
#ifdef KOREAN
#define BAR 0xA1aa /* �� */
#else
#define BAR 0xA1BC /* �� */
#endif
#define KUTEN_NUM 0xA1A3 /* �� */
#define TOUTEN_NUM 0xA1A2 /* �� */
#define S_NUM 0xA3B0 /* �� */
#define E_NUM 0xA3B9 /* �� */
#ifdef KOREAN
#define S_HIRA 0xAAA1 /* �� */
#define E_HIRA 0xAAF3 /* �� */
#define S_KATA 0xABA1 /* �� */
#define E_KATA 0xABF6 /* �� */
#else
#define S_HIRA 0xA4A1 /* �� */
#define E_HIRA 0xA4F3 /* �� */
#define S_KATA 0xA5A1 /* �� */
#define E_KATA 0xA5F6 /* �� */
#endif
#define S_HANKATA 0x00A1 /* �� */
#define E_HANKATA 0x00DF /* �� */
#ifdef KOREAN
#define S_JUMO 0xa4a1 /* �� */
#define E_JUMO 0xa4fe /* �� */
#define S_HANGUL 0xb0a1 /* �� */
#define E_HANGUL 0xc8fe /* �� */
#define S_HANJA 0xcaa1 /* ʡ */
#define E_HANJA 0xfdfe /* �� */
#define ishanja(x) ((unsigned)((x) - S_HANJA) <= (E_HANJA - S_HANJA))
#define ishangul(x) ((unsigned)((x) - S_HANGUL) <= (E_HANGUL - S_HANGUL))
#endif
#define HIRAP(X) ((X) >= S_HIRA && (X) <= E_HIRA)
#define KATAP(X) (((X) >= S_KATA && (X) <= E_KATA) || ((X) == BAR))
#define ASCIIP(X) ((X) < 0x7f)
#define KANJIP(X) (!(HIRAP(X) || KATAP(X) || ASCIIP(X)))
#define YOMICHAR(X) ((HIRAP(X)) || \
('0'<=(X)&&'9'>=(X)) || \
('A'<=(X)&&'Z'>=(X)) || \
('a'<=(X)&&'z'>=(X)) || \
(BAR == X) \
)
#define HIRA_OF(X) ((KATAP(X) && !(BAR == (X)))? ((X) & ~0x0100) : (X))
#ifdef CONVERT_by_STROKE
# define Q_MARK '?'
#endif /* CONVERT_by_STROKE */
#define LENGTHYOMI 256 /* jisho ni touroku suru yomi no nagasa */
#define LENGTHKANJI 256 /* jisho ni touroku suru kanji no nagasa */
#define LENGTHBUNSETSU 264 /* ʸ��κ���Ĺ */
#define LENGTHCONV 512 /* �Ѵ���ǽ����ʸ���� */
#define JISHOKOSUU 20
#define DIC_RDONLY 1 /* ����ɡ������Ǥ��롣 */
/* ʣ���Υե�����ˤޤ����ä��Ѥ����Ƥ���Хåե������������ */
#define EXPAND_PATH_LENGTH 256 /* expand_expr()���Ѥ���Хåե��Υ����� */
#define WNN_FILE_STRING "�ף��Υե�����"
#define WNN_FILE_STRING_LEN 16
#define F_STAMP_NUM 64
#define FILE_ALREADY_READ -2
#define FILE_NOT_READ -3
/* file ID */
#endif /* WNN_COMMONHD_H */
|