aspose 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
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: 41899
    
  63
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.


Ping & DNS - my free Android networking tools app
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: 41899
    
  63
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Check for Arabic Line