french.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* French keyboard layouts
  2. * contains layout: french-azerty-1 and 'french-azerty-2'
  3. *
  4. * To use:
  5. * Point to this js file into your page header: <script src="layouts/french.js" type="text/javascript"></script>
  6. * Initialize the keyboard using: $('input').keyboard({ layout: 'french-azerty-1' });
  7. *
  8. * license for this file: WTFPL, unless the source layout site has a problem with me using them as a reference
  9. */
  10. /* based on http://ascii-table.com/keyboard.php/189 & thanks to Nathana�l SEMHOUN: http://nathanael.semhoun.net */
  11. jQuery.keyboard.layouts['french-azerty-1'] = {
  12. 'name' : 'french-azerty-1',
  13. 'lang' : ['fr'],
  14. 'normal' : [
  15. "\u00b2 & \u00e9 \" ' ( - \u00e8 _ \u00e7 \u00e0 ) = {bksp}",
  16. "{tab} a z e r t y u i o p ^ $",
  17. "q s d f g h j k l m \u00f9 * {enter}",
  18. "{shift} < w x c v b n , ; : ! {shift}",
  19. "{accept} {alt} {space} {alt} {cancel}"
  20. ],
  21. 'shift' : [
  22. "{sp:1} 1 2 3 4 5 6 7 8 9 0 \u00b0 + {bksp}",
  23. "{tab} A Z E R T Y U I O P \u00a8 \u00a3",
  24. "Q S D F G H J K L M % \u00b5 {enter}",
  25. "{shift} > W X C V B N ? . / \u00a7 {shift}",
  26. "{accept} {alt} {space} {alt} {cancel}"
  27. ],
  28. 'alt' : [
  29. "\u00b2 & ~ # { [ | ` \\ ^ @ ] } {bksp}",
  30. "{tab} a z \u20ac r t y u i o p ^ \u00a4",
  31. "q s d f g h j k l m \u00f9 * {enter}",
  32. "{shift} < w x c v b n , ; : ! {shift}",
  33. "{accept} {alt} {space} {alt} {cancel}"
  34. ],
  35. 'alt-shift' : [
  36. "{sp:1} 1 ~ # { [ | ` \\ ^ @ ] } {bksp}",
  37. "{tab} A Z \u20ac R T Y U I O P \u00a8 \u00a4",
  38. "Q S D F G H J K L M % \u00b5 {enter}",
  39. "{shift} > W X C V B N ? . / \u00a7 {shift}",
  40. "{accept} {alt} {space} {alt} {cancel}"
  41. ],
  42. };
  43. jQuery.keyboard.layouts['french-azerty-2'] = {
  44. 'name' : 'french-azerty-2',
  45. 'lang' : ['fr'],
  46. 'normal' : [
  47. "\u00b2 & \u00e9 \" ' ( - \u00e8 _ \u00e7 \u00e0 ) = {b}",
  48. "{t} a z e r t y u i o p ^ $",
  49. "q s d f g h j k l m \u00f9 * {e}",
  50. "{s} < w x c v b n , ; : ! {s}",
  51. "{a} {alt} {space} {alt} {c}"
  52. ],
  53. 'shift' : [
  54. "{sp:1} 1 2 3 4 5 6 7 8 9 0 \u00b0 + {b}",
  55. "{t} A Z E R T Y U I O P \u00a8 \u00a3",
  56. "Q S D F G H J K L M % \u00b5 {e}",
  57. "{s} > W X C V B N ? . / \u00a7 {s}",
  58. "{a} {alt} {space} {alt} {c}"
  59. ],
  60. 'alt' : [
  61. "\u00b2 & ~ # { [ | ` \\ ^ @ ] } {b}",
  62. "{t} a z \u20ac r t y u i o p ^ \u00a4",
  63. "q s d f g h j k l m \u00f9 * {e}",
  64. "{s} < w x c v b n , ; : ! {s}",
  65. "{a} {alt} {space} {alt} {c}"
  66. ],
  67. 'alt-shift' : [
  68. "{sp:1} 1 ~ # { [ | ` \\ ^ @ ] } {b}",
  69. "{t} A Z \u20ac R T Y U I O P \u00a8 \u00a4",
  70. "Q S D F G H J K L M % \u00b5 {e}",
  71. "{s} > W X C V B N ? . / \u00a7 {s}",
  72. "{a} {alt} {space} {alt} {c}"
  73. ],
  74. };
  75. jQuery.keyboard.layouts['french-bepo-V1.0rc2'] = {
  76. 'name' : 'french-bepo-V1.0rc2',
  77. 'lang' : ['fr'],
  78. 'normal' : [
  79. "$ \" \u00AB \u00BB ( ) @ + - / * = % {b}",
  80. "{t} b \u00e9 p o \u00e8 \u02c6 v d l j z w",
  81. "a u i e , c t s r n m \u00E7 {enter}",
  82. "{s} \u00ea \u00E0 y x . k \' q g h f {s}",
  83. "{a} {alt} {space} {alt} {c}"
  84. ],
  85. 'shift' : [
  86. "# 1 2 3 4 5 6 7 8 9 0 \u00b0 ` {b}",
  87. "{t} B \u00c9 P O \u00c8 ! V D L J Z W",
  88. "A U I E ; C T S R N M \u00c7 {enter}",
  89. "{s} \u00ca \u00c0 Y X : K ? Q G H F {s}",
  90. "{a} {alt} {space} {alt} {c}"
  91. ],
  92. 'alt' : [
  93. "\u2013 \u2014 < > [ ] ^ \u00b1 \u2212 \u00f7 \u00d7 \u2260 \u2030 {b}",
  94. "{t} | \u00b4 & \u0153 ` \u00a1 \u02c7 \u00f0 / \u0133 \u0259 \u02d8",
  95. "\u00e6 \u00f9 \u00a8 \u20ac \u2019 \u00a9 \u00fe \u00df \u00ae ~ \u00af \u00b8 {enter}",
  96. "{s} / \\ { } \u2026 ~ \u00bf \u00b0 \u00b5 \u2020 \u02db {s}",
  97. "{a} {alt} {space} {alt} {c}"
  98. ],
  99. 'alt-shift' : [
  100. "\u00b6 \u201e \u201c \u201d \u2264 \u2265 {empty} \u00ac \u00bc \u00bd \u00be \u2032 \u2033 {b}",
  101. "{t} \u00A6 \u02DD \u00A7 \u0152 ` \u00A1 {empty} \u00D0 {empty} \u0132 \u018F \u02d8",
  102. "\u00c6 \u00d9 \u02d9 \u00a4 \u031b \u017f \u00de \u1e9e \u2122 {empty} \u00ba , {enter}",
  103. "{s} {empty} {empty} \u2018 \u2019 \u00B7 {empty} \u0309 \u0323 {empty} \u2021 \u00AA {s}",
  104. "{a} {alt} {space} {alt} {c}"
  105. ]
  106. };