-
Notifications
You must be signed in to change notification settings - Fork 3
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
How can I read Japanese text? #4
Comments
The entire Japanese character set is quite large, so they came up with a custom encoding to optimize it. Check out the decompiled code here to get a general idea of how it works: The The All work related to the PSX version is being continued in the aforementioned link, pretty sure this repo is dead since I left. |
WOW! This is what I'm looking for :) Thank you for your help. |
There was a set of about 60 beta Japanese builds for the PSX sold at auction a few years ago. Don't forget to tell your friends that help is needed and ask if they know anything about the matter. Those discs could contain the source code or original assets, so I don't have to spend countless hours reversing this crap. We could have Kanji support sooner ;) |
My goal is Korean & Japanese language support in devilutionX and I wanted to read the PSX's Japanese text. Thank you :) |
Please see diasurgical/DevilutionX#66 for the latest status regarding translation and font handling in DevilutionX. |
Thankfully we have fonts for both Korean and Japanese! See here: https://d2mods.info/forum/viewtopic.php?t=55894 Diablo 2 has pixel mapped fonts ready for color transforming, in the same sizes as d1! So 42, 30, 24, and 16 pixels! Diablo 2 uses utf8 iirc rather than shift jis. |
Really? I didn't know what Diablo 2 used bitmap font. :( |
D1 uses TTF for some UI elements. |
Added font dumping tool. So just as I feared it looks like there isn't a way to directly translate the Japanese text files back. Since the special characters (0x8000+) just point to pixel data, one would either need a Japanese keyboard or have some sort of OCR that can remap them to standard SJIS/Unicode. Example: If the file has the character
|
Great. Translation of the PSX version is possible as well as translation of DevilutionX. |
If anyone is still reading this, I'm in need of a Japanese speaker for assistance. I have a file that has all Japanese glyphs not mapped printed out like above, but I have no idea what they mean and need them typed out so I can map the Shift-JIS code to the binary. Edit: there are about a total of 100 glyphs left. So it shouldn't take too long. |
I will see what I can do :) Show me your file and I'll take a look |
That's great @uwodb ! Below is a file with all the missing characters, printed out to look like pixels. I've already mapped the rest out with automation. Once we have these last things mapped we can convert the lore text back into text format. |
this results are not always accurate because it is not automated :( |
Wow, incredible work @uwodb! Very thankful you typed these out, as it would have taken me forever fiddling with OCR software and the like. As a result, all but two characters are mapped and everything seems to be translating back correctly! When you get the chance, could you have a second look at Please find below all of the game's text restored back into Shift-JIS!!! Note that the lore section is missing those two characters and may have some slight errors, the other two should be perfect. |
Wow! Thanks for noticing. |
I guess once translation support is complete the text can be used. I'm working on my own game engine, but progress is a bit slow. I'd anticipate you should have translation support soon in DevilutionX, though fonts are missing for asian languages. For now you can use the Diablo 2 versions. |
text.zip
Do you know what encoding it is used? I don't know
Can anyone help me with this? Thanks in advance :)
The text was updated successfully, but these errors were encountered: