Hebrew : Java Glossary

Hebrew
Hebrew is one of the more difficult languages to handle in Java. The difficulties stem from these facts:
  1. It uses a different alphabet. The glyphs are defined in Unicode in the \u0590 range.
    Hebrew alphabet
  2. I find some of the letter pairs hard to tell apart e.g. Zayin-Vav, Chet-He, Nun-Bet-Kaf, Samech-Mem, Resh-Khaf.
  3. It does not have upper and lower case, which makes it simpler.
  4. Text is right justified rather than left justified.
  5. Text reads right to left, and is pronounced right to left. This the word Shalom which mean peace, hello and goodbye:
    shalom in Hebrew
    The letters above from left to right are: Mem (M), Vav (O), Lamed (L), Shin (sh). They are pronouned/read right to left, starting with Shin (sh).
    In Unicode: \u05DD, \u05D5, \u05DC, \u05E9.

    If your font supports Hebrew,
    [שלamp;#x05D5;ם]
    in reverse order to the way they are displayed, will render in the following brackets: [שלום].

  6. Numbers read left to right, which are intermixed with alphabetic text.
  7. When you key text, you key right to left, but key numbers left to right.
  8. You have to be aware of the varying conventions for Swing, AWT (Advanced Windowing Toolkit), console input, console output, internal Strings, and drawString which you can ignore for left-to-right languages.
  9. Mem and Nun each have two forms, one for the middle of words and one for the end.
  10. Hebrew has totally different punctuation from English.
  11. Because the characters are so intricate, you must render them larger than you would the equivalent English glyphs.
  12. Programmer tools and word processors are not built to deal with Hebrew. You have to craft your own tools.
  13. There are no alphabtetic entities for Hebrew. You must use hex, e. g. ו.

Using Hebrew In Java

Here is a program I wrote to experiment to find out how Hebrew works in Java.
Here are my findings:

Learning More

Oracle’s Javadoc on ComponentOrientation class : available:
Oracle’s Javadoc on JTextComponent.setOrientation : available:
Oracle’s Javadoc on Component.setComponentOrientation : available:
Hebrew Unicode code table
locale
translation
Unicode
UTF

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/hebrew.html J:\mindprod\jgloss\hebrew.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.213]
You are visitor number 16,441.