|
OK, i guess the first info was correct. Just add those two lines. I just didn't direct it to the right folder that's why it didn't work the first time.
Thanks you for you help and patients.
|
|
|
|
|
Hello,
Congratulatuions! =)
I saw your chat, it looks really smooth =)
May i ask you publish complete changes you made to integrate VK with phpfreechat?
I'll be glad to publish this info on VK project site for reference.
Wbr,
Ilya
|
|
|
|
|
I'm sorry, what are you asking?
Here is what I posted at phpfreechat forum since they werent so helpful.
Incase your language is not listed in PFC you have 2 options.
1. You can install Unicode application(Vista has most installed)
2. You can get virtual keyboard from http://www.codeproject.com/KB/scripting/jsvk.aspx
All you have to do is upload all the files and folder to the server.
Open up PFC index.php and add this
<SCRIPT src="vk_loader.js" type="text/javascript"></SCRIPT> in the head
if you uploaded to particular folder, you will need to correct the src="xxx"
example <SCRIPT src="/virtualkeybaord/vk_loader.js" type="text/javascript"></SCRIPT>
Next, go to /themes/default and open up chat.html.tpl.php and add this
<div id="kbd_holder"></div> at the end of <td class="pfc_td2">
It should look like this:
<td class="pfc_td2">
<input type="text"
id="pfc_words"
title="<?php echo _pfc("Enter your message here"); ?>"
maxlength="<?php echo $max_text_len; ?>"/>
<div id="kbd_holder"></div>
</td>
Then you'll need to add the button
<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/yourkeyboard.gif'); ?>"
alt="virtual keyboard" id=""
onclick="VirtualKeyboard.toggle('pfc_words','kbd_holder');" />
</div>
That should work.
You can come test it at www.kevinsradio.com/test
click on the keyboard and select your language/country
With some editing you can have it popup or iframe as shown.
|
|
|
|
|
Thank you, this is exactly i've asked you to describe.
|
|
|
|
|
Hi,
I've created an MSKLC file from the Windows Hebrew keyboard, that includes some SGCaps keys, but after I imported it into VirtualKeyboard, I still can't get it to produce the SGCaps characters in the layout, neither on the on-screen keyboard or by caps+shift+key.
If you want the KLC file I've used, tell me and I'll send it gladly.
This is the relevant part of layouts/layouts.js:
VirtualKeyboard.addLayout({code:'HW-IL',name:'Hebrew LN',<br />
keys:[59,49,50,51,52,53,54,55,56,57,48,45,61,92,47,39,1511,1512,1488,1496,1493,1503,1501,1508,93,91,1513,1491,1490,1499,1506,1497,1495,1500,1498,1507,44,1494,1505,1489,1492,1504,1502,1510,1514,1509,46]<br />
,shift:{0:[126,33,64,35,36,37,94,38,42,41,40,95,43,124,81,87,69,82,84,89,85,73,79,80,125,123,65,83,68,70,71,72,74,75,76,58,34,90,88,67,86,66,78,77,62,60,63]}<br />
,alt:{4:[8362],11:[1471],16:[8364],20:[1520],31:[1522,1521]}<br />
});
Thank you,
Liron.
|
|
|
|
|
Hi Liron,
SGCaps keys are not compatible with the JSVK. There's no good way in detecting caps lock on/pressed state and virtual keys has no space for more symbols, as well.
Please use the alt+ctrl (AltGr) sequences.
Thank you for choosing VK for your project.
With the best regards,
Ilya
|
|
|
|
|
Hi Ilya,
Thank *you* for JSVK! It's the best web VK I've seen.
Regarding the SGCaps -
1. On the virtual keyboard - The SGCap output symbols should only be shown when capslock is pressed anyway, so it shouldn't take more space.
2. Detecting capslock - JSVK detects capslock now, as far as I can tell (When I hit capslock, the symbols on the VK change if I'm on Chinese Simple Pinyin), why can't this info be used for SGCaps?
I might implement it myself if you're too busy, I'd be glad to contribute to such a great project - just give me a few pointers on where to start (I'm hoping I'll have time myself).
Regards,
Liron.
|
|
|
|
|
Hi Liron,
Most VK skins does show normal, shift and alt key states, except for shift state equal to the uppercased "normal" symbol. SGCaps symbols should fit on the key too, but i don't see a space for them. For example, take a look at Brazilian Portugese / winxp.
If you could solve this issue, SGCaps would be great addition to the VK, but note - there's AltGr+shift mode exists.... =)
Probably, it would be easier for using standard AltGr?
SGCaps implementation list:
1) Layout design (button sizes, colors, etc)
2) Update of a .klc files compilers (both javascript and php)
3) Update of addLayout/prepareLayout/getKeyboardHtml/updateLayout methods for building keyboard UI
4) Update keyClicker method and all the logic, responsible for processing keyboard states.
This would take a time... and a deep regression testing.
With the best regards,
Ilya
|
|
|
|
|
Hi Liron,
I working on the next big step in the VK development and i got to implement support for the SGCaps, but i have no idea what are they used for.
Could you please explain this?
Thank you,
Ilya
|
|
|
|
|
Hi Ilya,
At least in the Windows Hebrew keyboard, they are used for the Niqqud - The Hebrew vowels. Generally, Hebrew is written without vowels, and the correct word (If there is ambiguity) is understood from context, but naturally, in some cases (That are not everyday, but are often enough), vowels are required, so they are present as SGCaps for the top number row. For example, "encyclopedia" without vowels is אנציקלופדיה, and with vowels it is אֶנְצִיקְלוֹפֶּדְיָה.
I know other layouts use SGCaps as well, but I don't know which, as I only write Hebrew and English.
If you need to know more, perhaps you can ask Michael Kaplan: http://blogs.msdn.com/michkap/default.aspx, he seems to know all about Windows keyboard layouts...
Thanks!
|
|
|
|
|
Hi Liron,
Please send me this layout, because no one of the existing layout does not show me something special enough to see that this feature is required. Some of the 180 layouts has the SGCaps, but they still has the same with the AltGr and Shift+AltGr modifiers.
PS: Browsing for the SGCaps I've found something like "this is more intuitive kind of input" but this tells me nothing
Wbr,
Ilya
|
|
|
|
|
Hi Ilya,
I've exported the layout with MSKLC and put it here: http://eesh.net/Hebrew.klc
As I said, I don't know about other layouts, but in the Hebrew layout, the only way to generate these characters is through SGCaps. On the other layouts, are all the SGCap characters accessible through AltGr modifiers? Anyway, if it isn't too much work, I'd like to see it there for completeness' sake. This page says it's also used in the Czech and Swiss German layouts. As far as I know, it was Microsoft Israel that put the vowel symbols in there instead of using AltGr. This is probably because the Hebrew DOS layout dictates that Shift+CapsLock+key equals the key's Hebrew letter, so they couldn't use these, and Hebrew users were used to both Alts doing the same, so AltGr would be confusing.
Regarding its intuitiveness - As the page I linked to says, "they are either very intuitive if you are used to them and incredibly confusing if you aren’t familiar with them." I know people who use vowels often remember them, but let's just say keyboard makers aren't printing them on the number row keys yet.
Anyway, as I said, I'd love this feature to be included. Personally, it bothered me when I tried to use it and found it wasn't there.
Thanks anyway, even for caring enough to ask.
Liron.
|
|
|
|
|
Hello Liron,
I've implemented support for SGCaps. Please check the dev. release at http://debugger.ru/temp/heb/demo_inline.html for correctness in Hebrew layout.
Thank you for pushing me to extend VK with new features
Wbr,
Ilya
|
|
|
|
|
Hi Ilya,
Thank you! But there are bugs. First, the detection of Capslock seems to be wrong - If I open the page when Capslock is on, the on-screen keyboard shows that it's off, even after I hit some keys, and when I turn Capslock off, it shows Capslock is on, and so on.
Second, the layout's behavior is wrong - In Hebrew, when Capslock is on, the letter keys should generate uppercase English letters, and when Capslock and Shift are both pressed, the letter keys should generate the Hebrew letters. Also, the SGCaps characters are generated by the number-row keys when just Capslock is pressed, without shift. When Capslock+Shift are pressed, I get the usual Shift+NumberRow characters (Dollar sign, etc.).
The desired behavior is that when Capslock is on and Shift is not pressed, the number row should generate the regular number characters, and only when both Capslock and Shift are pressed, it should generate the vowel characters.
Thanks again!
Liron.
|
|
|
|
|
Hi Liron,
eesheesh wrote: If I open the page when Capslock is on
CapsLock state could not be detected by using javascript. Probably there might be a way, but i don't know any.
eesheesh wrote: Second, the layout's behavior is wrong
Ok, i've fixed this, comparing to the MSKLC sandbox. Unfortunately, MSKLC has the bug with exporting layout from the binary driver, it does not take in a count that there might be no explicit SGCaps state, but Shift+SGCaps exists.
Then, exporting Hebrew layout using MSKLC you'll get one with the bugs you described above.
Please take a look on update: http://debugger.ru/temp/heb/demo_inline.html[^]
With the best regards,
Ilya
|
|
|
|
|
Hi Ilya,
I tested the new version and it seems to work great!
Regarding Capslock detection - I tried Googling for it, and as you probably know too, it seems the only way to detect that Capslock is on (Aside from the keyup/keydown) is to check if uppercase letter keypress events occur with shiftKey=false. Is that relevant for code that can run on many layouts, not just English ones? The Hebrew layout has English capitals when Capslock is pressed, but I know that it isn't true for many other layouts.
Anyway - thanks! When can we expect the release of a stable version that supports SGCaps?
Liron.
|
|
|
|
|
Hi Liron,
I suppose 3.6.1 release will be ready by the next weekend.
Feature set:
- complete shift states support (shift, altgr, altgr+shift, caps, caps+shift)
- ethiopic layouts
- runic and other ancient layouts
- performance tweaks
For (1) and (4) i have to complete the testing. (3) requires some development.
Regarding the capslock, this is still not too reliable way, because i can't track exactly the caps lock state, especially when caps lock state changed outside the browser window. Side effects like uppercase letter without the shift pressed -- are the side effects only.
With the best regards,
Ilya
|
|
|
|
|
|
Hello Liron,
Article is updated and release packages are online.
Wbr,
Ilya
|
|
|
|
|
Hi All,
I've setup the virtualKeyboard successfully on xamp.
After uploading it to my Provide Webspace (with PHP at Strato) I got the following message in Firefox
Error: layout.heapSort is not a function
Source File: http://www.abunaissa.de/forum/styles/subsilver2/theme/kb/virtualkeyboard.js?layout=SA%20Arabic%20(101) Line: 1109
I tried several things nothing is working.
Did anyone of you know where the problem could be?
Thank you in advance for an answer.
|
|
|
|
|
Hi,
Please, check <vk>/extensions/e.js or <vk>/extensions/ext/array.js (depends on the downloaded package) for existence. That's only the problem, why VK does not see its extensions.
Also, please try my online demo and let me know, if it shows the same error.
Thank you for reporting.
--Ilya
|
|
|
|
|
Hi Ilya,
Thanks a lot for the hint.
I was working with my UMTS Card but there was something not really working very well with the FTP Software this is why there were files missing. Even if I uploaded them twice and trice it was still not working.
After uploading them from the WiFi it's working perfectly.
Thanks a again for the hint.
regards and marry christmas
|
|
|
|
|
Hi,
Congratulations! =)
Thanks.
--Ilya
|
|
|
|
|
I've download the compact version 3.5.1 and the keyword works well on both text and textarea but not in the password field. I've got the same issue on both IE7 and Firefox.
I would like to know if this is a known issue or I'm alone experiencing this.
-> Update: It's seems that the keyword it actually working when integrated into my projet (it's usually the inverse...) it's working!
modified on Friday, November 28, 2008 4:43 PM
|
|
|
|
|
Hi,
Thank you for choosing this keyboard for your project! =)
Could you post a link to your project here?
--Ilya
|
|
|
|
|