HebrewCalendar does not support Hebrew numerals.
Numbers (digits) are represented in Hebrew calendar with Hebrew numerals (letters). For more information on Hebrew numerals please refer to following article: [en.wikipedia.org/wiki/Hebrew_numerals]
In English locale String representation of date using Hebrew calendar looks like this:
04 tishrei 5768
In Hebrew locale String representation of date using Hebrew calendar should look like this:
H"ASHSAT IERHSIT D
Notice that capital Latin characters stay for Hebrew letters. Instead, ICU4J supports following form:
04 IERHSIT 5768
In other words, only month's name appears in Hebrew while both day and year are represented using Arabic-Western digits instead of Hebrew numerals.
Please notice that in Hebrew language, Hebrew calendar is used exclusively with Hebrew numerals. Here are a couple of real world examples taken from WWW:
- Israeli newspaper - [www.haaretz.co.il]
- Israeli news site - [www.inn.co.il]
- Municipality of Jerusalem - [www.jerusalem.muni.il/jer_main/defaultnew.asp?lng=1]
Please notice that Windows OS also supports Hebrew numerals. When you set default locale to Hebrew and select Hebrew national calendar, days and years in dates are represented with Hebrew numerals instead of Arabic-Western digits.
I realize that support for Hebrew numerals can be considered a localization (or translation) of Hebrew calendar since they are expected to be available only for default Hebrew locale. Currently ICU4J supports localization of Hebrew calendar months only.
I know that ICU uses locale data imported from CLDR[www.unicode.org/cldr/]. However, since it is not possible to translate infinite sequence of integer numbers, I believe that HebrewCalendar should at least provide 2 following functions for conversion between Arabic-Western and Hebrew numerals:
- String IntegerToHebNumeral(int)
- int HebNumeralToInteger(String)
This way external applications using ICU4J would be able to properly represent Hebrew date during serialization of Date object into String.
I am not sure if this is a defect or an enhancement. For the time being I defined the issue as defect.