WebKBD
An in-browser keyboard layout switcher for the web

About WebKBD

WebKBD is a browser-based keyboard layout switcher. You can put it on your site, thus enabling users whose computers aren't localized properly to write in their own alphabet. WebKBD is inspired by Kredor Web Keyboards, but has multiple advantages over it. Here's a short comparison between them:

WebKBD Kredor Web Keyboards
Browsers supported IE, Firefox/Mozilla, Opera, Chrome, Safari IE, Firefox/Mozilla
Switching using Shift+WinKey Yes
(IE, Firefox/Mozilla, Chrome, Safari)
Yes
(Internet Explorer only)
Web standards compliance Yes No
Code tidyness Yes No
(pollutes the global namespace)
Optimized cyrillic layouts
(phonetic and BDS)
Yes
('ѝ' instead of 'Ь')
No
Size (uncompressed) 6,5 KB 10,9 KB
Size (GZIP-compressed) 3,3 KB 5,3 KB

За WebKBD

WebKBD е превключвател на клавиатурни подредби за браузъри. Можете да го поставите на своя сайт, позволявайки на потребителите си, които нямат настроена кирилизация на компютрите си, да пишат на кирилица. Идеята за WebKBD идва от Kredor Уеб-клавиатури, но WebKBD има значителни подобрения. Ето кратко сравнение между двата продукта:

WebKBD Kredor Уеб-клавиатури
Съвместимост с браузъри IE, Firefox/Mozilla, Opera, Chrome, Safari IE, Firefox/Mozilla
Превключване със Shift+WinKey Да
(IE, Firefox/Mozilla, Chrome, Safari)
Да
(само в Internet Explorer)
Спазване на web стандартите Да Не
Подреденост на кода Да Не
(замърсяване на глобалния namespace)
Оптимизирани кирилски подредби
(фонетична и БДС)
Да
('ѝ' вместо 'Ь')
Не
Размер (без компресия) 6.5 КБ 10.9 КБ
Размер (с GZIP компресия) 3.3 КБ 5.3 КБ

Demo

Currently viewing the Bulgarian demo. All demos available: Bulgarian French Greek Russian Spanish Ukrainian

WebKBD switcher: WebKBD









Installation

Installing WebKBD is very easy:

  1. Download the WebKBD javascript and put it somewhere on your server:
    WebKBD v1.2 Bulgarian Phonetic (BP) and BDS (BG)
    WebKBD v1.2 French (FR)
    WebKBD v1.2 Greek (EL)
    WebKBD v1.2 Russian Phonetic (RP) and Standard (RU)
    WebKBD v1.2 Spanish (ES)
    WebKBD v1.2 Ukrainian Phonetic (UP) and Standard (UK)
    WebKBD v1.2 ZIP with all languages

  2. Include the WebKBD javascript in your page.
    Copy and paste the following code snippet just before your </head> tag:

    Adjust the name and path to the script as necessary.

  3. Add the WebKBD layout switcher to your page.
    Copy and paste the following code snippet where you want the switcher to appear:

    Note 1: You can put more than one switcher on a page if you want.
    Note 2: You can tweak the 'style' attribute if you want. If you modify any other attribute, the switcher won't work.

Contributing

For bug reports, suggestions, or new language and keyboard layout submissions, please use the Issue Tracker on Google Code.

History

  • 2010-10-01: version 1.2
        * Workaround invalid keyswitch detection (in rare cases)
  • 2009-04-28: version 1.1
        * Added compatibility with some iframe-based WYSIWYG editors
        * Added ability to put more than one switcher on a page
  • 2009-04-27: version 1.0
        * Initial release

License

Copyright (c) 2009 Peter Petrov, http://code.ppetrov.com/webkbd/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.