Two Laptop Bag*
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: 39547
    
  27
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 - updated with new look and Ping home screen widget
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: 39547
    
  27
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
 
Similar Threads
Etract data from pdf files
Spell check APIs for java ...
URGENT! -- Retrieving data from Oracle database?
Arabic spell checkers ...
insert query for mysql convert() using the tomcat