"24i" wrote:
Hi savasdenli,
Do you have any luck on solving this?
We are currently developing an application that has to support Arabic languages and we are facing the same problem now.
What do you do in the StringReverse function, as I take it it's something you created yourself?
function stringReverse(input as String) as String
newStr = ""
len = len(input)
for i = len to 1 step -1
newStr = newStr + mid(input, i, 1)
end for
return newStr
end function
"destruk" wrote:
Without seeing the actual test display, source text and resulting full text, I can simply suggest - assuming that there is a space between each letter and two or three spaces between words now in the resulting produced output -
A) run your routine as you have it now
B) take the resulting returned string of arabic text and replace two or three consecutive spaces into an unused or uncommon character like *
C) take the result of that operation and replace single spaces with nothing -- ie replace " " with ""
D) take the result of that operation and replace your uncommon substituted character with a single space.
It's a little more work, but if Roku fixes the original problem then you can remove this adjustment, and if they don't then you are good to go.
If it is a display problem, you can check the length of the resulting string and compare it to the length of the source string.
Print LEN(sourcetext)
And for scenegraph, if the string lengths are the same you could put each character into it's own label field for display, and line up the labels with pixel accuracy for display overlapping them if needed to remove the gaps as required for manual display.
Does the source string display with spaces between letters before you reverse the character order?
"rftvaa" wrote:
We gave up on the RTL support because we also went with the StringReverse alternative but it became a huge challenge when we had to support multiline labels. In case that is also a requirement in your channel, you should start considering how are you going to support it as soon as possible. I can share our attempts on that later if you need.
"govinds" wrote:"rftvaa" wrote:
We gave up on the RTL support because we also went with the StringReverse alternative but it became a huge challenge when we had to support multiline labels. In case that is also a requirement in your channel, you should start considering how are you going to support it as soon as possible. I can share our attempts on that later if you need.
could you share what you did to solve this? Trying to support RTL on Roku for mutiline labels is becoming so frustrating. Anybody got any good solutions for this?
function stringReverse(input as String) as String
newStr = ""
for each char in input.split("")
newStr = char + newStr
end for
return newStr
end function
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!