hebrew

Preserve letter order when replacing LTR chars with RTL chars in a word at byte level

Preserve letter order when replacing LTR chars with RTL chars in a word at byte level Question: I have a Hebrew word "יתꢀראꢁ" which needs to be "בראשית". To correct I am encoding and than replacing chars. The replacement works however since I am replacing LTR chars with RTL chars the order gets jumbled. data="יתꢀראꢁ".encode("unicode_escape") …

Total answers: 2

NeedAppearances=pdfrw.PdfObject('true') forces manual pdf save in Acrobat Reader

NeedAppearances=pdfrw.PdfObject('true') forces manual pdf save in Acrobat Reader Question: We have a pdf form file example.pdf which has 3 columns: name_1, company_1, and client_1 Our data to fill is in Hebrew as well as English. Our goal is to have a file which can be opened RTL in both a Browser and Acrobat Reader. Our …

Total answers: 3

How to remove hebrew niqqud from a string in python?

How to remove hebrew niqqud from a string in python? Question: given a string s, I want a method to return a string s’ which contains all of the chars in s except the ones which are hebrew niqqud. for example: “שָׁלוֹם” will become “שלום”. Asked By: Amit Keinan || Source Answers: this method can …

Total answers: 2

How to display Hebrew text in a TextInput field in Python Kivy

How to display Hebrew text in a TextInput field in Python Kivy Question: I am trying to make a simple app in kivy(a python package) that gets a text from a TextInput field and when a button is clicked it returns a text in Hebrew that will displayed on another TextInput, Everything seems to be …

Total answers: 3

How to get the Unicode character from a code point variable?

How to get the Unicode character from a code point variable? Question: I have a variable which stores the string “u05e2” (The value is constantly changing because I set it within a loop). I want to print the Hebrew letter with that Unicode value. I tried the following but it didn’t work: >>> a = …

Total answers: 3

Right-to-Left and Left-to-Right printed nicely

Right-to-Left and Left-to-Right printed nicely Question: I want it to produce the number next to a word so that I can ask the user to select the word by using the corresponding number. This is my code alt_words = hlst loopnum = 8 for i in range(loopnum): if i < len(alt_words): print(‘{0}. {1:<20}’.format((i+1), alt_words[i]), end …

Total answers: 3

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

Matplotlib: Writing right-to-left text (Hebrew, Arabic, etc.) Question: 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 and …

Total answers: 6