i want to build an application on Android platform that will convert text to speech for the text,documents,pdf files. Multireader app. does the same thing.
is there any open source app. similar to this ?
i know how to build text to speech for text ,but how to make it work for other file types ?
You need to read those other file types and convert it to plain text. Then you take the plain text and read it. I am sure that there are open apis for pdf documents that allow you to read a document and extract the text.
Related
I want to build an android app which has word file as an input. I should be able to read from the word file and display the text. Text should retain all the formatting of the word file. For example is some text is colored red in word file , app should also display it as red colored text.
2 different libraries comes to my mind on handling microsoft office stuff are Apache POI and docx4j. Have you tried them on your purpose, because they have good API support for retrieving data from documents.
I used Apache POI for excel sheet and I know that it has a good api support for word doc too, but I heard that docx4j is better in handling word documents.
Some links you might check : for Apache POI Validating and reading a Word file in Android
for more info on word documents : What's a good Java API for creating Word documents?
Also please check following link if you are going with Apache POI; you might fail on adding library to your project.. Trying to port Apache POI to Android
I want to create a word document within an android app and send that document through mail.
Is there any tutorial for creating a word document in android. I have gone through several other questions on this website but i didn't got a clear answer.
can we do this on Android using Apache POI.
If any any sample example exist then please mention.
Thanks in advance.
You can use any Java library in Android, so I do think this would be the way you could accomplish what you want (using Apache POI).
You can send the attachment by adding it as an extra to the Intent you use to create a mail message (lots of examples of that).
Apache POI looks your best bet, but note that the component that deals with Word docs only supports simple files:
HWPF and XWPF for Word Documents
HWPF is our port of the Microsoft Word 97 (-2003) file format to pure Java. It supports read, and limited write capabilities. It also provides simple text extraction support for the older Word 6 and Word 95 formats. Please see the HWPF project page for more information. This component remains in early stages of development. It can already read and write simple files.
We are also working on the XWPF for the WordprocessingML (2007+) format from the OOXML specification. This provides read and write support for simpler files, along with text extraction capabilities.
You should seriously consider whether you can use a different format for your emails - plain text, or maybe HTML.
I am working on Android App that uses MUPDF reader to read pdf files, these pdf files contain Arabic letters and I want to use the search inside the mupdf to search for these Arabic letters, it only can find one letter but not a complete word, I tried to know if mupdf reads using ascii but I couldn't, so is there any methodology to make the mupdf finds whole Arabic words?
I was using Mupdf version 1.2, it was not supporting LTR and RTL but after I have downloaded version 1.3 which was released in 15-8 I can now write any Arabic word in reversed order and the Mupdf will finds it.
you can find the latest version here: http://www.mupdf.com/download/
Left-to-right and right-to-left searching ought to work, if it doesn't then I suggest you open a bug report at bugs.ghostscript.com and attach a file where the search doesn't work. The simplest file you can manage would be appreciated.
I have an iOS App localized (with Localizable.strings files).
I've built now an Android version. I understand the way the i18n is made on android but I would like to avoid redoing the i18n, as almost all the Strings have the same meaning between iOS and Android.
Are there any tools that will do this conversion, or at least speed up the process?
Edit:
Ideally I would like to find a method/tool that would do the following
Input:
'iOS Localizable.strings files-(en,fr,it,pt,etc)'
'res/values/strings.xml'
Output:
'res/values-en/strings.xml'
'res/values-fr/strings.xml'
'res/values-it/strings.xml'
'res/values-pt/strings.xml'
'res/values-etc/strings.xml'
There is a specialised service here: Loco.
There are threads here on SO which deal with conversation:
Are there any tools to convert an Iphone localized string file to a string resources file that can be used in Android?
Any tool to convert Android's XML localization to iPhone's .strings file?
Another possiblity would be to use an online translation service. These services accepts text not only in Android and iPhone but also in many other formats. Upload the android text and download the iPhone text. A list of available services can be found on SO, see Any collaborative tool/website to localize an Android app? Some of these services are commercial, but even these provide a 30days test period. But note that the main focus is on translation and not on conversation.
Here is some code that does that: https://github.com/wrapp/LocalizedStrings2Android
Put it in a jar and it is ready to use.
You can use this tool I created on JSFiddle:
https://jsfiddle.net/danielgindi/x9njj9gj/
[StackOverflow requires me to write some code here because of the JSFiddle link]
Just paste in your localization strings inside the correct box, and you'll get the converted version in the other boxes (Between Android, iOS, and JS).
This tries to preserve comments too.
Cheers!
I'm trying to retrieve Arabic words that I stored in a text file and display them in my android application, any idea on how to display Arabic letters or words in my app? I've tried different kinds of methods like using the ArabicReshaper and this is an example of the code:
tx=(TextView)this.findViewById(R.id.tt);
try{
tx.setTypeface(Typeface.createFromAsset(getAssets(),"dejavusans.ttf"));
tx.setText(ArabicUtilities.reshape("\u0641\u0631\u0633"));//
}
but I need another way instead of using the Unicode for each Arabic letter and connecting them. Can I not write the Arabic word directly into eclipse?