Skip to content
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

Unicode support please. #1644

Closed
Angluca opened this issue Apr 7, 2015 · 46 comments
Closed

Unicode support please. #1644

Angluca opened this issue Apr 7, 2015 · 46 comments
Labels

Comments

@Angluca
Copy link

Angluca commented Apr 7, 2015

I use it on mac.

Solutions
http://www.michaelsydenham.com/getting-godot-engine-to-display-japanese/
It's can work, But can't use IME input unicode to it.

@reduz
Copy link
Member

reduz commented Apr 8, 2015

what specific input language are you using?

@niu2x
Copy link

niu2x commented Apr 8, 2015

I want to use chinese, how to do?

@reduz
Copy link
Member

reduz commented Apr 8, 2015

i'm not really sure, is the IM for chinese the same as for korean and japanese?

@Angluca
Copy link
Author

Angluca commented Apr 8, 2015

I input Chinese, Yes it the same as for korean and japanese.

@michaeldesu
Copy link

I've just tried entering Japanese into a label text field (inspector value), but the chars appear as English instead of direct Japanese (as is usual on Mac, irrespective of font setting). I could try it on Windows if you like. Is there anything specially needed to enter & use Asian chars?

@michaeldesu
Copy link

Well I can't enter Japanese into a label on windows either, and I imported a japanese fnt (with unicode set) as well, but no good. I guess the editor (fields in the inspector) is not supporting unicode, however from this post (http://www.godotengine.org/forum/viewtopic.php?f=11&t=86&p=294&hilit=japanese#p1203) it seems to have once supported it? This issue has also been raised here: #29
I was pleased to read in the docs that font culling seems to have been considered, which is a relief since the Japanese font I made is 5Mb!

@michaeldesu
Copy link

I have an update - I am new so I'm not so familiar with unicode status of GD, but after some research on the forum, I think it the editor seems to work with CJK. I just tried an experiment after reading this forum post (http://www.godotengine.org/forum/viewtopic.php?f=11&t=725&p=3310&hilit=unicode#p3310) and I reported a result here (#29) after stumbling upon that issue. I wonder if Angluca can try again, by setting up an editor font (you'll have to import one, being careful to set unicode as the font type when importing). I'd be glad to hear a confirmation from reduz, but it seems the editor does indeed support unicode (and IME text entry) provided that initially, a unicode font is setup as an editor font.

@niu2x
Copy link

niu2x commented Apr 9, 2015

I import a font, set global font, and editor font...
Result is that,, if I call set_text() to set a label's text value, it can display chinese character..
But it can't display in editor,,
Do you mind make a description detailed?

@niu2x
Copy link

niu2x commented Apr 9, 2015

I see it

@niu2x
Copy link

niu2x commented Apr 9, 2015

我沒有多看資料,打扰了

@OlexiyKravchuk
Copy link

I also have a problem to blank lines when I use my native language, the editor does not have any place that could accept what I write something other than the digits when I'm in natural language :(

@michaeldesu
Copy link

@niu2x: is your problem solved?
@OlexiyKravchuk : what is your language? BTW I wrote a mistake before. I said "provided that initially, a unicode font is setup as an editor font". I should have said "global font". Did you setup an appropriate unicode font as a global font? When I get some time, I will write up a summary instruction & put onto the forum (in the sticky beginners post)

@niu2x
Copy link

niu2x commented Apr 9, 2015

I CAN not solve it.
Except in runtime,the engine can't show my
native character in gui just like your screen snap。thank ,I desire your summary。
thank you

@michaeldesu
Copy link

@niu2x I wrote a summary on my blog. Hope it helps.

@niu2x
Copy link

niu2x commented Apr 10, 2015

maybe your IME is special. Your IME have a special top-left corner to cache your native character.
But when I touch a key,--- even if I have select my native IME,---- the char releated to the key I touched enter the "text widget" right away. I can't input a chinese character.
Is there something I missed?

@michaeldesu
Copy link

@niu2x I used the standard IME in Microsoft windows. What operating system are you using? I guess I can try setting up a Chinese IME & font and try on PC or Mac. Which Chinese system are you using (simple or traditional or other)?

@niu2x
Copy link

niu2x commented Apr 10, 2015

My operating system is fedora20.
I use the IME distributed with the system.
Simple Chinese.
I'm going to have a try in other system.
Thank you

@niu2x
Copy link

niu2x commented Apr 10, 2015

yeah, I Know.
It take effect in my xp system.
It have to install a special IME to input.

@michaeldesu
Copy link

I just tried simplified Chinese using the method I described, and it seems to work (on Windows 8.1 using the standard Microsoft Pinyin IME)
image

@michaeldesu
Copy link

@niu2x The other thing you can try on fedora is install the fonts as I mentioned, but input the text into another text editor (where the IME should be ok in that program) and then copy and paste the text from the text editor into the text value in Godot. Try as an experiment to see if this workaround can work.

@niu2x
Copy link

niu2x commented Apr 10, 2015

Ok,i will have a try。
open source project is always difficult to work in a special enviroment。
thanks for your time。
good lunch

@Angluca
Copy link
Author

