Permalink
Browse files

added hungarian layouts

  • Loading branch information...
1 parent c779ac7 commit 424f6345258d5973eedd440935f7aa9746f58a43 @Mottie committed Feb 15, 2012
View
6 layouts.html
@@ -65,7 +65,7 @@
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : '\u21e7 Shift:Shift', // thick hollow up arrow
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ 'space' : ' :Space',
't' : '\u21e5:Tab', // right arrow to bar (used since this virtual keyboard works with one directional tabs)
'tab' : '\u21e5 Tab:Tab' // right arrow to bar (used since this virtual keyboard works with one directional tabs)
},
@@ -153,6 +153,10 @@
<option value="french" class="french-azerty-2">French (azerty-2)</option>
<option value="german" class="german-qwertz-1">German (qwertz-1)</option>
<option value="german" class="german-qwertz-2">German (qwertz-2)</option>
+ <option value="hungarian" class="hungarian-qwertz-1">Magyar (qwertz-1) utf8</option>
+ <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="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
2 layouts/albanian.js
@@ -92,7 +92,7 @@ language.albanian = {
's' : '\u21e7:Ndryshim', // thick hollow up arrow
'shift' : 'Ndryshim:Ndryshim',
'sign' : '\u00b1:Ndryshimi Regjistrohu', // +/- sign for num pad
- 'space' : ' :Hapësirë',
+ 'space' : '&nbsp;:Hapësirë',
'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)
},
View
2 layouts/arabic.js
@@ -190,7 +190,7 @@ language.arabic = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/belarusian.js
@@ -62,7 +62,7 @@ language.belarusian = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/bengali.js
@@ -94,7 +94,7 @@ language.bengali = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/bulgarian.js
@@ -62,7 +62,7 @@ language.bulgarian = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/catalan.js
@@ -62,7 +62,7 @@ language.catalan = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/danish.js
@@ -55,7 +55,7 @@ language.danish = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/french.js
@@ -93,7 +93,7 @@ language.french = {
's' : '\u21e7:Majuscule', // thick hollow up arrow
'shift' : 'Maj:Majuscule',
'sign' : '\u00b1:Change de signe', // +/- sign for num pad
- 'space' : ' :Espace',
+ 'space' : '&nbsp;:Espace',
't' : '\u21e5:Tabulation', // right arrow to bar (used since this virtual keyboard works with one directional tabs)
'tab' : '\u21e5 Tab:Tabulation' // \u21b9 is the true tab symbol (left & right arrows)
},
View
2 layouts/german.js
@@ -80,7 +80,7 @@ language.german = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
93 layouts/hungarian.js
@@ -0,0 +1,93 @@
+/* hungarian keyboard layouts
+ * file codepage: this file use utf8 without bom, non ansi
+ * contains layout: 'hungarian-qwertz-1' & 'hungarian-qwertz-2'
+ *
+ * To use:
+ * Point to this js file into your page header: <script src="layouts/hungarian.js" type="text/javascript"></script>
+ * Initialize the keyboard using: $('input').keyboard({ layout: 'hungarian-qwerty-2' });
+ *
+ * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
+ */
+
+/* qwertz by Tóth Gergely (https://github.com/tgely) - */
+$.keyboard.layouts['hungarian-qwertz-1'] = {
+ 'default' : [
+ "0 1 2 3 4 5 6 7 8 9 ö ü ó ű {bksp}",
+ "{tab} q w e r t z u i o p ő ú",
+ "a s d f g h j k l é á {enter}",
+ "{shift} í y x c v b n m , . - {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '§ \u0027 " + ! % / = ( ) Ö Ü Ó Ű {bksp}',
+ "{tab} Q W E R T Z U I O P Ő Ú",
+ "A S D F G H J K L É Á {enter}",
+ "{shift} Í Y X C V B N M ; : _ {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ '{sp:1} ~ ˇ ^ ˘ ° ˛ ` ˙ ´ ˝ ¨ ¸ ¤ {bksp}', // most of non used
+ '{tab} \\ | Ä {sp:1} {sp:1} {sp:1} € Í {sp:1} {sp:1} ÷ ×',
+ 'ä đ Đ [ ] {sp:1} í ł Ł $ ß {enter}',
+ '{shift} < > # & @ { } < ; > * {shift}',
+ '{accept} {alt} {space} {alt} {cancel}'
+ ]
+};
+
+$.keyboard.layouts['hungarian-qwertz-2'] = {
+ 'default' : [
+ "0 1 2 3 4 5 6 7 8 9 ö ü ó {bksp}",
+ "{tab} q w e r t z u i o p ő ú",
+ "a s d f g h j k l é á ű {enter}",
+ "{shift} í y x c v b n m , . - {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '§ \u0027 " + ! % / = ( ) Ö Ü Ó {bksp}',
+ "{tab} Q W E R T Z U I O P Ő Ú",
+ "A S D F G H J K L É Á Ű {enter}",
+ "{shift} Í Y X C V B N M ; : _ {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ '{sp:1} ~ ˇ ^ ˘ ° ˛ ` ˙ ´ ˝ ¨ ¸ {bksp}', // most of non used
+ '{tab} \\ | Ä {sp:1} {sp:1} {sp:1} € Í {sp:1} {sp:1} ÷ ×',
+ 'ä đ Đ [ ] {sp:1} í ł Ł $ ß ¤ {enter}',
+ '{shift} < > # & @ { } < ; > * {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.hungarian = {
+ display : {
+ 'a' : '\u2714:Accept (Shift-Enter)', // check mark - same action as accept
+ 'accept' : 'Rendben:Accept (Shift-Enter)',
+ 'alt' : 'AltGr:Alternate Graphemes',
+ 'b' : '\u2190:Backspace', // Left arrow (same as &larr;)
+ 'bksp' : 'Töröl:Backspace',
+ 'c' : '\u2716:Cancel (Esc)', // big X, close - same action as cancel
+ 'cancel' : 'Mégsem:Cancel (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 : 'Használd az egér görgetőt a többi billentyű átváltáshoz',
+};
+
+// 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.hungarian);
View
93 layouts/hungarianansi.js
@@ -0,0 +1,93 @@
+/* hungarian keyboard layouts
+ * file codepage: ansi
+ * contains layout: 'hungarian-qwertz-1' & 'hungarian-qwertz-2'
+ *
+ * To use:
+ * Point to this js file into your page header: <script src="layouts/hungarian.js" type="text/javascript"></script>
+ * Initialize the keyboard using: $('input').keyboard({ layout: 'hungarian-qwerty-2' });
+ *
+ * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
+ */
+
+/* qwertz by Tóth Gergely (https://github.com/tgely) - helped :http://www.fileformat.info/info/unicode/char/search.htm */
+$.keyboard.layouts['hungarianansi-qwertz-1'] = {
+ 'default' : [
+ "0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 \u0171 {bksp}",
+ "{tab} q w e r t z u i o p \u0151 \u00fa",
+ "a s d f g h j k l \u00e9 \u00e1 {enter}",
+ "{shift} \u00ed y x c v b n m , . - {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '\u00a7 \u0027 " + ! % / = ( ) \u00d6 \u00dc \u00d3 \u0170 {bksp}',
+ "{tab} Q W E R T Z U I O P \u0150 \u00da",
+ "A S D F G H J K L \u00c9 \u00c1 {enter}",
+ "{shift} \u00cd Y X C V B N M ; : _ {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ '{sp:1} \u007e \u02c7 \u005e \u02d8 \u00b0 \u02db \u0060 \u02d9 \u00b4 \u02dd \u00a8 \u00b8 \u00a4 {bksp}', // most of non used
+ '{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7',
+ '\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df {enter}',
+ '{shift} < > # & @ { } < ; > * {shift}',
+ '{accept} {alt} {space} {alt} {cancel}'
+ ]
+};
+
+$.keyboard.layouts['hungarianansi-qwertz-2'] = {
+ 'default' : [
+ "0 1 2 3 4 5 6 7 8 9 \u00f6 \u00fc \u00f3 {bksp}",
+ "{tab} q w e r t z u i o p \u0151 \u00fa",
+ "a s d f g h j k l \u00e9 \u00e1 \u0171 {enter}",
+ "{shift} \u00ed y x c v b n m , . - {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'shift' : [
+ '\u00a7 \u0027 " + ! % / = ( ) \u00d6 \u00dc \u00d3 {bksp}',
+ "{tab} Q W E R T Z U I O P \u0150 \u00da",
+ "A S D F G H J K L \u00c9 \u00c1 \u0170 {enter}",
+ "{shift} \u00cd Y X C V B N M ; : _ {shift}",
+ "{accept} {alt} {space} {alt} {cancel}"
+ ],
+ 'alt' : [
+ '{sp:1} \u007e \u02c7 \u005e \u02d8 \u00b0 \u02db \u0060 \u02d9 \u00b4 \u02dd \u00a8 \u00b8 {bksp}', // most of non used
+ '{tab} \\ | \u00c4 {sp:1} {sp:1} {sp:1} \u20ac \u00cd {sp:1} {sp:1} \u00f7 \u00d7',
+ '\u00e4 \u0111 \u0110 [ ] {sp:1} \u00ed \u0142 \u0141 $ \u00df \u00a4 {enter}',
+ '{shift} < > # & @ { } < ; > * {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.hungarianansi = {
+ display : {
+ 'a' : '\u2714:Accept (Shift-Enter)', // check mark - same action as accept
+ 'accept' : 'Rendben:Accept (Shift-Enter)',
+ 'alt' : 'AltGr:Alternate Graphemes',
+ 'b' : '\u2190:Backspace', // Left arrow (same as &larr;)
+ 'bksp' : 'T\u00f6r\u00f6l:Backspace',
+ 'c' : '\u2716:Cancel (Esc)', // big X, close - same action as cancel
+ 'cancel' : 'M\u00e9gsem:Cancel (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 : 'Haszn\u00e1ld az eg\u00e9r g\u00f6rget\u0151t a t\u00f6bbi billenty\u0171 \u00e1tv\u00e1lt\u00e1shoz',
+};
+
+// 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.hungarianansi);
View
2 layouts/russian.js
@@ -62,7 +62,7 @@ language.russian = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},
View
2 layouts/swedish.js
@@ -80,7 +80,7 @@ language.swedish = {
's' : '\u21e7:Shift', // thick hollow up arrow
'shift' : 'Shift:Shift',
'sign' : '\u00b1:Change Sign', // +/- sign for num pad
- 'space' : ' :Space',
+ '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)
},

0 comments on commit 424f634

Please sign in to comment.