From 97495b73c2915f00ecf258e0166c65ade32177c3 Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Sun, 29 Sep 2024 17:39:27 +0200 Subject: [PATCH] layouts: Improve the size of the Thai (th) layout and adjust the views which were arranged differently, so that those are more similar to other layouts. Part-of: --- data/keyboards/th.yaml | 85 ++++++++++++++++++++++++------------- data/keyboards/th_wide.yaml | 83 ++++++++++++++++++++++++------------ 2 files changed, 111 insertions(+), 57 deletions(-) diff --git a/data/keyboards/th.yaml b/data/keyboards/th.yaml index 22eab501..e722c623 100644 --- a/data/keyboards/th.yaml +++ b/data/keyboards/th.yaml @@ -1,44 +1,45 @@ # Language: Thai --- outlines: - default: { width: 34, height: 52 } - large: { width: 44, height: 52 } - altline: { width: 52.67, height: 52 } - wide: { width: 86.67, height: 52 } - change-view: { width: 52.67, height: 52 } - change-view-2: { width: 86.67, height: 52 } - spaceline: { width: 184, height: 52 } - special: { width: 44, height: 52 } - placeholder: { width: 34, height: 52 } + default: { width: 37.142, height: 52 } + special: { width: 37.142, height: 52 } + special-2: { width: 40.856, height: 52 } + special-3: { width: 74.284, height: 52 } + change-view: { width: 37.142, height: 52 } + change-view-2: { width: 74.284, height: 52 } + spaceline: { width: 215.424, height: 52 } + large: { width: 40.856, height: 52 } + placeholder: { width: 37.142, height: 52 } + fill: { width: 74.284, height: 52 } views: base: - "ๅ / _ ภ ถ ุ ึ ค ต จ ข ช" - "ๆ ไ ำ พ ะ ั ี ร น ย บ ล" - "ฟ ห ก ด เ ้ ่ า ส ว ง ฃ" - - "Shift_L ผ ป แ อ ิ ื ท ม ใ ฝ BackSpace" - - "show_numbers preferences space .-large Return" + - "show_upper ผ ป แ อ ิ ื ท ม ใ ฝ BackSpace" + - "show_numbers preferences space .-large Return" upper: - "+ ๑ ๒ ๓ ๔ ู ฿ ๕ ๖ ๗ ๘ ๙" - "๐ \" ฎ ฑ ธ ํ ๊ ณ ฯ ญ ฐ ," - "ฤ ฆ ฏ โ ฌ ็ ๋ ษ ศ ซ . ฅ" - - "Shift_L ( ) ฉ ฮ ฺ ์ ? ฒ ฬ ฦ BackSpace" - - "show_numbers preferences space .-large Return" + - "show_upper ( ) ฉ ฮ ฺ ์ ? ฒ ฬ ฦ BackSpace" + - "show_numbers preferences space .-large Return" numbers: - "-- -- -- -- -- -- -- -- -- -- -- --" - - "-- -- , \" ' : ; ! ? -- -- --" - - "-- 1 2 3 4 5 6 7 8 9 0 --" - - "show_symbols @ # $ % & - _ + ( ) BackSpace" - - "show_letters preferences space .-large Return" + - "1 2 3 4 5 6 7 8 9 0" + - "@ # $ % & - _ + ( )" + - "show_symbols , \" ' : ; ! ? BackSpace" + - "show_letters preferences space .-large Return" symbols: - "-- -- -- -- -- -- -- -- -- -- -- --" - - "-- -- \\ / < > = [ ] -- -- --" - - "-- © ® £ € ¥ ^ ° * { } --" - - "show_numbers_from_symbols ~ ` | · √ π τ ÷ × ¶ BackSpace" - - "show_letters preferences space .-large Return" + - "© ® £ € ¥ ^ ° * { }" + - "~ ` | · √ π τ ÷ × ¶" + - "show_numbers_from_symbols \\ / < > = [ ] BackSpace" + - "show_letters preferences space .-large Return" buttons: - Shift_L: + show_upper: action: locking: lock_view: "upper" @@ -46,12 +47,12 @@ buttons: outline: "change-view" icon: "key-shift" BackSpace: - outline: "altline" + outline: "special" icon: "edit-clear-symbolic" action: "erase" preferences: action: "show_prefs" - outline: "special" + outline: "special-2" icon: "keyboard-mode-symbolic" show_numbers: action: @@ -61,7 +62,7 @@ buttons: show_numbers_from_symbols: action: set_view: "numbers" - outline: "change-view" + outline: "change-view-2" label: "123" show_letters: action: @@ -71,18 +72,42 @@ buttons: show_symbols: action: set_view: "symbols" - outline: "change-view" + outline: "change-view-2" label: "*/=" space: outline: "spaceline" text: " " Return: - outline: "wide" + outline: "special-3" icon: "key-enter" keysym: "Return" + --: + outline: "placeholder" + text: "" .-large: outline: "large" text: "." - --: - outline: "placeholder" - text: "" \ No newline at end of file + 5: + outline: "fill" + 6: + outline: "fill" + "&": + outline: "fill" + -: + outline: "fill" + "'": + outline: "fill" + :: + outline: "fill" + ¥: + outline: "fill" + ^: + outline: "fill" + √: + outline: "fill" + π: + outline: "fill" + <: + outline: "fill" + ">": + outline: "fill" \ No newline at end of file diff --git a/data/keyboards/th_wide.yaml b/data/keyboards/th_wide.yaml index d852c1d8..c7599674 100644 --- a/data/keyboards/th_wide.yaml +++ b/data/keyboards/th_wide.yaml @@ -1,43 +1,45 @@ # Language: Thai --- outlines: - default: { width: 75, height: 56 } - altline: { width: 75, height: 56 } - wide: { width: 135, height: 56 } - change-view: { width: 75, height: 56 } - change-view-2: { width: 135, height: 56 } - spaceline: { width: 480, height: 56 } - special: { width: 75, height: 56 } - placeholder: { width: 75, height: 56 } + default: { width: 56, height: 42 } + special: { width: 56, height: 42 } + special-2: { width: 61.6, height: 42 } + special-3: { width: 112, height: 42 } + change-view: { width: 56, height: 42 } + change-view-2: { width: 112, height: 42 } + spaceline: { width: 324.8, height: 42 } + large: { width: 61.6, height: 42 } + placeholder: { width: 56, height: 42 } + fill: { width: 112, height: 42 } views: base: - "ๅ / _ ภ ถ ุ ึ ค ต จ ข ช" - "ๆ ไ ำ พ ะ ั ี ร น ย บ ล" - "ฟ ห ก ด เ ้ ่ า ส ว ง ฃ" - - "Shift_L ผ ป แ อ ิ ื ท ม ใ ฝ BackSpace" - - "show_numbers preferences space . Return" + - "show_upper ผ ป แ อ ิ ื ท ม ใ ฝ BackSpace" + - "show_numbers preferences space .-large Return" upper: - "+ ๑ ๒ ๓ ๔ ู ฿ ๕ ๖ ๗ ๘ ๙" - "๐ \" ฎ ฑ ธ ํ ๊ ณ ฯ ญ ฐ ," - "ฤ ฆ ฏ โ ฌ ็ ๋ ษ ศ ซ . ฅ" - - "Shift_L ( ) ฉ ฮ ฺ ์ ? ฒ ฬ ฦ BackSpace" - - "show_numbers preferences space . Return" + - "show_upper ( ) ฉ ฮ ฺ ์ ? ฒ ฬ ฦ BackSpace" + - "show_numbers preferences space .-large Return" numbers: - "-- -- -- -- -- -- -- -- -- -- -- --" - - "-- -- , \" ' : ; ! ? -- -- --" - - "-- 1 2 3 4 5 6 7 8 9 0 --" - - "show_symbols @ # $ % & - _ + ( ) BackSpace" - - "show_letters preferences space . Return" + - "1 2 3 4 5 6 7 8 9 0" + - "@ # $ % & - _ + ( )" + - "show_symbols , \" ' : ; ! ? BackSpace" + - "show_letters preferences space .-large Return" symbols: - "-- -- -- -- -- -- -- -- -- -- -- --" - - "-- -- \\ / < > = [ ] -- -- --" - - "-- © ® £ € ¥ ^ ° * { } --" - - "show_numbers_from_symbols ~ ` | · √ π τ ÷ × ¶ BackSpace" - - "show_letters preferences space . Return" + - "© ® £ € ¥ ^ ° * { }" + - "~ ` | · √ π τ ÷ × ¶" + - "show_numbers_from_symbols \\ / < > = [ ] BackSpace" + - "show_letters preferences space .-large Return" buttons: - Shift_L: + show_upper: action: locking: lock_view: "upper" @@ -45,12 +47,12 @@ buttons: outline: "change-view" icon: "key-shift" BackSpace: - outline: "altline" + outline: "special" icon: "edit-clear-symbolic" action: "erase" preferences: action: "show_prefs" - outline: "special" + outline: "special-2" icon: "keyboard-mode-symbolic" show_numbers: action: @@ -60,7 +62,7 @@ buttons: show_numbers_from_symbols: action: set_view: "numbers" - outline: "change-view" + outline: "change-view-2" label: "123" show_letters: action: @@ -70,15 +72,42 @@ buttons: show_symbols: action: set_view: "symbols" - outline: "change-view" + outline: "change-view-2" label: "*/=" space: outline: "spaceline" text: " " Return: - outline: "wide" + outline: "special-3" icon: "key-enter" keysym: "Return" --: outline: "placeholder" - text: "" \ No newline at end of file + text: "" + .-large: + outline: "large" + text: "." + 5: + outline: "fill" + 6: + outline: "fill" + "&": + outline: "fill" + -: + outline: "fill" + "'": + outline: "fill" + :: + outline: "fill" + ¥: + outline: "fill" + ^: + outline: "fill" + √: + outline: "fill" + π: + outline: "fill" + <: + outline: "fill" + ">": + outline: "fill" \ No newline at end of file