Hi
My app native language is Hebrew, (It should display dynamic text contains non-english characters)
can Corona support this ?
Thanks
Hi
My app native language is Hebrew, (It should display dynamic text contains non-english characters)
can Corona support this ?
Thanks
If you use a font that has Hebrew glyphs, sure. I did an app for a client once that use Hebrew and I was able to copy/paste from Google Translate for some strings (I know not the best translator, but… the point is…) copy/paste of Unicode letters works assuming your text editor supports it. I use Sublime Text 2 and have never had a problem copying and using Unicode text in a Corona App…
Ok, I finally made it.
The trick was to change the encoding to utf8 in my eclipse editor.
If you use a font that has Hebrew glyphs, sure. I did an app for a client once that use Hebrew and I was able to copy/paste from Google Translate for some strings (I know not the best translator, but… the point is…) copy/paste of Unicode letters works assuming your text editor supports it. I use Sublime Text 2 and have never had a problem copying and using Unicode text in a Corona App…
Ok, I finally made it.
The trick was to change the encoding to utf8 in my eclipse editor.
I`ve got a problem with string functions:
s = “й” --russian letter
local rus = {
[“й”] = “%d0%b9”,
}
– there is one letter just for example
print(rus[s:sub(1,1)]) --> nil
print(rus[s:sub(1)]) --> “%d0%b9”
So, if I have a string like “Шла Саша по шоссе…”, I willn’t be able to use encoding function in for-operator like this
local s_new = “”
for i=1, string.len(s) do
if rus[s:sub(i,i)]~=nil then
s_new = s_new…rus[s:sub(i,i)]
else
s_new = s_new…s:sub(i,i)
end
end
It`s good idea for me, but not for another users, maybe.
I`ve got a problem with string functions:
s = “й” --russian letter
local rus = {
[“й”] = “%d0%b9”,
}
– there is one letter just for example
print(rus[s:sub(1,1)]) --> nil
print(rus[s:sub(1)]) --> “%d0%b9”
So, if I have a string like “Шла Саша по шоссе…”, I willn’t be able to use encoding function in for-operator like this
local s_new = “”
for i=1, string.len(s) do
if rus[s:sub(i,i)]~=nil then
s_new = s_new…rus[s:sub(i,i)]
else
s_new = s_new…s:sub(i,i)
end
end
It`s good idea for me, but not for another users, maybe.