File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Check for Arabic Line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Check for Arabic Line" Watch "Check for Arabic Line" New topic
Author

Check for Arabic Line

Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
Can anybody tell me how to check if line is in arabic language during file read/write operation?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42908
    
  69
Language detection is notoriously difficult, but searching for "language detection java" finds several promising leads. Not sure how well those work if the text in question includes words in multiple languages, though.
Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
Which is the best Java library for automatic language detection?

Hypothetical syntax:

String languageCode = LanguageIdentificationAPI.identifyLanguage("Hello world.");
// languageCode would now contain "en" for English.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42908
    
  69
You're taking a question originally posted on StackOverflow and repost it here? What's the point of that? Have you worked through all the answers given over there, and found them all to be lacking?
Murtaza Lokhandwala
Ranch Hand

Joined: Jan 28, 2010
Posts: 35
i didnt find my stuff there..i just need help only!
 
Don't get me started about those stupid light bulbs.
 
subject: Check for Arabic Line