Debian Codegraph @

src/default_tables.h

raw
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * Copyright (C) 2004-2005 Takuro Ashie
4 * Copyright (C) 2012 CSSlayer
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program 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 General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20
21 #ifndef __FCITX_ANTHY_DEFAULT_TABLES_H__
22 #define __FCITX_ANTHY_DEFAULT_TABLES_H__
23
24 typedef struct _ConvRule
25 {
26 const char *string;
27 const char *result;
28 const char *cont;
29 } ConvRule;
30
31 typedef struct _HiraganaKatakanaRule
32 {
33 const char *hiragana;
34 const char *katakana;
35 const char *half_katakana;
36 } HiraganaKatakanaRule;
37
38 typedef struct _WideRule
39 {
40 const char *code;
41 const char *wide;
42 } WideRule;
43
44 typedef struct _KeyCodeToCharRule
45 {
46 unsigned int code;
47 const char *kana;
48 } KeyCodeToCharRule;
49
50 typedef struct _VoicedConsonantRule
51 {
52 const char *string;
53 const char *voiced;
54 const char *half_voiced;
55 } VoicedConsonantRule;
56
57 typedef struct _NicolaRule
58 {
59 const char *key;
60 const char *single;
61 const char *left_shift;
62 const char *right_shift;
63 } NicolaRule;
64
65 // fundamental table
66 extern ConvRule fcitx_anthy_romaji_typing_rule[];
67 extern ConvRule fcitx_anthy_romaji_double_consonant_rule[];
68 extern ConvRule fcitx_anthy_kana_typing_rule[];
69 extern ConvRule fcitx_anthy_kana_voiced_consonant_rule[];
70
71 // symbol & number
72 extern ConvRule fcitx_anthy_half_symbol_rule[];
73 extern ConvRule fcitx_anthy_wide_symbol_rule[];
74 extern ConvRule fcitx_anthy_half_number_rule[];
75 extern ConvRule fcitx_anthy_wide_number_rule[];
76
77 // period table
78 extern ConvRule fcitx_anthy_romaji_ja_period_rule[];
79 extern ConvRule fcitx_anthy_romaji_wide_period_rule[];
80 extern ConvRule fcitx_anthy_romaji_half_period_rule[];
81
82 extern ConvRule fcitx_anthy_kana_ja_period_rule[];
83 extern ConvRule fcitx_anthy_kana_wide_period_rule[];
84 extern ConvRule fcitx_anthy_kana_half_period_rule[];
85
86 // comma table
87 extern ConvRule fcitx_anthy_romaji_ja_comma_rule[];
88 extern ConvRule fcitx_anthy_romaji_wide_comma_rule[];
89 extern ConvRule fcitx_anthy_romaji_half_comma_rule[];
90
91 extern ConvRule fcitx_anthy_kana_ja_comma_rule[];
92 extern ConvRule fcitx_anthy_kana_wide_comma_rule[];
93 extern ConvRule fcitx_anthy_kana_half_comma_rule[];
94
95 // bracket table
96 extern ConvRule fcitx_anthy_romaji_ja_bracket_rule[];
97 extern ConvRule fcitx_anthy_romaji_wide_bracket_rule[];
98
99 extern ConvRule fcitx_anthy_kana_ja_bracket_rule[];
100 extern ConvRule fcitx_anthy_kana_wide_bracket_rule[];
101
102 // slash table
103 extern ConvRule fcitx_anthy_romaji_ja_slash_rule[];
104 extern ConvRule fcitx_anthy_romaji_wide_slash_rule[];
105
106 extern ConvRule fcitx_anthy_kana_ja_slash_rule[];
107 extern ConvRule fcitx_anthy_kana_wide_slash_rule[];
108
109 // misc
110 extern HiraganaKatakanaRule fcitx_anthy_hiragana_katakana_table[];
111 extern WideRule fcitx_anthy_wide_table[];
112 extern VoicedConsonantRule fcitx_anthy_voiced_consonant_table[];
113
114 // key code
115 extern KeyCodeToCharRule fcitx_anthy_keypad_table[];
116 extern KeyCodeToCharRule fcitx_anthy_kana_table[];
117
118 // nicola
119 extern NicolaRule fcitx_anthy_nicola_table[];
120
121 #endif /* __FCITX_ANTHY_DEFAULT_TABLES_H__ */