Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty exporting/importing text using non-Latin alphabets #28

Open
dwatteau opened this issue Apr 5, 2021 · 1 comment
Open

Difficulty exporting/importing text using non-Latin alphabets #28

dwatteau opened this issue Apr 5, 2021 · 1 comment
Assignees

Comments

@dwatteau
Copy link
Owner

dwatteau commented Apr 5, 2021

See for example this report:
https://zenhax.com/viewtopic.php?t=14391&p=62976

Using ScummTR with non-Latin alphabets is quite inconvenient.

For example, to extract the text from a Japanese SCUMM game:

$ scummtr -b -g loomtowns -of jpn-tmp-bin.txt
$ LC_ALL=C tr '\000' '\n' jpn-tmp-bin.txt | iconv -c -f SHIFT-JIS -t UTF-8 > jpn.txt

But the binary output is not convenient, and we even need to call iconv with -c (probably because of the internal SCUMM escape sequences such as \255\001 etc.).

Using scummtr -H (for hexadecimal output) is maybe a bit better, if you then use a script which can interpret the hexadecimal SHIT-JIS codes. Still, it's not very convenient.

Possible solutions (from the easiest ones to the ones requiring more effort):

  • document an acceptable way of dealing with non-Latin alphabets, as is;
  • find a way to output a raw SHIFT-IJS files right from ScummTR while keeping internal SCUMM escape sequences (i.e. a mix between -b and the pseudo ASCII-US table for v1/v2 games);
  • add a flag which processes everything as UTF-8.
@dwatteau dwatteau self-assigned this Apr 5, 2021
@dwatteau
Copy link
Owner Author

dwatteau commented Jun 5, 2021

The second solution has been implemented in PR #33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant