hebrew

Hebrew with tkinter - BiDi

落爺英雄遲暮 提交于 2019-12-10 19:23:05
问题 I'm working on a python GUI application, using tkinter, which displays text in Hebrew. On Windows (10, python 3.6, tkinter 8.6) Hebrew strings are displayed fine. On Linux (Ubuntu 14, both python 3.4 and 3.6, tkinter 8.6) Hebrew strings are displayed incorrectly - with no BiDi awareness - am I missing something? I installed pybidi, and via bidi.algorithm.get_display(hebrew_string) - the strings are displayed correctly. But then, on Windows, get_display(hebrew_string) is displayed incorrectly.

Reading a UTF-8 text file (in Hebrew) shows gibrish in RStudio's console and fine in RGUI

ぃ、小莉子 提交于 2019-12-10 19:11:59
问题 I am trying to understand if this is a bug in RStudio or am I missing something. I am reading a csv file into R. When printing it into the console in RStudio I get gibrish (unless I look at a specific vector). While in Rgui this is fine. The code I will run is this: Sys.setlocale("LC_ALL", "Hebrew") x <- read.csv("https://raw.githubusercontent.com/talgalili/temp2/gh-pages/Hebrew_UTF8.txt", encoding="UTF-8") x # shows gibrish x[,2] colnames(x) Here is the output from RStudio (gibrish) > x <-

Identify and isolate hebrew word with regexp

不打扰是莪最后的温柔 提交于 2019-12-10 17:41:51
问题 I need to parse a hebrew sentence to identify and isolate (so I can wrap them up with 'span' tags) every word in it. I'm first trying without punctuation by identifying the non spaces chars from the spaces chars but still doesn't work: var regex = /(\s)*(\S)+(\s)*/g; any idea? thanks edit: I have already a regular expression that does the job in english, I'm putting it in case it can help to understand what I want to achieve: var regExp = /\b([^\s']+)\b/g, edit2: Adding code example var regex

Calculating Hebrew date in Python

你。 提交于 2019-12-10 12:58:38
问题 I'd like to calculate Hebrew dates (primarily the current Hebrew date) in Python. Which library is mature, easy to use, and documented? I note these. There may be others. Python Date Utilities Library as discussed here Calendrical libhdate Python bindings This informal code listing. 回答1: The Python Date Utilities library (available on sourceforge) seems to be fine to do what you want, for more specific usage with hebrew dates you could have a look here, there are a lot of examples with many

Android not using/finding my Hebrew localization.

假装没事ソ 提交于 2019-12-10 02:54:30
问题 I'm working to localize my app for a number of language. Spanish is working great but Hebrew isn't showing up. What confuses me is if I put the contents of my Hebrew strings folder in the Spanish folder(values-es) it works great. Spanish in my Hebrew folder(values-he) does not work though... Any thoughts would be greatly appreciated. 回答1: Hebrew is locale like 'iw' , and also 'he' . As the @klausw mentioned in his answer: you better store duplicate copies in both values-iw/ and values-he/

Regex to match Hebrew and English characters except numbers

送分小仙女□ 提交于 2019-12-09 13:17:44
问题 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? 回答1: Seemingly Hebrew has the range \u0590-\u05fe (according to this nice JavaScript Unicode Regex generator`. /^[a-z\u0590-\u05fe]+$/i 回答2: Try this. Not sure if it will work. If not, these references should help. [A-Za-z\u0590-\u05FF]* Hebrew Unicode Unicode in Regular Expressions 来源: https://stackoverflow

How to put Hebrew character in Android JAVA file?

大城市里の小女人 提交于 2019-12-08 03:22:26
问题 For Android Platform: I need to put Hebrew Character ₪ and some more like אורנג in string to check with the incoming data in java file. When I put this character It shows an error like "Some characters can not be mapped using "Cp1252" character encoding. Either change the encoding or remove the characters which are not supported by the "Cp1252" character encoding". These values are coming from SQLite database. Please see the attached snap. How can I solve this? Kindly give me some useful

UILabel text alignment when English and Hebrew mixed as text?

非 Y 不嫁゛ 提交于 2019-12-08 03:16:49
问题 I have UILabel which having a text which is mixed of English and Hebrew. I wanted to alignment as per language means for English LTL and for Hebrew RTL . Text is I bless You, God, for creating the fruit of the vine: בָּרוּךְ אַתָּה יְיָ אֱלֹהֵֽינוּ מֶֽלֶךְ הָעוֹלָם, בּוֹרֵא פְּרִי הַגָּֽפֶן. 回答1: Here is a sample you could be inspired with. Note: I don't know how you create your all text, so I don't know how you'll know what's in English or what in Hebrew, but you'll get the idea.

Character encoding issue when using Google Apps Script to extract data from web page

回眸只為那壹抹淺笑 提交于 2019-12-07 12:32:21
问题 I have written a script using Google Apps Script to extract text from a web page into Google Sheets. I only need this script to work with a specific web page, so it does not need to be versatile. The script works almost exactly as I want it to except that I have run into a character encoding problem. I am extracting both Hebrew and English text. The meta tag in the HTML has charset=Windows-1255. The English extracts perfectly, but the Hebrew displays as black diamonds containing a question

How is this octet stream being interpreted as Hebrew UTF-8 encoding?

霸气de小男生 提交于 2019-12-07 12:13:07
问题 The following byte stream is identified by as UTF-8, it contains the Hebrew sentence: דירות לשותפים בתל אביב - הומלס . I'm trying to understand the encoding. ubuntu@ip-10-126-21-104:~$ od -t x1 homeless-title-fromwireshark_followed_by_hexdump.txt 0000000 0a 09 d7 93 d7 99 d7 a8 d7 95 d7 aa 20 d7 9c d7 0000020 a9 d7 95 d7 aa d7 a4 d7 99 d7 9d 20 20 d7 91 d7 0000040 aa d7 9c 20 d7 90 d7 91 d7 99 d7 91 20 2d 20 d7 0000060 94 d7 95 d7 9e d7 9c d7 a1 0a 0000072 ubuntu@ip-10-126-21-104:~$ file -i