Permalink
Browse files

added latvian layout

  • Loading branch information...
1 parent feb0c8a commit cbb96b038a78929d5b2bdf8d054ae2cb821f8101 @Mottie committed Jun 18, 2012
Showing with 81 additions and 3 deletions.
  1. +4 −0 README.markdown
  2. +1 −1 js/jquery.keyboard.js
  3. +1 −1 js/jquery.keyboard.min.js
  4. +1 −0 layouts.html
  5. +73 −0 layouts/latvian.js
  6. +1 −1 package.json
View
@@ -72,6 +72,10 @@ Moved to the Wiki Pages: [Home](https://github.com/Mottie/Keyboard/wiki/Home) |
Only the latest changes will be shown below, see the wiki log to view older versions.
+### Version 1.9.20 (6/17/2012)
+
+* Added Latvian layout. Thanks to Ivars via email.
+
### Version 1.9.19 (6/17/2012)
* Modified script to add "ui-keyboard-autoaccepted" class name to the original input if the content was autoaccepted. Discussed in [issue #66](https://github.com/Mottie/Keyboard/issues/66).
@@ -1,6 +1,6 @@
/*!
jQuery UI Virtual Keyboard
-Version 1.9.19
+Version 1.9.20
Author: Jeremy Satterfield
Modified: Rob Garrison (Mottie on github)
Oops, something went wrong.
View
@@ -159,6 +159,7 @@
<option value="hungarian" class="hungarian-qwertz-2">Magyar (qwertz-2) utf8</option>
<option value="hungarianansi" class="hungarianansi-qwertz-1">Magyar (qwertz-1) ansi</option>
<option value="hungarianansi" class="hungarianansi-qwertz-2">Magyar (qwertz-2) ansi</option>
+ <option value="latvian" class="latvian-qwerty">Latvian (qwerty)</option>
<option value="russian" class="russian-qwerty">Russian (qwerty)</option>
<option value="swedish" class="swedish-qwerty">Swedish (qwerty)</option>
<option value="swedish" class="swedish-dvorak">Swedish (dvorak)</option>
View
@@ -0,0 +1,73 @@
+/* Latvian keyboard layouts
+ * contains layout: 'latvian-qwerty'
+ *
+ * To use:
+ * Point to this js file into your page header: <script src="layouts/latvian.js" type="text/javascript"></script>
+ * Initialize the keyboard using: $('input').keyboard({ layout: 'latvian-qwerty' });
+ *
+ * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
+ */
+$.keyboard.layouts['latvian-qwerty'] = {
+ 'default' : [
+ "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}",
+ "{tab} q w e r t y u i o p [ ] \u00B0",
+ "a s d f g h j k l ; ' {enter}",
+ "{shift} z x c v b n m , . / {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '~ ! @ # $ % ^ & * ( ) _ + {bksp}',
+ "{tab} Q W E R T Y U I O P { } |",
+ 'A S D F G H J K L : " {enter}',
+ "{shift} Z X C V B N M < > ? {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ "\u00ac 1 \u00AB \u00BB \u20AC 5 \u2019 7 8 9 0 \u2013 = {bksp}",
+ "{tab} q w \u0113 \u0157 t y \u016B \u012B \u014D p [ ] \u00B0",
+ "\u0101 \u0161 d f \u0123 h j \u0137 \u013C ; \u00B4 {enter}",
+ "{shift} \u017E x \u010D v b \u0146 m , . / {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt-shift' : [
+ '~ 1 2 3 4 \u00A7 \u00AB 7 \u00B1 \u00D7 0 \u2014 = {bksp}',
+ "{tab} Q W \u0112 \u0156 T Y \u016A \u012A \u014C P { } |",
+ '\u0100 \u0160 D F \u0122 H J \u0136 \u013B : \u00A8 {enter}',
+ "{shift} \u017D X \u010C V B \u0145 M < > ? {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ]
+};
+
+// Keyboard Language
+// please update this section to match this language and email me with corrections!
+// ***********************
+if (typeof(language) === 'undefined') { var language = {}; };
+language.latvian = {
+ display : {
+ 'a' : '\u2714:Pie\u0146emt (Shift-Enter)', // check mark - same action as accept
+ 'accept' : 'Pie\u0146emt:Pie\u0146emt (Shift-Enter)',
+ 'alt' : 'AltGr:Altern\u0113\u0161anas tausti\u0146\u0161',
+ 'b' : '\u2190:Atpaka\u013Catk\u0101pe', // Left arrow (same as &larr;)
+ 'bksp' : 'Bksp:Atpaka\u013Catk\u0101pe',
+ 'c' : '\u2716:Atcelt (Esc)', // big X, close - same action as cancel
+ 'cancel' : 'Atcelt:Atcelt (Esc)',
+ 'clear' : 'C:Clear', // clear num pad
+ 'combo' : '\u00f6:Toggle Combo Keys',
+ 'dec' : '.:Decimal', // decimal point for num pad (optional), change '.' to ',' for European format
+ 'e' : '\u21b5:Enter', // down, then left arrow - enter symbol
+ 'enter' : 'Enter:Enter',
+ 'lock' : '\u21ea Lock:Caps Lock', // caps lock
+ 's' : '\u21e7:Shift', // thick hollow up arrow
+ 'shift' : 'Shift:Shift',
+ 'sign' : '\u00b1:Change Sign', // +/- sign for num pad
+ 'space' : '&nbsp;:Space',
+ 't' : '\u21e5:Tab', // right arrow to bar (used since this virtual keyboard works with one directional tabs)
+ 'tab' : '\u21e5 Tab:Tab' // \u21b9 is the true tab symbol (left & right arrows)
+ },
+ // Message added to the key title while hovering, if the mousewheel plugin exists
+ wheelMessage : 'Izmanto peles riten\u012Bti, lai apskat\u012Btu citus tausti\u0146us',
+};
+
+// This will replace all default language options with these language options.
+// it is separated out here so the layout demo will work properly.
+$.extend(true, $.keyboard.defaultOptions, language.latvian);
View
@@ -1,6 +1,6 @@
{
"name": "Keyboard",
- "version": "1.9.19",
+ "version": "1.9.20",
"title": "Keyboard",
"author": {
"name": "Jeremy Satterfield",

0 comments on commit cbb96b0

Please sign in to comment.