1: #ifndef _dic_ent_h_included_
2: #define _dic_ent_h_included_
3:
4: #include <anthy/wtype.h>
5: #include <anthy/dic.h>
6:
7:
8: #define ST_NONE 0
9:
10: #define ST_REVERSE 8
11:
12:
13: struct dic_ent {
14: wtype_t type;
15: int freq;
16: int feature;
17: const char *wt_name;
18: int is_compound;
19: xstr str;
20:
21:
22: int order;
23: };
24:
25:
26:
27:
28: struct seq_ent {
29: xstr str;
30:
31: int seq_type;
32:
33:
34: int nr_dic_ents;
35: struct dic_ent **dic_ents;
36:
37: int nr_compound_ents;
38:
39:
40: struct mem_dic *md;
41:
42: struct seq_ent *next;
43: };
44:
45:
46: void anthy_init_ext_ent(void);
47:
48: int anthy_get_nr_dic_ents_of_ext_ent(struct seq_ent *se,xstr *xs);
49: int anthy_get_nth_dic_ent_str_of_ext_ent(seq_ent_t ,xstr *,int ,xstr *);
50: int anthy_get_nth_dic_ent_wtype_of_ext_ent(xstr *,int ,wtype_t *);
51: int anthy_get_nth_dic_ent_freq_of_ext_ent(struct seq_ent *se, int nth);
52: int anthy_get_ext_seq_ent_wtype(struct seq_ent *, wtype_t );
53: seq_ent_t anthy_get_ext_seq_ent_from_xstr(xstr *x, int is_reverse);
54: int anthy_get_ext_seq_ent_pos(struct seq_ent *, int);
55: int anthy_get_ext_seq_ent_indep(struct seq_ent *);
56: int anthy_get_ext_seq_ent_ct(struct seq_ent *, int, int);
57: int anthy_get_ext_seq_ent_wtype(struct seq_ent *se, wtype_t w);
58:
59: #endif