Angluca commented Apr 10, 2015

Can't input Chinese on mac, I think the same on linux.

@michaeldesu
Copy link

@Angluca I'll try Japanese a bit later on my Mac & let you know (confirm or otherwise)

@dbsGen
Copy link
Contributor

dbsGen commented Apr 10, 2015

Can not input on Ubuntu, too.

@sampad1370
Copy link

Hi to all!!
how can write Arabic language in editor!!?
thanks.

On Fri, Apr 10, 2015 at 11:05 AM, Gen notifications@github.com wrote:

Can input on Ubuntu, too.


Reply to this email directly or view it on GitHub
#1644 (comment).

@Angluca
Copy link
Author

Angluca commented Apr 10, 2015

@michaeldesu Oh It's work now! Thank you very much, I always can't use IME input word to it, Only copy&paste, But I think It's no matter.

@Angluca
Copy link
Author

Angluca commented Apr 10, 2015

@niu2x 在mac上不能在GODOT里面输入中文, linux上应该也差不多, 可能跟不支持IME有关吧, 不过可以复制粘帖进去, 问题也算是解决了, 希望以后支持输入法输入,

@michaeldesu
Copy link

@Angluca I did the setup process on my Mac, and I agree with you. The IME doesn't work on the Mac, but it's possible to paste in Japanese from a text editor etc. I agree, it's not ideal. @reduz do you think it's possible to make the Mac support text entry from its IME? Seems like the similar issue from Linux. With Windows, it's just lucky MS supports the 'alternative' text-entry scheme.

@Angluca Angluca closed this as completed Apr 10, 2015
@Angluca Angluca reopened this Apr 10, 2015
@Angluca Angluca closed this as completed Apr 10, 2015
@michaeldesu
Copy link

@Angluca I think it's important not to close it, since there's still an issue with non-Latin text entry

@Angluca Angluca reopened this Apr 10, 2015
@sampad1370
Copy link

Hi to all!!
how can write Arabic language in editor!!?
i use import font but don't work for Arabic Font!!
How do this? Please Help me.
thanks.

@michaeldesu
Copy link

@sampad1370 seems like there was some discussion about Arabic here #982 but I'm not sure about the conclusion. Anway if you follow my method using the appropriate Arabic font, it should be fine (unless there is some font direction issue)

@sampad1370
Copy link

Hi to all!!
how can write Arabic language in editor!!?
i use import font but don't work for Arabic Font!!
How do this? Please Help me.
thanks.

@Angluca
Copy link
Author

Angluca commented Apr 10, 2015

@sampad1370 Sorry, Maybe only paste now, Don't repost. You can download arabic language font try it.
http://www.michaelsydenham.com/getting-godot-engine-to-display-japanese/

@itsraineing
Copy link
Contributor

sampad, see issue #982 for details on the engine's Arabic support (long story short, it's being worked on but it's not ready yet).

@sampad1370
Copy link

sorry,excuse me!!
my browser don't send this post,but now send all post!! :O

@sampad1370
Copy link

thanks for your help,but Arabic and Persian Language is a difficult challenge for Godot Engine!!
any one have a another answer?
thanks again of all and excuse me for post repeatedly before.

@niu2x
Copy link

niu2x commented Apr 10, 2015

I must tell you,even paste can't work in fedora。maybe i need to install another ime or install win8

@michaeldesu
Copy link

@niu2x That's surprising that paste doesn't even work - well at least you know Windows works (best so far for text entry) & Mac works for pasting. I guess any version of Windows will be ok (not just 8 since the IME in 8 is pretty much the same as earlier versions of Windows). Hopefully text entry via IMEs will be fixed in the future.

@niu2x
Copy link

niu2x commented Apr 10, 2015

OK, let me skip the problem.

@OlexiyKravchuk
Copy link

@michaeldesu
my native language is Ukrainian, today I found a good way here http://www.michaelsydenham.com/getting-godot-engine-to-display-japanese/, but it's not exactly what I would have wanted to see, I would like to to carry out the official localization of all Godot in my native language, as do the blender for all languages, supported out of the box! :)

@OlexiyKravchuk
Copy link

When have a way to make the translation I am happy take part to make contributions for Godot translation for my language, and perhaps even other that I know!

@michaeldesu
Copy link

@OlexiyKravchuk I guess a formal or separate request is needed to allow the editor GUI itself to be localised. JFYI I noticed this post that shows MaryNate started or demonstrated the possibility to do an independent Chinese localisation within the source code directly.

@OlexiyKravchuk
Copy link

Yes, I be there today, it's an interesting project, I hope in the final outcome will be possible to conveniently add any number of translations in any language, and it will have the official support out of the box as in the blender!

@bushig
Copy link

bushig commented May 3, 2015

Unicode support really should be added for 1.1 release. It seems to be reason of other problems, for example godot does not save its configs becouse of non latin path to appdata, thats why I cant import templates, fonts and other stuff.

@bushig
Copy link

bushig commented Nov 1, 2015

Any info on this issue? I think the problem can be fixed for 2.0 by changing standard font.

@akien-mga
Copy link
Member

Closing as a duplicate of #29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants