Questions tagged [hebrew]

The Hebrew language is written right to left (RTL), much like Arabic and Farsi, requiring special handling when mixing Roman numerals and Latin characters in order to maintain correct flow.

Questions in this tag must be posted in English, but examples can be given using Hebrew characters when relevant
!השאלות צריכות להיות באנגלית

Hebrew is a language of the Semitic branch of the Afro-Asiatic languages that, in modern and ancient forms, is an official language of Israel and a language in which much of the scriptures of Jews and Christians are written in. Hebrew is also a 22 letter consonant-only alphabet used for the Hebrew and other languages.

The Hebrew language is written right to left (RTL), much like Arabic, Farsi, Urdu, and Yiddish, requiring special handling when mixing Roman numerals and Latin characters in order to maintain correct flow. Hebrew also supports accents (Te'amim) and points (Nikkud) that may be displayed differently based on the preceding letters.

In UTF-8, Hebrew characters begin at U+0591 and end at U+05F4 (including punctuation and Yiddish).

In ASCII Hebrew can use several codepages, with the most common being cp1255 (windows-1255), followed by cp8859-8 and, less common, cp862.

Tag Usage

Use this tag for:

  • Any question relating to technical uses for Hebrew in computerized systems, conversions of different charsets, inputting, outputting, processing, or displaying Hebrew characters, and the like.
    • Users should also consider looking into other localization tags such as [rtl] and [utf-8] as many Hebrew problems are not unique to Hebrew but are localization related in general.

Do not use this tag for:

  • General questions about the Hebrew language or alphabet (off-topic).
  • Questions about learning or studying Hebrew (off-topic).
  • Requests for translation assistance between Hebrew and any other language (off-topic).
  • Questions written in Hebrew (Stack Overflow requires that questions be written in English).
779 questions
40
votes
6 answers

Matplotlib: Writing right-to-left text (Hebrew, Arabic, etc.)

I'm trying to add some text to my plot which is RTL (in this case, Hebrew). After some work managed to get it to display the text, but it's displayed LTR (meaning, in the reverese order). I've dug into the reference and did extensive search online…
Korem
  • 11,383
  • 7
  • 55
  • 72
30
votes
8 answers

RTL is on web page reverses numbers with a dash

When my website displays Hebrew text mixed with numbers, and there is a number with a dash in the middle, the number with the dash in the middle is displayed RTL. For example, with the text: רמה 4–0, it should display 4-0 instead of 0-4, since it…
Yirmiyahu Fischer
  • 503
  • 2
  • 9
  • 22
30
votes
2 answers

Lucene Hebrew analyzer

Does anybody know whether one exists? I've been googling this for monthes... Thanks
Roey
  • 849
  • 2
  • 11
  • 20
28
votes
6 answers

How to detect on which side of the browser is scrollbar - right or left (in case of RTL)?

For some browsers (Safari, Edge, IE) will automatically move the scrollbar to the left side which is the correct behavior: Unfortunately, major browsers (Chrome and Firefox) are behaving in a different way, the scrollbar is still…
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
28
votes
2 answers

How to handle RTL languages on pre 4.2 versions of Android?

Background TextView always had issues with RTL (Right-To-Left) languages. Since I know only how to read Hebrew (in addition to English), I will talk about its issues: Text alignment (and I'm not talking about gravity) . As an RTL language, Hebrew…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
25
votes
1 answer

How to decode and encode Hebrew strings?

I am trying to encode and decode the Hebrew string "שלום". However, after encoding, I get gibberish: >>> word = "שלום" >>> word = word.decode('UTF-8') >>> word u'\u05e9\u05dc\u05d5\u05dd' >>> print word שלום >>> word = word.encode('UTF-8') >>>…
user1767774
  • 1,775
  • 3
  • 24
  • 32
25
votes
5 answers

Javascript - how to find hebrew?

i"m trying to fint if a string starts(first letter) width an RTL language/ hebrew. any ideas?
Gilad
22
votes
8 answers

Regex to match Hebrew and English characters except numbers

I have a question: I want to do a validation for the first and the last name with RegEx. I want to do it with only Hebrew and English without numbers. Someone can help me to do that code?
iYonatan
  • 916
  • 3
  • 10
  • 26
16
votes
1 answer

Hebrew text in HTML files

I just did a pretty major typesetting session putting things in order for a specific prayer in Hebrew named Tikkun Haklali. It's here on jsfiddle.net. Unfortunately, when I tried to save the HTML and CSS to my computer, I get something like…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
15
votes
5 answers

In Win7, Unicode/ UTF-8 text file: gibberish on Windows console (Trying to display hebrew)

I have a wide-character file (with Hebrew text) that looks fine in Notepad (saved in "UTF-8 encoding"), reads fine in Notepad++, and when I copy-and-paste into MS Word it looks fine too. But when I open a "DOS box" (Windows console) and go: "type…
Helen Craigman
  • 1,443
  • 3
  • 16
  • 25
15
votes
3 answers

How can I get today's Jewish date in c#?

I have this code: DateTime dtAnyDateHebrew = new DateTime(5767, 1, 1, new System.Globalization.HebrewCalendar()); how can I get the numeric Hebrew date of today? Meaning: For example I want to find out if a specific Hebrew month falls in this…
Tal
  • 321
  • 2
  • 6
14
votes
4 answers

Python's os.path choking on Hebrew filenames

I'm writing a script that has to move some file around, but unfortunately it doesn't seem os.path plays with internationalization very well. When I have files named in Hebrew, there are problems. Here's a screenshot of the contents of a…
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
14
votes
2 answers

right-to-left languages in Python

I want to write a Hebrew string in Python and then show it onscreen. The problem is that I get a mirror view of what I wrote. How can I set the string to use RTL instead of left to right?
Or D
  • 151
  • 1
  • 1
  • 9
12
votes
6 answers

php json_encode() show's null instead of text

I am reading from database with some text in Hebrew and trying to json_encode it. if i print_r the results i get: Array ( [0] => Array ( [value] => 88 [text] => כיתה א' [parent_id] => 1 …
eric.itzhak
  • 15,752
  • 26
  • 89
  • 142
12
votes
5 answers

Make left to right languages be written as right to left html

In my html page, I need to make my text input accept a specific set of letters. I do that by catching the keypressed event and checking that the entered character is valid. Those allowed characters are both taken from english that is written from…
user5326354
1
2 3
51 52