Ignore l g z i under oldstyle.
This commit is contained in:
parent
3c8482a613
commit
0d0b8df0a3
7 changed files with 56 additions and 19 deletions
4
misc.c
4
misc.c
|
@ -459,7 +459,7 @@ int get_motion_vocab_id(const char* word)
|
|||
{
|
||||
for (int i = 0; i < NMOTIONS; ++i) {
|
||||
for (int j = 0; j < motions[i].words.n; ++j) {
|
||||
if (strcasecmp(word, motions[i].words.strs[j]) == 0)
|
||||
if (strcasecmp(word, motions[i].words.strs[j]) == 0 && (strlen(word) > 1 || strchr(ignore, word[0]) == NULL || !oldstyle))
|
||||
return (i);
|
||||
}
|
||||
}
|
||||
|
@ -485,7 +485,7 @@ int get_action_vocab_id(const char* word)
|
|||
{
|
||||
for (int i = 0; i < NACTIONS; ++i) {
|
||||
for (int j = 0; j < actions[i].words.n; ++j) {
|
||||
if (strcasecmp(word, actions[i].words.strs[j]) == 0)
|
||||
if (strcasecmp(word, actions[i].words.strs[j]) == 0 && (strlen(word) > 1 || strchr(ignore, word[0]) == NULL || !oldstyle))
|
||||
return (i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue