Refering another variable in arabic?

Hi there,

I haven't been able to find a topic on this, so hopefully I'm not duplicating.

There seems to be an issue with displaying a reference to a variable in arabic.

Let's say ${var} = "Eddie"

For example, in English:

(Label column): "I would like you to know about ${var}"
Actualy display on Collect: "I would like you to know about Eddie"

Would correctly display whatever value is assigned to ${var} if Collect is set to English (or french or any latin-charactered translation).

However, doing the same in arabic will show up as:

(Label column)بين ساعة و ۲۳ ساعة ${var}
Actual display: ين ساعة و ۲۳ ساعة ${var}

In other words, the parser doesn't seem to notice that there's a reference to a variable in my prompt, and display the code literally.

Has been observed? Any work around?

Ok, let's do this Q & A style.

So basically this is likely a matter of text editor or Excel, depending what you use. But the $ signs needs to be at the end,

(Label column)بين ساعة و ۲۳ ساعة {var}$

for example the above works. One way to make it work is to just input your arabic characters first, without the variable, then type "${var} as you would in english. Excel at the very least will format it correctly. Or other just remember to put your $ sign at the end.

There are LRM and RLM Unicode directives (
https://en.wikipedia.org/wiki/Left-to-right_mark ) for working with mixes
of left-to-right and right-to-left text.

As far as I can tell, from looking at the Arabic translations the community
has given me for the Java strings, the symbol characters ($,.;%{}, etc.)
all adopt the LTR or RTL order of the adjacent text -- in this case RTL --
unless you inject a LRM directive. If you injected that directive before
the $, it would probably go on the other side of the {}.

··· On Thu, Feb 18, 2016 at 10:52 AM, wrote:

Ok, let's do this Q & A style.

So basically this is likely a matter of text editor or Excel, depending
what you use. But the $ signs needs to be at the end,

(Label column)بين ساعة و ۲۳ ساعة {var}$

for example the above works. One way to make it work is to just input your
arabic characters first, without the variable, then type "${var} as you
would in english. Excel at the very least will format it correctly. Or
other just remember to put your $ sign at the end.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com