1 #ifndef _mkdic_h_included_
2 #define _mkdic_h_included_
5 #include <anthy/xstr.h>
19 /** ¼½ñ¥Õ¥¡¥¤¥ëÃæ¤Î¥ª¥Õ¥»¥Ã¥È */
22 struct yomi_entry* ye;
29 /* ÆɤߤÎʸ»úÎó(¼½ñ¥Õ¥¡¥¤¥ëÆâ¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹) */
31 /* ¼½ñ¥Õ¥¡¥¤¥ëÃæ¤Î¥Ú¡¼¥¸Ãæ¤Î¥ª¥Õ¥»¥Ã¥È */
35 struct word_entry *entries;
37 struct yomi_entry *next;
38 struct yomi_entry *hash_next;
41 #define YOMI_HASH (16384 * 16)
44 struct yomi_entry_list {
46 struct yomi_entry *head;
47 /* ¼½ñ¥Õ¥¡¥¤¥ëÃæ¤Î¸«½Ð¤·¤Î¿ô */
49 /* ¸«½Ð¤·¤ÎÃæ¤Çñ¸ì¤ò»ý¤Ä¤â¤Î¤Î¿ô */
54 struct yomi_entry *hash[YOMI_HASH];
55 struct yomi_entry **ye_array;
61 #define ADJUST_FREQ_UP 1
62 #define ADJUST_FREQ_DOWN 2
63 #define ADJUST_FREQ_KILL 3
65 /* ÉÑÅÙÊäÀµÍÑ¥³¥Þ¥ó¥É */
66 struct adjust_command {
71 struct adjust_command *next;
75 struct yomi_entry *find_yomi_entry(struct yomi_entry_list *yl,
76 xstr *index, int create);
78 /* ¼½ñ½ñ¤½Ð¤·ÍѤÎÊä½õ */
79 void write_nl(FILE *fp, int i);
82 const char *get_wt_name(const char *name);
86 struct uc_dict *create_uc_dict(void);
87 void read_uc_file(struct uc_dict *ud, const char *fn);
88 void make_ucdict(FILE *out, struct uc_dict *uc);
92 void output_word_dict(struct yomi_entry_list *yl);
95 void calc_freq(struct yomi_entry_list *yl);