How can I make Japanese Characters work in Game (SOLVED)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Rafa
Newbie
Posts: 18
Joined: Sun Jul 19, 2009 3:36 pm
Projects: Un Ichi
Location: Maracaibo, Venezuela
Contact:

How can I make Japanese Characters work in Game (SOLVED)

#1 Post by Rafa »

In the Editor I write the Japenese correctly,

But when Launching the Game to verify, they don't show correctly.

What do I have to do to correct this problem?


Thank you very much for your consideration on this problem.
Attachments
Problem when Japanese Character appear in the Game
Problem when Japanese Character appear in the Game
Last edited by Rafa on Thu Jul 30, 2009 5:53 pm, edited 1 time in total.

Ivlivs
Veteran
Posts: 267
Joined: Sun Feb 25, 2007 1:00 pm
Contact:

Re: How can I make Japanese Characters work in Game

#2 Post by Ivlivs »

That's an easy problem to solve.

Make sure you have a free font that supports Japanese. For more information on supporting Japanese in your game, see:
http://www.renpy.org/wiki/renpy/doc/coo ... d_Japanese

Also, when naming a character in Japanese, put a "u" before the quoted part; write the name as u"いもうと" rather than "いもうと".

Here is an example of what I am talking about:
example1.JPG
Hope this helps.
Jitteh Dawn --- A VN by Ivlivs

Rafa
Newbie
Posts: 18
Joined: Sun Jul 19, 2009 3:36 pm
Projects: Un Ichi
Location: Maracaibo, Venezuela
Contact:

Re: How can I make Japanese Characters work in Game

#3 Post by Rafa »

Thank you very much for the information!

Why is the reason for the u"いもうと" rather than "いもうと" ? technically speaking.

what is renpy.input() ? because it says "(The one issue being that renpy.input() is not supported for non-English languages, and especially not for ones that require input method support.)"

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How can I make Japanese Characters work in Game

#4 Post by PyTom »

The u introduces a unicode string, which is how we represent Japanese. (Or really, any non-English text.)

[func]renpy.input[func] lets you prompt the user to enter a string, like his name. Since Japanese text input is really hard, we don't support it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Rafa
Newbie
Posts: 18
Joined: Sun Jul 19, 2009 3:36 pm
Projects: Un Ichi
Location: Maracaibo, Venezuela
Contact:

Re: How can I make Japanese Characters work in Game

#5 Post by Rafa »

Thank you very much Pytom

Is there a way to make the game has 2 start games in the Main Menu to start in 2 different labels?

Like Start Game Male and Start Game Female. to start in two different starts, without making 2 different games?

I have an idea for a funny little game if started different.

Thank you again for your consideration on helping.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How can I make Japanese Characters work in Game

#6 Post by PyTom »

Yes, this can be done using config.main_menu
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

017Bluefield
Regular
Posts: 93
Joined: Mon Dec 30, 2013 1:55 am
Projects: Project Bluefield - Origins
Organization: Autumn Rain
Deviantart: playerzero17
itch: autumn-rain
Contact:

Re: How can I make Japanese Characters work in Game (SOLVED)

#7 Post by 017Bluefield »

So, how much of this applies to Ren'Py 7.00? I've gotten the same issue, but I'm not sure how to proceed with it...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot]