decode SMC table

This commit is contained in:
wish
2024-07-16 00:57:59 +10:00
parent 0caaeac3af
commit 632aa081b9
2 changed files with 139 additions and 4 deletions

View File

@@ -34,7 +34,11 @@ func ToNGWord(x string) []uint16 {
for _, r := range []rune(x) {
if r > 0xFF {
t := UTF8ToSJIS(string(r))
if len(t) > 1 {
w = append(w, uint16(t[1])<<8|uint16(t[0]))
} else {
w = append(w, uint16(t[0]))
}
} else {
w = append(w, uint16(r))
}

File diff suppressed because one or more lines are too long