fix: preserve complete Japanese readings
This commit is contained in:
@@ -24,8 +24,18 @@ checkstr(struct ct *t, char *where, char *want, Str *got)
|
||||
Str
|
||||
shownpre(Im *state)
|
||||
{
|
||||
Str shown;
|
||||
Str mapped, shown;
|
||||
|
||||
if(state->l->lang == LangJP || state->l->lang == LangJPK){
|
||||
shown = state->pre;
|
||||
if(state->raw.n == 0)
|
||||
return shown;
|
||||
if(mapget(state->l->map, &state->raw, &mapped))
|
||||
sappend(&shown, &mapped);
|
||||
else
|
||||
sappend(&shown, &state->raw);
|
||||
return shown;
|
||||
}
|
||||
if(state->l->map != nil && mapget(state->l->map, &state->pre, &shown))
|
||||
return shown;
|
||||
return state->pre;
|
||||
|
||||
Reference in New Issue
Block a user