A Scalebane Royal Guard
Join Date: Mar 2015
Posts: 431
|
Translating keyboard layout
Hello. I need help translating keyboard layouts for my new keyboard module in ConsolePort.
The only languages I have so far are Swedish and English.
This is what it looks like:
- A language table contains 8 sets of 4 buttons, each having 4 strings inside.
- To swap the character sets, the user holds down L1 or L2 or L1 and L2 together.
- The keyboard module defaults to the second string.
- The sets are rendered clockwise.
- Inside a set, the rendering order is counterclockwise.
This is what the table for English looks like:
Lua Code:
-- Lua format Language.English = { [1] = { {"A", "a", "1", "/s"}, {"B", "b", "2", "/p"}, {"C", "c", "3", "/i"}, {"D", "d", "4", "/g"}, }, [2] = { {"E", "e", "5", "/y"}, {"F", "f", "6", "/w"}, {"G", "g", "7", "/e"}, {"H", "h", "8", "/r"}, }, [3] = { {"I", "i", "9", "´"}, {"J", "j", "<", "^"}, {"K", "k", "0", "`"}, {"L", "l", ">", "¨"}, }, [4] = { {"M", "m", "@", "¤"}, {"N", "n", "&", "#"}, {"O", "o", "$", "€"}, {"P", "p", "%", "£"}, }, [5] = { {"Q", "q", "/", "½"}, {"R", "r", "(", "["}, {"S", "s", "\\", "\|"}, {"T", "t", ")", "]"}, }, [6] = { {"U", "u", "+", "§"}, {"V", "v", "*", "{"}, {"W", "w", "=", "¿"}, {"X", "x", "/", "}"}, }, [7] = { {"Y", "y", "{rt1}", "{rt1}"}, {"Z", "z", "{rt2}", "{rt2}"}, {"\"", "'", "{rt3}", "{rt3}"}, {"_", "-", "{rt4}", "{rt4}"}, }, [8] = { {"!", "!", "{rt5}", "{rt5}"}, {":", ".", "{rt6}", "{rt6}"}, {":", ",", "{rt7}", "{rt7}"}, {"?", "?", "{rt8}", "{rt8}"}, }, } --[[ Readable format A a 1 /s B b 2 /p C c 3 /i D d 4 /g E e 5 /y F f 6 /w G g 7 /e H h 8 /r I i 9 ´ J j < ^ K k 0 ` L l > ¨ M m @ ¤ N n & # O o $ € P p % £ Q q / ½ R r ( [ S s \ | T t ) ] U u + § V v * { W w = ¿ X x / } Y y {rt1} {rt1} Z z {rt2} {rt2} " ' {rt3} {rt3} _ - {rt4} {rt4} ! ! {rt5} {rt5} : . {rt6} {rt6} : , {rt7} {rt7} ? ? {rt8} {rt8} ]]--
Note: {rtX} are raid markers.
__________________
Last edited by MunkDev : 10-26-15 at 09:36 PM.
|