Right-to-Left Text?

Hi all,

I'm currently trying to see if it's possible to translate games made in RPG Maker XP into Right-to-Left languages.
I've had luck using DreaMaker to extract all of the text into one file (so I don't have to go back to each event to change the text directly in the editor).
Right-to-Left language (such as Arabic, Hebrew, etc.) apparently get displayed in reverse, so each line of text has to be reversed for it to appear properly in-game.
This can be done fairly easily for each line using a simple text reverse website or program.

However, the game always displays characters in order from left to right. This means, in RTL languages, the words at the end of the sentence appear before the ones at the start of it.
It's a minor annoyance, but I was wondering if there was a way to change the order in which characters are displayed?

Also, the text is aligned to the left instead of the right side of the text box. How would I go about changing that?

Thanks!
I've moved this thread to RGSS Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


You would need to modify the scripts that draw all the text to make them read the characters and then print them from right to left.


Also search, because this feature has been requested before so it may already be available.
Hi Shaz,

Thanks for moving the thread, I wasn't sure whether my issue was script-related or if it had something to do with program settings or something along those lines.

I've already searched, but couldn't find anything for RGSS, only RGSS2 and RGSS3. I'm also a pretty big newb when it comes to scripting 🙁 . Would you mind pointing me in the right direction? 
No, I've never had a need to look for anything like that.


If you can provide links to the ones for RGSS2 and RGSS3, someone may be able to do a port for you to RGSS. XP scripting is a lot more cumbersome, since the class methods are not organized so well. It makes incompatibilities between multiple scripts much more likely.


What other scripts are you using?

Original thread: https://forums.rpgmakerweb.com/threads/right-to-left-text.37151/