Is there a way to decompose and compose Korean words to/from the individual consonants/vowels?

Viewed 195

I'm looking for a function that is able to convert a string from "ㅂㅏㅇㅇㅏㄷㅣ" to "방아디".

I've been stuck on this for a week now. I've found user-created python functions that do exactly what I want: https://github.com/jonghwanhyeon/hangul-jamo , https://github.com/bluedisk/hangul-toolkit , etc. but unity does not support python, and I need to interface with C# code.

Does anyone know of such a thing for C#?

Thanks everyone~

1 Answers

In the past I have used a code I have found in GitHub that was working great for english-italian, and it's this one https://gist.github.com/grimmdev/979877fcdc943267e44c

I also know another plugin which is more complex but can translate more efficiently : https://github.com/bbepis/XUnity.AutoTranslator

If you can't achieve a Korean translation in this way you should try a System Language class like in this example: https://answers.unity.com/questions/1196793/best-practice-for-multiple-languages.html

With the last method you will Always be able to translate but you need to translate word per word and maybe it's not what you are searching for

Related