Commit Graph
11 Commits
Author SHA1 Message Date
kichikuou 29a139c8a1 Use the standard integer types
This replaces BYTE, WORD and DWORD types with uint8_t, uint16_t and
uint32_t respectively.
2022-10-29 09:34:21 +09:00
kichikuou bc9fc924ed [experimental] Unicode mode
This adds "Unicode mode", in which scenarios can be written in any
language. xsys35c 1.2.0 and later can produce Unicode scenarios.

- nact->encoding represents the current scenario encoding. The initial
  value is SJIS, and ZU command changes it to UTF8.

- Use conversion macros that switch the behavior by the scenario
  encoding. For example, toUTF8() calls sjis2utf() if the scenario
  encoding is SJIS, and calls strdup() if it is UTF8.

- Fix various string processing functions to work with UTF8.
2020-08-09 21:24:56 +09:00
kichikuou b9e0d97156 Fix utf2sjis() for KATAKANA MIDDLE DOT character 2020-07-24 14:53:59 +09:00
kichikuou 73fab9b628 Remove unused functions in utfsjis.c 2020-07-23 13:53:25 +09:00
kichikuou 4602b1ebfc Fix compiler warnings 2019-09-15 18:42:16 +09:00
kichikuou 4751d7e88e Remove unused sjis2unicode() 2019-01-26 18:52:33 +09:00
kichikuou 748d487c8e Implement text input 2017-05-28 13:29:09 +09:00
kichikuou 0e4d1c764b Use s2utbl for sjis2utf 2017-04-02 17:59:40 +09:00
kichikuou 3fe4435523 Use s2utbl as a fallback of TextDecoder 2017-04-02 12:25:43 +09:00
kichikuou 245bc1212c Remove glib dependency 2017-02-18 18:16:32 +09:00
kichikuou e2fdaebb74 Rename eucsjis to utfsjis 2017-02-11 19:43:01 +09:00