Displaying non-English characters on phone

Hello all.
we are working on a project where the phone needs to display the
questions and radio buttons in the native language (Nepali). I tested
this function by translating the of the Label and Hint into
Spanish, and it worked great. Its almost like a built-in translator
if the form is all radio buttons.

Now its time to insert Nepali characters. I am using unicode in a
format of &#nnnn;
it doesn't work. The form does not show on the gather app, even
though I can see it saved on the sd card.

Any one else have success with displaying non-Roman alphabet
characters in the forms?

Thanks in advance. I find the answers to so many of my questions by
keeping up with this group.

Shemechanik

attach the form to
http://code.google.com/p/opendatakit/issues/detail?id=477 and we can
take a look. please also describe the version of collect you are using
and the version of android (hardware and software).

if spanish characters are working but nepalese characters are showing
up as square boxes, then there is a font problem -- we probably cannot
solve that. the alternative is to use the image as prompt text to use
pictures of the text (rather than the text itself). see the new
widgets form at
http://code.google.com/p/opendatakit/source/browse?repo=forms for an
example.

if the form itself isn't showing up in the phone, then there is
something else going on. make sure the form validates with odk
validate.

··· On Tue, Dec 13, 2011 at 18:41, shemechanik wrote: > we are working on a project where the phone needs to display the > questions and radio buttons in the native language (Nepali). I tested > this function by translating the of the Label and Hint into > Spanish, and it worked great. Its almost like a built-in translator > if the form is all radio buttons. > > Now its time to insert Nepali characters. I am using unicode in a > format of nnnn; > it doesn't work. The form does not show on the gather app, even > though I can see it saved on the sd card. > > Any one else have success with displaying non-Roman alphabet > characters in the forms?

Hi,

We've successfully got ODK running with Ethiopian font, though as Yaw
described the real issue was teh phone not having the correct font to
render teh text correctly. This thread on ODK Community may help....
http://groups.google.com/group/opendatakit/browse_thread/thread/d4ca5bb8aa49ce9b/efee8cdbb41669e1

Cheers,
Alex

··· On Dec 14, 6:19 pm, Yaw Anokwa wrote: > attach the form tohttp://code.google.com/p/opendatakit/issues/detail?id=477and we can > take a look. please also describe the version of collect you are using > and the version of android (hardware and software). > > if spanish characters are working but nepalese characters are showing > up as square boxes, then there is a font problem -- we probably cannot > solve that. the alternative is to use the image as prompt text to use > pictures of the text (rather than the text itself). see the new > widgets form athttp://code.google.com/p/opendatakit/source/browse?repo=formsfor an > example. > > if the form itself isn't showing up in the phone, then there is > something else going on. make sure the form validates with odk > validate. > > > > On Tue, Dec 13, 2011 at 18:41, shemechanik wrote: > > we are working on a project where the phone needs to display the > > questions and radio buttons in the native language (Nepali). I tested > > this function by translating the of the Label and Hint into > > Spanish, and it worked great. Its almost like a built-in translator > > if the form is all radio buttons. > > > Now its time to insert Nepali characters. I am using unicode in a > > format of nnnn; > > it doesn't work. The form does not show on the gather app, even > > though I can see it saved on the sd card. > > > Any one else have success with displaying non-Roman alphabet > > characters in the forms?

I've done some work in helping get Tibetan support working on Android,
specifically without requiring a rooted or rom'd device.

Here is an example of loading a Tibetan font for use in a simple textpad
application, and setting the typeface for a TextView element:

http://code.google.com/p/bho/source/browse/BhoView/src/org/ironrabbit/BhoBookActivity.java

face = Typeface.createFromAsset(getAssets(), "DDC_Uchen.ttf");
tv.setTypeface(face);

There is also some extracode in the sample for dealing with the
stacking/subscript issues that are problematic for some languages.

Perhaps ODK could include the ability to specific a custom typeface?

Best,
Nathan

··· On 12/14/2011 12:29 PM, Alex Little wrote: > We've successfully got ODK running with Ethiopian font, though as Yaw > described the real issue was teh phone not having the correct font to > render teh text correctly.

Shemechanik,
If Nepalese font is like other Indic Font that needs combined letters -
then only Font file (even rooting and changing system fonts with unicode
fonts files) may not solve the problem - you may need a shaper that shapes
the correct typeface - we did Bengali in Android phones by some customized
shaper and widgets - if you can send me a Nepalese True Type Unicode
supported font I may check whether you will need a shaper or not.
Sami

··· On Wed, Dec 14, 2011 at 11:39 PM, nathan at gmail wrote:

On 12/14/2011 12:29 PM, Alex Little wrote:

We've successfully got ODK running with Ethiopian font, though as Yaw
described the real issue was teh phone not having the correct font to
render teh text correctly.

I've done some work in helping get Tibetan support working on Android,
specifically without requiring a rooted or rom'd device.

Here is an example of loading a Tibetan font for use in a simple textpad
application, and setting the typeface for a TextView element:

http://code.google.com/p/bho/source/browse/BhoView/src/org/ironrabbit/BhoBookActivity.java

face = Typeface.createFromAsset(getAssets(), "DDC_Uchen.ttf");
tv.setTypeface(face);

There is also some extracode in the sample for dealing with the
stacking/subscript issues that are problematic for some languages.

Perhaps ODK could include the ability to specific a custom typeface?

Best,
Nathan

--
CTO
mPower Health
Democratizing Health
skype : dr.shamiul