;

Saturday, October 11, 2014

The keyboard is used here, the Persian standard keyboard (ISIRI 9147) is of course the fact that th


There are three ways commonly used in web pages to type in Persian. uj The first Persian keyboard installed on the user's system uj is that it is not always possible. Alternatively use the virtual keyboard (On-Screen Keyboard) for novice users (who do not know where your keys) method is appropriate for intermediate or professional, innovative uj approach is time-consuming and torment. uj The last method is to use JavaScript to change the keyboard to the Persian easiest way in my opinion and my discussion here is restricted to the methodology. There are several uj typed Persian scripts in Web pages. So far I've used this script (thanks to the producers of the script). I've seen a similar uj problem with this script and all scripts that only in IE and Firefox (and sometimes incomplete in Opera) work, so that I could not find a script uj that works in all browsers without uj problems. So after a few days of trying and trying out different methods of solution finally arrived in all browsers that I was able to test it works well. Here I present the resulting script. Browser Compatibility:
I have this script with different browsers including IE6 +, FF2 +, Opera 9.63+, Chrome 1+, Safari 3.525, Netscape Navigator 9 test and I did not see a problem. We could not test other browsers at the moment. If the script can test it with other browsers also let me know the result. Also if you see a bug in the script, please do so as soon as I try to fix it. Instructions:
Here are three versions of this script. File jkblayout.js original version of this script is for those who desire to see a script, or maybe a way to fix potential bugs have been presented. This file is designed as a plugin for jQuery 1.3. My suggestion jkblayout.min.js file is compressed file version of the original script. To use it you need to refer to this file (after your referral jQuery) to add. <Script type = "text / javascript" src = "jquery.js"> </ script> <script type = "text / javascript" src = "jkblayout.min.js"> </ script>
The third version of the script file is kblayout.js. This version is intended for situations in which I have any reason not to use the jQuery. In this version I have remove all dependencies on jQuery, so there is no need to refer to jQuery. <Script uj type = "text / javascript" src = "kblayout.js"> </ script>
After adding this script uj to the screen for each field Farsi lang attribute uj with the value fa just add to the field. <Input lang = 'fa' type = "text" /> <textarea lang = 'fa' cols = '40 'rows =' 6 '> </ textarea>
The keyboard is used here, the Persian standard keyboard (ISIRI 9147) is of course the fact that the script does not interfere with the exercise of the default browser, use the Alt keys were implemented only in normal uj mode and use the Shift comply with this standard It is. Also on this keyboard are typed using Shift + Space Nymfaslh there. To change the language, the key combination Ctrl + Space is used several times by pressing this combination, uj you can chose between different languages in one. Position your keyboard in front of you can see the picture. (It is possible that the use of this image is the copyright and is not permitted., If anyone uj has more information on this case, I would advise.) Example:
To see how this works, this script, I have an example uj here. In this section, you can try the Persian keyboard. Note that if your operating system is installed Farsi keyboard, uj use the keyboard uj when typing in the field to restore your operating system in English. Key position in both normal and with the Shift (or conversion) of an existing image. If the position is different keys on your keyboard, your keyboard is not standard. It is better to try to get used to typing with this keyboard.
Suppose you want the script to add new keyboard for the language xx. To do this, create uj a new file named kblayout.xx.js put in the array like this: keyboardLayout ['xx'] = [0x0020, 0x0021, ..., 0x002f, 0x0030, 0x0031, ..., 0x003f, 0x0040, 0x0041, ..., 0x004f, 0x0050, 0x0051, ..., 0x005f, 0x0060, 0x0061, ..., 0x006f, 0x0070, 0x0071, ..., 0x007f];
In this example, instead of each value in the array, or put it on a new keyboard. Home 0x007f only exception here is where to put the equivalent of Shift + Space. If the new keyboard does not have this combination, you can not value the home of the array. To view a sample of the original script, which can be defined, see Farsi keyboard. Then to add the language uj to the language in the lifecycle when pressing Ctrl + Space to the end of the file add the following code: langCycle.push ('xx');
If you want in all fields (no need to attribute lang) has changed from Ctrl + Shift keys are not used to the keyboard, you can change the langCycle written as follows: langCycle = ['xx'];
Eventually referred to the file created (kblayout.xx.

No comments:

Post a Comment