add lang dispatch, korean hangul input

This commit is contained in:
2026-02-08 16:52:08 +09:00
parent 5653298bb1
commit d06cef6575
6 changed files with 376 additions and 11241 deletions

5
dat.h
View File

@@ -97,6 +97,9 @@ struct Lang
int lang;
char *mapname;
char *dictname;
Emit (*trans)(Im*, Rune);
void (*back)(Im*);
void (*dictq)(Im*);
Trie *map;
Hmap *dict;
};
@@ -113,7 +116,7 @@ struct Im
typedef struct Drawcmd Drawcmd;
struct Drawcmd
{
Str preedit;
Str pre;
Str kouho[Maxkouho];
int nkouho;
int sel;