1 /*
2  * "streamable kanji code filter and converter"
3  * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
4  *
5  * LICENSE NOTICES
6  *
7  * This file is part of "streamable kanji code filter and converter",
8  * which is distributed under the terms of GNU Lesser General Public
9  * License (version 2) as published by the Free Software Foundation.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with "streamable kanji code filter and converter";
18  * if not, write to the Free Software Foundation, Inc., 59 Temple Place,
19  * Suite 330, Boston, MA  02111-1307  USA
20  *
21  * The author of this file: Moriyoshi Koizumi <koizumi@gree.co.jp>
22  *
23  */
24 
25 #ifndef MBFILTER_TL_KANA_JISX0201_JISX0208_H
26 #define MBFILTER_TL_KANA_JISX0201_JISX0208_H
27 
28 #include "mbfl_convert.h"
29 
30 /* "Zen" is 全, or "full"; "Han" is 半, or "half"
31  * This refers to "fullwidth" or "halfwidth" variants of characters used for writing Japanese */
32 #define MBFL_FILT_TL_HAN2ZEN_ALL       0x00000001
33 #define MBFL_FILT_TL_HAN2ZEN_ALPHA     0x00000002
34 #define MBFL_FILT_TL_HAN2ZEN_NUMERIC   0x00000004
35 #define MBFL_FILT_TL_HAN2ZEN_SPACE     0x00000008
36 #define MBFL_FILT_TL_ZEN2HAN_ALL       0x00000010
37 #define MBFL_FILT_TL_ZEN2HAN_ALPHA     0x00000020
38 #define MBFL_FILT_TL_ZEN2HAN_NUMERIC   0x00000040
39 #define MBFL_FILT_TL_ZEN2HAN_SPACE     0x00000080
40 #define MBFL_FILT_TL_HAN2ZEN_KATAKANA  0x00000100
41 #define MBFL_FILT_TL_HAN2ZEN_HIRAGANA  0x00000200
42 #define MBFL_FILT_TL_HAN2ZEN_GLUE      0x00000800
43 #define MBFL_FILT_TL_ZEN2HAN_KATAKANA  0x00001000
44 #define MBFL_FILT_TL_ZEN2HAN_HIRAGANA  0x00002000
45 #define MBFL_FILT_TL_ZEN2HAN_HIRA2KANA 0x00010000
46 #define MBFL_FILT_TL_ZEN2HAN_KANA2HIRA 0x00020000
47 #define MBFL_FILT_TL_HAN2ZEN_COMPAT1   0x00100000
48 #define MBFL_FILT_TL_ZEN2HAN_COMPAT1   0x00200000
49 #define MBFL_FILT_TL_HAN2ZEN_COMPAT2   0x00400000
50 #define MBFL_FILT_TL_ZEN2HAN_COMPAT2   0x00800000
51 #define MBFL_FILT_TL_HAN2ZEN_MASK ( \
52 	MBFL_FILT_TL_HAN2ZEN_ALL |\
53 	MBFL_FILT_TL_HAN2ZEN_ALPHA |\
54 	MBFL_FILT_TL_HAN2ZEN_NUMERIC |\
55 	MBFL_FILT_TL_HAN2ZEN_SPACE |\
56 	MBFL_FILT_TL_HAN2ZEN_KATAKANA |\
57 	MBFL_FILT_TL_HAN2ZEN_HIRAGANA |\
58 	MBFL_FILT_TL_HAN2ZEN_GLUE |\
59 	MBFL_FILT_TL_HAN2ZEN_COMPAT1 |\
60 	MBFL_FILT_TL_HAN2ZEN_COMPAT2)
61 #define MBFL_FILT_TL_ZEN2HAN_MASK ( \
62 	MBFL_FILT_TL_ZEN2HAN_ALL | \
63 	MBFL_FILT_TL_ZEN2HAN_ALPHA | \
64 	MBFL_FILT_TL_ZEN2HAN_NUMERIC | \
65 	MBFL_FILT_TL_ZEN2HAN_SPACE | \
66 	MBFL_FILT_TL_ZEN2HAN_KATAKANA | \
67 	MBFL_FILT_TL_ZEN2HAN_HIRAGANA | \
68 	MBFL_FILT_TL_ZEN2HAN_HIRA2KANA | \
69 	MBFL_FILT_TL_ZEN2HAN_KANA2HIRA | \
70 	MBFL_FILT_TL_ZEN2HAN_COMPAT1 | \
71 	MBFL_FILT_TL_ZEN2HAN_COMPAT2)
72 
73 
74 typedef struct _mbfl_filt_tl_jisx0201_jisx0208_param {
75 	mbfl_convert_filter *next_filter;
76 	int mode;
77 } mbfl_filt_tl_jisx0201_jisx0208_param;
78 
79 extern const struct mbfl_convert_vtbl vtbl_tl_jisx0201_jisx0208;
80 
81 #endif /* MBFILTER_TL_KANA_JISX0201_JISX0208_H */
82