File: rkhelper.h

package info (click to toggle)
anthy 9100e-3.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 16,708 kB
  • ctags: 3,122
  • sloc: ansic: 26,059; sh: 13,804; lisp: 1,257; makefile: 331
file content (41 lines) | stat: -rw-r--r-- 1,249 bytes parent folder | download | duplicates (7)
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 */