-
Notifications
You must be signed in to change notification settings - Fork 34
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
Arabic/Persian language support #349
Comments
Persian Font |
Does a translation already exist for the PC version somewhere? |
No, but I can do the translation. |
The way I add translations is by taking a translation for the (freeware) PC version and converting it. There are modding tools like Booster's Lab that can be used to edit the script files which contain the game's text. |
I don't know anything about Sega games, please tell me what should I do first? |
Look in |
I am interested in contributing an Arabic translation. It uses the same basic alphabet but has some differences with the extended characters needed for Persian and Urdu. Since it's an 8x8 font, the only changes left will be changing the text to appear right to left. So, changing the coordinates for the text cursor so that the first character appears from the right, substracting from it each character, and so on. "Reshaping" (the thing with Arabic where a given letter has 4 contextual variant glyphs depending on some rules - its position within a word "initial/medial/final/isolated", some letters that reset position of anything after them to "initial/isolated", and Persian which has ZWJ/ZWNJ non printable characters that force certain positions) is something I would preprocess the text before providing to the project. It could be done in-game (game has a look up table each letter depending on its position in the word) but it could be too complicated. So I intend to prepare a text file that already has the correct shapes for each character calculated beforehand. I would not bother with an ingame solution, the right to left thing is much more important. |
Ooh, I didn't realize Persian is right to left like Arabic. Shouldn't be hard for me to figure that out for the message window. For reshaping, if there is some sample code I can stick in tscomp to pick it up and encode the text maybe that would be more convenient? (Then neither you nor the game will have to do that work) |
Maybe this project. (Arabic and Persian mainly, Urdu isn't completely supported) I'll need to provide the Unicode mappings for this image, as well. I "cheated" and made it so that contextual alternate glyphs that look too similar are the same glyph. Most of the time, it means that instead of using 4 glyphs, I only used 2 for most characters. This was in order to make it so that the font isn't very big, but at a lower level detail this will be hardly noticeable. Range FE80-FEFF / Standard Arabic (B-Form Glyphs)
Range FB50-FBFF / Extended Arabic-Persian (A-Form Glyphs)
Range 0600-06FF / Basic Arabic (Letters)
The arrays above represent the Unicode code points from the raw text data after it's converted using that reshaping script. The content of each cell is a value from 00 to 7F from that Arabic font, assuming its very first character is 00. "--" means the character is undefined. I hope this was of some help. |
Interstated iam beginner |
Hi, I want to add the Persian language to this game.
Please help me.
The text was updated successfully, but these errors were encountered: