blob: 2e4d4915022003617959890bc100d02004c58969 (
plain)
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
|
/*
* Funded by IPA未踏ソフトウェア創造事業 2001
* Copyright (C) 2001-2002 UGAWA Tomoharu
*/
#ifndef RKHELPER_H_INCLUDE
#define RKHELPER_H_INCLUDE
#define RKOPT_US 0
#define RKOPT_JP 1
enum {
RKMAP_ASCII, RKMAP_SHIFT_ASCII,
RKMAP_HIRAGANA, RKMAP_KATAKANA,
RKMAP_WASCII, RKMAP_HANKAKU_KANA,
NR_RKMAP
};
#define RK_OPTION_SYMBOL 0
#define RK_OPTION_TOGGLE 1
#define RK_OPTION_ERROR -1
struct rk_option;
/* rk_optionの初期化と変更 */
struct rk_option *anthy_input_create_rk_option(void);
int anthy_input_free_rk_option(struct rk_option *opt);
int anthy_input_do_edit_rk_option(struct rk_option* opt, int map,
const char* from, const char* to, const char *follow);
int anthy_input_do_edit_toggle_option(struct rk_option *opt, char toggle);
int anthy_input_do_clear_rk_option(struct rk_option *opt, int enable_default);
/* rk_mapの生成 */
struct rk_map* make_rkmap_ascii(struct rk_option* opt);
struct rk_map* make_rkmap_wascii(struct rk_option* opt);
struct rk_map* make_rkmap_shiftascii(struct rk_option* opt);
struct rk_map* make_rkmap_hiragana(struct rk_option* opt);
struct rk_map* make_rkmap_katakana(struct rk_option* opt);
struct rk_map* make_rkmap_hankaku_kana(struct rk_option* opt);
#endif /* RKHELPER_H_INCLUDE */
|