Tizen 2.1 base
[framework/uifw/ise-engine-anthy.git] / src / scim_anthy_default_tables.h
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  *  Copyright (C) 2004-2005 Takuro Ashie
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __SCIM_ANTHY_DEFAULT_TABLES_H__
21 #define __SCIM_ANTHY_DEFAULT_TABLES_H__
22
23 typedef struct _ConvRule
24 {
25     const char *string;
26     const char *result;
27     const char *cont;
28 } ConvRule;
29
30 typedef struct _HiraganaKatakanaRule
31 {
32     const char *hiragana;
33     const char *katakana;
34     const char *half_katakana;
35 } HiraganaKatakanaRule;
36
37 typedef struct _WideRule
38 {
39     const char *code;
40     const char *wide;
41 } WideRule;
42
43 typedef struct _KeyCodeToCharRule
44 {
45     unsigned int  code;
46     const char   *kana;
47 } KeyCodeToCharRule;
48
49 typedef struct _VoicedConsonantRule
50 {
51     const char *string;
52     const char *voiced;
53     const char *half_voiced;
54 } VoicedConsonantRule;
55
56 typedef struct _NicolaRule
57 {
58     const char *key;
59     const char *single;
60     const char *left_shift;
61     const char *right_shift;
62 } NicolaRule;
63
64 // fundamental table
65 extern ConvRule scim_anthy_romaji_typing_rule[];
66 extern ConvRule scim_anthy_romaji_double_consonant_rule[];
67 extern ConvRule scim_anthy_kana_typing_rule[];
68 extern ConvRule scim_anthy_kana_voiced_consonant_rule[];
69
70 // symbol & number
71 extern ConvRule scim_anthy_half_symbol_rule[];
72 extern ConvRule scim_anthy_wide_symbol_rule[];
73 extern ConvRule scim_anthy_half_number_rule[];
74 extern ConvRule scim_anthy_wide_number_rule[];
75
76 // period table
77 extern ConvRule scim_anthy_romaji_ja_period_rule[];
78 extern ConvRule scim_anthy_romaji_wide_period_rule[];
79 extern ConvRule scim_anthy_romaji_half_period_rule[];
80
81 extern ConvRule scim_anthy_kana_ja_period_rule[];
82 extern ConvRule scim_anthy_kana_wide_period_rule[];
83 extern ConvRule scim_anthy_kana_half_period_rule[];
84
85 // comma table
86 extern ConvRule scim_anthy_romaji_ja_comma_rule[];
87 extern ConvRule scim_anthy_romaji_wide_comma_rule[];
88 extern ConvRule scim_anthy_romaji_half_comma_rule[];
89
90 extern ConvRule scim_anthy_kana_ja_comma_rule[];
91 extern ConvRule scim_anthy_kana_wide_comma_rule[];
92 extern ConvRule scim_anthy_kana_half_comma_rule[];
93
94 // bracket table
95 extern ConvRule scim_anthy_romaji_ja_bracket_rule[];
96 extern ConvRule scim_anthy_romaji_wide_bracket_rule[];
97
98 extern ConvRule scim_anthy_kana_ja_bracket_rule[];
99 extern ConvRule scim_anthy_kana_wide_bracket_rule[];
100
101 // slash table
102 extern ConvRule scim_anthy_romaji_ja_slash_rule[];
103 extern ConvRule scim_anthy_romaji_wide_slash_rule[];
104
105 extern ConvRule scim_anthy_kana_ja_slash_rule[];
106 extern ConvRule scim_anthy_kana_wide_slash_rule[];
107
108 // misc
109 extern HiraganaKatakanaRule scim_anthy_hiragana_katakana_table[];
110 extern WideRule             scim_anthy_wide_table[];
111 extern VoicedConsonantRule  scim_anthy_voiced_consonant_table[];
112
113 // key code
114 extern KeyCodeToCharRule    scim_anthy_keypad_table[];
115 extern KeyCodeToCharRule    scim_anthy_kana_table[];
116
117 // nicola
118 extern NicolaRule           scim_anthy_nicola_table[];
119
120 #endif /* __SCIM_ANTHY_DEFAULT_TABLES_H__ */