engine: room for 128 candidates
32 hid the tail of common readings: きょう has 41 kanji, 구 has 352 hanja. 128 covers every kanji entry and the hanja dictionary now keeps that many per reading.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
void
|
||||
dictionary_candidates(struct ct *t)
|
||||
{
|
||||
char many[512], item[8];
|
||||
char many[8*(Maxkouho+1)], item[8];
|
||||
char *p;
|
||||
Str kouho[Maxkouho], key;
|
||||
Trie *saved;
|
||||
@@ -37,7 +37,8 @@ dictionary_candidates(struct ct *t)
|
||||
n = dictlookup(lang, &key, kouho, Maxkouho);
|
||||
if(CT_EQ_INT(t, Maxkouho, n)){
|
||||
checkstr(t, "first capped candidate", "c00", &kouho[0]);
|
||||
checkstr(t, "last capped candidate", "c31", &kouho[31]);
|
||||
snprint(item, sizeof item, "c%02d", Maxkouho-1);
|
||||
checkstr(t, "last capped candidate", item, &kouho[Maxkouho-1]);
|
||||
}
|
||||
CT_EQ_INT(t, 3, dictlookup(lang, &key, kouho, 3));
|
||||
trieclose(lang->dict);
|
||||
|
||||
Reference in New Issue
Block a user