Page 1 of 1

Other language fonts

Posted: Fri Sep 14, 2012 12:37 am
by ZinniaAuRevoir
I'm sorry if I'm a bit late. I'm in a middle of 'languages practice' project and when I'm about to write Arabic in Ren'py, it turns out to be separated fonts, not forming a word. Well, this is the one I want;
Image

When I type into the script, it turns out to be like this:
Image

I want to polish my writing skills in Arabic because I took a course require this language. Since it's boring to read just plain words, I want to make it as a kinetic novel so I can share it with others while improving my skill. So, what comes to my mind is, does Ren'Py can support this language or is there something I can do that makes this language can be used?

Re: Other language fonts

Posted: Fri Sep 14, 2012 1:03 am
by PyTom
Try:

Code: Select all

init python:
    config.rtl = True
That will turn on RTL mode, which also handles ligaturization. You may also want to adjust xalign and text_align on various text-like things to right-align them.

Re: Other language fonts

Posted: Sat Sep 15, 2012 10:22 am
by ZinniaAuRevoir
Gee, thanks, Py Tom! But there's one problem; It's hard to type in the script. If I type 'abc', it became 'cba'. No problem when I play the game, but it's hard to type in script with this kind of problem.

Re: Other language fonts

Posted: Sat Sep 15, 2012 10:32 am
by PyTom
I think you may need to look for a text editor that support Arabic better. Try editra, jedit, and then maybe look further afield? The combination of RTL and ligaturization makes Arabic tough to support, so not a lot of tools do it.

Although it's a terrible way to work, you might be able to write the text in a word processor, and then copy and paste it in to editra or jedit.

سلام‎!

Re: Other language fonts

Posted: Mon Sep 17, 2012 9:58 am
by ZinniaAuRevoir
Gee, thanks a ton! :D