Page 1 of 2

[help]About display Chinese

Posted: Wed Jul 19, 2006 6:56 pm
by sigmaxion
I love this engine, but it seems that it didn't support Chinese language...
Is there any solution?

Posted: Wed Jul 19, 2006 9:14 pm
by PyTom
It does support Chinese. You need to:

- save as utf-8
- copy east_asian.rpy from the extras/ directory to the game/ directory
- set style.default.font to a Chinese font.

and eventually you'll want to translate the menus... but Chinese should be supported.

The one exception is that renpy.input() will not work with non-western languages, as there's no support for input methods in the libraries Ren'Py uses.

If you need help getting it working, please let me know.

Posted: Wed Jul 19, 2006 9:43 pm
by Guest
thank you.
but excuse me for bothering again...
Where could I find the "style.default.font". In the "game\script.rpy" or somewhere else...

Posted: Wed Jul 19, 2006 9:54 pm
by PyTom
You need to add it yourself. Somewhere in your script, you want to add the lines:

Code: Select all

init:
    $ style.display.font = "chinese.ttf"
Where chinese.ttf is the name of a truetype font that supports Chinese characters. You'll also want to put that font into the game directory, so Ren'Py picks it up.

Posted: Wed Jul 19, 2006 10:30 pm
by sigmaxion
thank you!
It surely works!
Well, maybe I should introduce this excellent stuff to chinese doujin game maker right now...:)

Posted: Wed Jul 19, 2006 10:37 pm
by PyTom
I'm glad you were able to get it working. If there's anything to do to improve the Chinese support, please let me know. Right now, east_asian.rpy changes the line-breaking rules so they allow lines to wrap between any two Hanzi... is that the right rule.

Also, if you or anyone makes a game with Ren'Py, please let me know, so I can post in on the main Ren'Py page.

I can't find extra/east_asian.rpy

Posted: Mon Apr 23, 2007 12:36 pm
by evelynbaby
:(

I am sorry, but I don't know where east_asian.rpy or chinese.rpy is.

Could someone tell me where to find this file?

Thank you.

Posted: Mon Apr 23, 2007 12:45 pm
by PyTom
You can find the appropriate code at:

http://www.renpy.org/wiki/renpy/doc/coo ... d_Japanese

Posted: Fri Apr 27, 2007 4:02 am
by sigmaxion

Posted: Fri Apr 27, 2007 6:44 am
by Kakurady
Any free (in beer or speech) Chinese fonts?

That article told us to fetch the font from the Windows font dir.
(Obviously unlikely 2.B. legal.)

I use Ubuntu Linux and they have free zh-cn fonts... in postscript.

(Looks this may help)
(Hint ttf-arphic-ukai & ttf-arphic-uming are fonts w/ zh-cn & zh-tw glyphs)

Also... sigmaxion, are you the one who's creating the wiki pages? You may want to consider registering so others may track your edits..

Posted: Fri Apr 27, 2007 9:23 am
by bardsmanship
This is probably off-topic, but I just wanted to say, I'm really glad Chinese VN makers are getting to know about Ren'py! I'm bilingual in English and Chinese, so the prospect of playing Chinese VNs is mouth-watering ;)

Oh, and if anyone wants to translate their Chinese game to English, I'll be willing to do it for you!

Posted: Fri Apr 27, 2007 10:07 am
by DaFool
I'd like you guys also to keep tabs on the scene and announce any Chinese Ren'Py games released, so we can list it. It just seems unnatural that all the games so far have been English (or Czech translations). I'm also wondering how many Chinese gamemakers use Japanese engines such as Kirikiri.

Posted: Fri Apr 27, 2007 2:12 pm
by Enerccio
Kakurady wrote:Any free (in beer or speech) Chinese fonts?

That article told us to fetch the font from the Windows font dir.
(Obviously unlikely 2.B. legal.)

I use Ubuntu Linux and they have free zh-cn fonts... in postscript.

(Looks this may help)
(Hint ttf-arphic-ukai & ttf-arphic-uming are fonts w/ zh-cn & zh-tw glyphs)

Also... sigmaxion, are you the one who's creating the wiki pages? You may want to consider registering so others may track your edits..
I am not sure if it is free but this font contains both Chinese and Japanese
http://www.sendspace.com/file/3nuju3 (10mb simhei.ttf)

I am using it myself... just in case Japanese would be needed ^^

Posted: Fri Apr 27, 2007 10:05 pm
by sigmaxion
To Kakurady:

To be honest, that article is a little bit out of date. Nowadays, I recommend people to use the system fonts in the Windows OS. By doing this, you don't need to ship the font with your game, and I think it also can avoid the copyright issue. (Geez, I have no idea about Linux and Mac, because I've never used both of them...)

To bardsmanship

Thank you for your kindness. And, well, it's a shame that I haven't finished a complete Chinese game with Ren'Py. And I don't think there's someone doing better than me...
Anyway, if appropriate, I or others will not hesitate to ask for your help. ;)

To DaFool

I'm afraid that there are much more people using Kirikiri than Ren'Py in China...
Because a lot of people have difficulty in reading English, but they can geuss the meaning of a japanese sentence by a few of Kanji...

Posted: Sun Apr 29, 2007 11:10 am
by Kakurady
Enerccio wrote: I am not sure if it is free but this font contains both Chinese and Japanese
http://www.sendspace.com/file/3nuju3 (10mb simhei.ttf)

I am using it myself... just in case Japanese would be needed ^^
Simhei is definitely non-free. Since when you see Windows bundles something free?

And it's a Chinese font, so it may be unsuitable for Japanese.
For example some kanji (e.g. 猫 / mao1 / neko - this same glyph will display differently with Chinese fonts and Japanese fonts) may not display as intended. And Kana will look weird under low resolutions.