Braille in android (IDE: Eclipse) - android

I am writing an application in android to convert english text to braille. How can I do this? Is there any font that I can download to convert english letters entered by user to Braille or is there any other way to do this?
Any support provided will indeed be appreciated!

There are many braille fonts on http://www.fontspace.com/category/braille.
But what do you really want to do ? Only display an equivalent in braille ? or make a tactile gadget to translate the text in braille ?
To add a font, use :
Typeface typface=Typeface.createFromAsset(getAssets(),"fonts/YOURFONT.ttf");
and put your font in the asset directory

Related

Display Hindi/Tamil/Telugu text in android application

I have a rooted phone and was trying to play around with my phone. It has android 2.2 installed. What I want to do is to display Hndi/Tamil/Telugu text inside the application that I was trying to develop. Obviously android 2.2 does not support these fonts.
As the phone is rooted doing this was easy for one language. I just followed the tips given in this link Enable Hindi Fonts on Rooted Device and was able to get Hindi fonts throughout the system. Similar approach helped me setup Tamil fonts.
But I am not able to make both Hindi and Tamil work together. The possible solutions I can think off are :
i) Create a common ttf file which shall contain both Hindi and Tamil fonts. But I have no idea whether this is possible or not.
ii) Keep a .ttf file for each language in the assets/fonts/ folder but again this is showing just square boxes on the device.
I tried this link Display Different Languages In Applicationtoo but again this seems to work for only supported fonts.
Any guidance would be highly appreciated. Thanks
Try this sample application.I shared here the whole application code for how to display one text in multiple languages especially Kannada and Telugu.

How to support marathi text in Android?

Is there any way to support marathi font in android? I tried by adding font in assest forlder but not working. Is there any other way to do the same?
Maybe you used a font for the encoding ISCII 57002 (Devanagari), try a Unicode font, as Android uses UTF-8, Unicode. Maybe this. Not much experience in this area of Android.

Punjabi/Telugu/Tamil on Android using unicode UTF-8

I am trying to display text in Indian regional languages on an Android app.
I've set up all the localization folders even though, I just want to have only one language for my app (say Punjabi).
In my strings.xml I have tried putting Hindi characters and Chinese characters and these are displayed correctly on the emulator. But when I put in Punjabi characters nothing shows up on the emulator.
Any reason for this? Can I overcome this problem?
I have the option of using a .ttf file in the assets folder for punjabi font. But that is not what I want to do because it does not give me complete control over the contents being displayed. Each .ttf behaves differently.
Any help is truly appreciated.
There is no support for local Indian languages on Android as yet. Hence the UTF-8 characters that fall outside the acceptable range for Android are ignored. Hence we see a blank being displayed.

How to localize my android application text?

I am developing the android application for different language.I want to localize my application.
I am getting the language text from server
I want to change the text based on text retrieved from server.
Please any one help me in this
You should start from Here. Android Official Localization Guide.... This is one of the great tutorials I found.
I think ttf files may help you.
Get the ttf files for all the languages and set the typeface to the text

Android Translating To Arabic

I am working with an Arabic translator who is translating my strings.xml from english to arabic. I realize that only Honeycomb or Cyanogen roms will support arabic rendering, but that is ok.
Our problem is that the text keeps getting flipped around. It seems that some text editors (like Eclipse) blatantly do not support right-to-left text. And in some cases, the text is not flipped character by character, but word by word, or parts of the sentence get rearranged ... when copying from Microsoft Word back into the UTF-8 xml file.
For example, the translator supplied lines with spaces on each end, and naturally I wanted to clean these up. But doing so flipped some of the text around!
For example:
إغلاق التطبيق
became:
التطبيقإغلاق
just by removing spaces around the edges.
Questions:
1. What editor should I be using?
2. Is it ok to mix english and Arabic on the same line (such as the App Name or other words that should not be translated) or is this fundamentally a no-no?
I am currently working on an Arabic/English project, and I speek both languages, so I can provide you with my experience :)
Answer to Question 1:
Any editor that supports UTF8 will do. I am now using both eclipse and notepad++.
To setup eclipse with UTF8 (which is not the default for some reason), go to window menu -> preferences -> general -> workspace then change text file encoding from deault (cp1252) to other, and choose utf8, then restart eclipse.
For notepad++, ensure you install supported locales, including Arabic. It is not checked during instulation and you have to tick the checkbox to enable that feature.
Answer to Question 2:
It is absolutely fine to mix Arabic and English words together in a sentence. A very very good article I found about that is written here http://www.w3.org/International/tutorials/bidi-xhtml/
This article describes design concepts for sites that support right-to-left languages (including Arabic and Hebrew), with emphasis on Arabic due to it being a more complex language because some letters get connected to others and some do not.
Even though this article is talking about website design, it has a good amount of how Arabic and English languages should be mixed.
There a simple way to insert the right to left and left to right marks in any application under windows:
1- Right to left mark: ALT + 0254 from the right numeric pad in the keyboard
2- Left to Right mark: ALT + 0253 from the right numeric pad in the keyboard
Withouusing any special editors or macros, this can be used in any application, whether in Notepad, Word, HTML, XML... etc.
Hopefully, this would be helpful for everybody
Best regards
Your Arabic Translation Team
1- I developed few Android apps that support Arabic and I am using Notepad++ to edit the resources file without any problems. Just remember to select RTL from view menu (Ctrl+Alt+R).
Virtually all Android devices that support Unicode will display Arabic letters, but if bidi algorithm is not part of specific Android version you can use a custom library to connect letters and display Arabic correctly.
Here is a library that I used before
A Blog that describes how to use it
2- In general, I would not recommend mixing Arabic and English especially if it will involve special characters as it can be displayed awkwardly.
I know the Eclipse part, the default font in Eclipse doesnt support Unicode, So change it to "Aria Unicode MS" font. To do this in Eclipse workspace click on Windows in Menu Bar -> Preferences -> General -> Appearance -> Colors and Fonts. Now in the file explorer like menu in right, expand Basic, select "Text Font" and click on Edit.. button.
Hope this solves your viewing issue with Eclipse.
About Arabic app name issue, think on this, if you do localization correctly, then the Arabic name for app will be displayed only when the user changes the handset locale (and thus language) to Arabic, otherwise the default English app name will be displayed. So, just set the Arabic name in Arabic string.xml and English in the English one and you should be good.
As for editor part, there is no way to answer your question without knowing the platform. On Windows, standard Notepad should do.
For mixing strings, it is rather common scenario. It is typical that App Name won't get translated. Also, sometimes you need to put some English description in the brackets. You might need to play with strong directionality marks in such case (otherwise brackets would look a bit strange).

Categories

Resources