hebrew

How to read.table with “Hebrew” column names (in R)?

会有一股神秘感。 提交于 2021-02-18 17:16:54
问题 I am trying to read a .txt file, with Hebrew column names, but without success. I uploaded an example file to: http://www.talgalili.com/files/aa.txt And am trying the command: read.table("http://www.talgalili.com/files/aa.txt", header = T, sep = "\t") This returns me with: X.....ª X...ª...... X...œ.... 1 12 97 6 2 123 354 44 3 6 1 3 Instead of: אחת שתיים שלוש 12 97 6 123 354 44 6 1 3 My output for: l10n_info() Is: $MBCS [1] FALSE $`UTF-8` [1] FALSE $`Latin-1` [1] TRUE $codepage [1] 1252 And

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

守給你的承諾、 提交于 2021-02-17 21:10:04
问题 For <html dir="rtl"> 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 on the right side of the browser. Is it possible to detect programmatically (preferably with vanilla JS) on which side is scrollbar? UPD (28.09.2018): so far, there's no working solution in the answers, people are trying to detect the scrollbar

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

陌路散爱 提交于 2021-02-17 21:08:38
问题 For <html dir="rtl"> 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 on the right side of the browser. Is it possible to detect programmatically (preferably with vanilla JS) on which side is scrollbar? UPD (28.09.2018): so far, there's no working solution in the answers, people are trying to detect the scrollbar

Regex for Hebrew and symbols

馋奶兔 提交于 2021-02-16 20:07:10
问题 I need an expression that can accept only Hebrew letters and at least one space char. I tried this for Hebrew letters, but it doesn't match sentences with Hebrew text and spaces: result = Regex.IsMatch(txtName.Text, @"[\u05D0\u05D1\u05D2\u05D3\u05D4\u05D5\u05D6\u05D7\u05D8\u05D9\u05DA\u05DB\u05DC\u05DD\u05DE\u05DF\u05E0\u05E1\u05E2\u05E3\u05E4\u05E5\u05E6\u05E7\u05E8\u05E9\u05EA]"); How can I represent all the Hebrew letters and at least one space char in regEx? 回答1: You are looking for

NSLayoutManager boundingRect(forGlyphRange:in:) returns wrong value for RTL languages

懵懂的女人 提交于 2021-02-10 23:49:11
问题 In my app, I draw custom background under lines of text in UITextView . To do so, I use boundingRect(forGlyphRange:in:) method of NSLayoutManager . It works well for LTR languages (Latin, Cyrillic, Chinese etc): But if I use it for RTL texts (Hebrew, Farsi etc), the method returns wrong bounding rect (see padding on the left edge): These additional paddings seem to have some logic. The first character determines the size of the padding for a line: What the reason for this extra padding and

NSLayoutManager boundingRect(forGlyphRange:in:) returns wrong value for RTL languages

只谈情不闲聊 提交于 2021-02-10 23:46:10
问题 In my app, I draw custom background under lines of text in UITextView . To do so, I use boundingRect(forGlyphRange:in:) method of NSLayoutManager . It works well for LTR languages (Latin, Cyrillic, Chinese etc): But if I use it for RTL texts (Hebrew, Farsi etc), the method returns wrong bounding rect (see padding on the left edge): These additional paddings seem to have some logic. The first character determines the size of the padding for a line: What the reason for this extra padding and

How can i open a Windows-1255 encoded file in Node.js?

佐手、 提交于 2021-01-27 05:01:54
问题 I have a file in Windows-1255 (Hebrew) encoding, and i'd like to be able to access it in Node.js. I tried opening the file with fs.readFile , and it gives me a Buffer that i can't do anything with. I tried setting the encoding to Windows-1255 , but that wasn't recognized. I also checked out the windows-1255 package, but i couldn't decode with that, because fs.readFile either gives a Buffer or a UTF8 string, and the package requires a 1255-encoded string. How can i read a Windows-1255 -encoded