hebrew

Displaying hebrew text on screen

无人久伴 提交于 2019-11-29 13:19:09
I want to display hebrew text on the screen using the text command in MATLAB: text(0.6, 0.5, 'ירוק', 'rotation', 180, 'fontsize', 50, 'color', 'r') The problem is that it displays gibberish. Does anybody know why? What should I do in order to display the text correctly? You need to use a font that supports Hebrew characters - the default font (Helvetica) does not. You can use 'Courier', David' etc. For example: text(0.6,0.5,'ירוק','fontname','david','rotation',180,'fontsize',50,'color','r') בהצלחה! 来源: https://stackoverflow.com/questions/4639975/displaying-hebrew-text-on-screen

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

冷暖自知 提交于 2019-11-29 11:52:23
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 =' ') if i == 0: print('', end=' ') if i + 9 <= len(alt_words): print('{0}. {1:<20}'.format((i+9), alt_words[i+8]), end =' ') if i + 17 <= len(alt_words): print('{0}. {1:<20}'.format((i+17), alt_words[i+16]), end=' ') print('\n'+'-'*80) It produces this The first number of each line gets printed on the left, but the word on

right-to-left languages in Python

可紊 提交于 2019-11-29 11:04:57
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? Oz123 did you try this? http://pypi.python.org/pypi/python-bidi/ http://pypi.python.org/pypi/django-bidi-utils the Israeli FOSS comunnity is doing a lot in the direction, suprisingly, they happily collaborate also with Pharsi speakers :-) pyfribidi for windows or any other bidi algorithm 来源: https://stackoverflow.com/questions/3856403/right-to-left-languages-in-python

How to tell if a string contains characters in Hebrew using PHP?

喜夏-厌秋 提交于 2019-11-29 07:39:11
Trying to figure out how to tell whether a string contains any characters in Hebrew with no luck. How can this be done? If the source string is UTF-8 encoded, then the simpler approach would be using \p{Hebrew} in the regex. The call also should have the /u modifier. = preg_match("/\p{Hebrew}/u", $string) map of the iso8859-8 character set . The range E0 - FA appears to be reserved for Hebrew. [\xE0-\xFA] For UTF-8, the range reserved for Hebrew appears to be 0590 to 05FF. [\u0590-\u05FF] Here's an example of a regex match in PHP: echo preg_match("/[\u0590-\u05FF]/", $string); The simplest

PHP ZipArchive non-English filenames return funky filenames within archive

懵懂的女人 提交于 2019-11-29 05:23:25
This code works properly to make the ZIP file with the wanted files, except the filenames in the archive, which are not in English (in this case they are Hebrew), have weird characters instead of the proper hebrew letters. <?php $filesfordown = $_POST['GEMin']; if(empty($filesfordown)) { echo "No files were seleceted for download."; } else { $zip_name = "RMW." . time() . ".zip"; $zip = new ZipArchive; $zip->open($zip_name, ZipArchive::CREATE); foreach ($filesfordown as $filefordown) { $zip->addFile($filefordown); } $zip->close(); } header('Content-Type: application/zip'); header("Content

Using hebrew with the android emulator

此生再无相见时 提交于 2019-11-28 21:58:55
I want to be able to run a "Hello World" application on my android emulator in hebrew How can I do that? is it supported? thanks Though android does not have complete support for Hebrew if you are just displaying text, then it turns out to be pretty easy to do. First you want to add a Hebrew font to your app. For this you simply put a true type font file (with Hebrew characters) in your assets directory. Then you load the font and use it on your view. For any view that inherits from TextView (which includes just about any view that displays text), you do the following: AssetManager assets =

Saving Hebrew text to NSUserDefaults return strange encoding

旧城冷巷雨未停 提交于 2019-11-28 14:20:27
I'm saving Hebrew text to NAMutableArray, then I save it to NSUserDefalts, this way: numOfWallPosts++; NSString *tempKeyToStore = [NSString stringWithFormat:@"wall_post_%d", numOfWallPosts]; // wall_post_%d NSMutableArray *tempArray = [[NSMutableArray alloc] init]; [tempArray addObject:currentOwner]; [tempArray addObject:currentTitle]; [tempArray addObject:currentText]; [tempArray addObject:currentDate]; [tempArray addObject:currentTime]; [tempArray addObject:currentImageURL]; [tempArray addObject:currentWallID]; [self.sharedPrefs setObject:tempArray forKey:tempKeyToStore]; [self.sharedPrefs

jQuery doesn't display Hebrew

亡梦爱人 提交于 2019-11-28 13:32:33
I am using jQuery to validate a form. I have at my html's head: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I have utf-8 on my scripts: <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js" charset="utf-8"></script> <script type="text/javascript" src="validate.js" charset="utf-8"></script> My html page shows Hebrew just fine as long as it's not though the jQuery code. Any Hebrew character printed trough the jQuery (through the script in validate.js) prints out as: ���� Any help would be appreciated. Open all your html, css, js (all client files

how can i detect hebrew characters both iso8859-8 and utf8 in a string using php

给你一囗甜甜゛ 提交于 2019-11-28 10:22:49
I want to be able to detect (using regular expressions) if a string contains hebrew characters both utf8 and iso8859-8 in the php programming language. thanks! Here's map of the iso8859-8 character set . The range E0 - FA appears to be reserved for Hebrew. You could check for those characters in a character class: [\xE0-\xFA] For UTF-8, the range reserved for Hebrew appears to be 0591 to 05F4. So you could detect that with: [\u0591-\u05F4] Here's an example of a regex match in PHP: echo preg_match("/[\u0591-\u05F4]/", $string); well if your PHP file is encoded with UTF-8 as should be in cases

php json_encode() show's null instead of text

江枫思渺然 提交于 2019-11-28 10:03:07
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 [level] => 1 ) [1] => Array ( [value] => 89 [text] => כיתה ב' [parent_id] => 1 [level] => 1 ) [2] => Array ( [value] => 91 [text] => כיתה ג' [parent_id] => 1 [level] => 1 ) ) while the json_encode shows: [{"value":"88","text":null,"parent_id":"1","level":"1"},{"value":"89","text":null,"parent_id":"1","level":"1"},{"value":"91","text":null,"parent_id":"1","level":"1"}] i belive it's because my text from the