File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes arabic language programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "arabic language programming" Watch "arabic language programming" New topic
Author

arabic language programming

jamal elbaa
Greenhorn

Joined: Mar 18, 2009
Posts: 27
I would like to create an interpreted programming language and compiled in Arabic, please what are the resources I need? is that your book can help me accomplish this?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

Computer programming languages aren't really human languages at all. Going the reverse direction, I once came across a book in Japanese where the amongst all the katakana and the pictograms would occasionally appear words like "GOTO" and "IF/THEN".

If you want an extreme case, take a look at the APL programming language. Back when it was first invented and graphics terminals were virtually non-existent, you had to actually replace the typing element on your keyboard/printer device in order to get the characters that the language used.

So, Arabic is no real problem. You need to do your lexical scanning right-to-left, of course, but that's trivial. Just be glad you're not doing Mongolian (vertical text)!


Customer surveys are for companies who didn't pay proper attention to begin with.
jamal elbaa
Greenhorn

Joined: Mar 18, 2009
Posts: 27
I thought to create a Java compiler that takes as parameters the code written in Arabic but converted into ASCI code. so I can benefit from the rich existing that has Java.
but above all, in your opinion, is it a good idea to reproduce the wheel and create a new programming language?
Is it not a waste of time?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15964
    
  19

ASCII stands for American Standard for Information Interchange. The Arabic abjad doesn't map very well onto it, especially when you consider letters like 'ayn, ghayn, and the two versions of "t" and "d". To say nothing of the fact that waw is used for "w", "o" and "u". Then there's the question of whether or not to vowelize and refinement such as shadda.

Fortunately, Java works in Unicode, so you're actually better off just using an Arabic text editor and the actual symbols.

But it seems that you're less interesting in creating an actual compiler as in making Java be more Arabic-friendly. Probably the simplest way to do that would be to run a pre-processing program that does code-page translation. As I mentioned above, it's not going to be totally faithful, but then I've seen similar issues in Spanish, since the letter "ñ" isn't part of the ASCII set, either. The stock code page translator we were using to convert EBCDIC to ASCII rendered it as the 2-character sequence "n~". Similar issues occur with languages like German umlaut, although they've been dealing with that for a long time.
jamal elbaa
Greenhorn

Joined: Mar 18, 2009
Posts: 27
I think at this level, there will be no problem, because Java 5.2 contains already the codes all abjads even same characters of the Qur'an.
Thank you very much for your help
 
Consider Paul's rocket mass heater.
 
subject: arabic language programming
 
Similar Threads
translate english language to arabic
mySQL is it support arabic language and how?
how to build swing applications with bidirectional support
Strange behavior of the JVM related to Arabization(Localization)
Problems while trying to write arabic letters to a file