diff options
| author | Jules Aguillon | 2025-06-18 00:49:34 +0200 |
|---|---|---|
| committer | GitHub | 2025-06-18 00:49:34 +0200 |
| commit | 71d278402644fd16a2f407518346746f16538de6 (patch) | |
| tree | 8df119b68d7d0f15b38eebec6277f756dcf01457 /srcs/layouts | |
| parent | f9b844e98864fc1223687c6836a26e773a80c99f (diff) | |
| download | unexpected-keyboard-71d278402644fd16a2f407518346746f16538de6.tar.gz unexpected-keyboard-71d278402644fd16a2f407518346746f16538de6.zip | |
Add <row scale=""> attribute (#1018)
* Add <row scale=""> attribute
Scale the width of the keys in the row to match a value. Useful to
remove space on the right of the row without adding a 'width' attribute
to each key.
* layouts: Use the 'scale=""' attribute in builtin layouts
This removes the very specific 'width' values.
Diffstat (limited to 'srcs/layouts')
| -rw-r--r-- | srcs/layouts/cyrl_jcuken_ru.xml | 24 | ||||
| -rw-r--r-- | srcs/layouts/cyrl_yqukeng_tj.xml | 24 | ||||
| -rw-r--r-- | srcs/layouts/cyrl_yxukeng_os.xml | 24 | ||||
| -rw-r--r-- | srcs/layouts/deva_alt.xml | 32 | ||||
| -rw-r--r-- | srcs/layouts/hebr_1_il.xml | 22 | ||||
| -rw-r--r-- | srcs/layouts/latn_bepo_fr.xml | 44 |
6 files changed, 85 insertions, 85 deletions
diff --git a/srcs/layouts/cyrl_jcuken_ru.xml b/srcs/layouts/cyrl_jcuken_ru.xml index 5b32dc5..ed863d6 100644 --- a/srcs/layouts/cyrl_jcuken_ru.xml +++ b/srcs/layouts/cyrl_jcuken_ru.xml @@ -26,17 +26,17 @@ <key key0="ж" key2="=" key3="+"/> <key key0="э" key2="|" key3="\\"/> </row> - <row> - <key width="1.18" key0="shift" key2="loc capslock"/> - <key width="0.96" key0="я"/> - <key width="0.96" key0="ч"/> - <key width="0.96" key0="с"/> - <key width="0.96" key0="м"/> - <key width="0.96" key0="и" key1="loc і" key2="<" key3="."/> - <key width="0.96" key0="т" key2=">" key3=","/> - <key width="0.96" key0="ь" key1="ъ" key2="\?" key3="/"/> - <key width="0.96" key0="б" key2=":" key3=";"/> - <key width="0.96" key0="ю" key2=""" key3="'"/> - <key width="1.18" key0="backspace" key2="delete"/> + <row scale="11"> + <key width="1.22" key0="shift" key2="loc capslock"/> + <key key0="я"/> + <key key0="ч"/> + <key key0="с"/> + <key key0="м"/> + <key key0="и" key1="loc і" key2="<" key3="."/> + <key key0="т" key2=">" key3=","/> + <key key0="ь" key1="ъ" key2="\?" key3="/"/> + <key key0="б" key2=":" key3=";"/> + <key key0="ю" key2=""" key3="'"/> + <key width="1.22" key0="backspace" key2="delete"/> </row> </keyboard> diff --git a/srcs/layouts/cyrl_yqukeng_tj.xml b/srcs/layouts/cyrl_yqukeng_tj.xml index 313c48f..e0a16b0 100644 --- a/srcs/layouts/cyrl_yqukeng_tj.xml +++ b/srcs/layouts/cyrl_yqukeng_tj.xml @@ -26,17 +26,17 @@ <key key0="ж" key7="0" /> <key key0="э" key7="\?" key3="/" /> </row> - <row> - <key width="1.18" key0="shift" key2="loc capslock" /> - <key width="0.96" key0="я" key7="`" key8=";" /> - <key width="0.96" key0="ч" key7="*" key8=":" /> - <key width="0.96" key0="с" key7="&" key8="\#" /> - <key width="0.96" key0="м" key7="|" key8="\\" /> - <key width="0.96" key0="и" key7="~" /> - <key width="0.96" key0="т" key7="ц" /> - <key width="0.96" key0="ӣ" key3="<" key2=">" /> - <key width="0.96" key0="б" key7="ъ" key8="ы" /> - <key width="0.96" key0="ю" key7=""" key8="'"/> - <key width="1.18" key0="." key7="," /> + <row scale="11"> + <key width="1.22" key0="shift" key2="loc capslock" /> + <key key0="я" key7="`" key8=";" /> + <key key0="ч" key7="*" key8=":" /> + <key key0="с" key7="&" key8="\#" /> + <key key0="м" key7="|" key8="\\" /> + <key key0="и" key7="~" /> + <key key0="т" key7="ц" /> + <key key0="ӣ" key3="<" key2=">" /> + <key key0="б" key7="ъ" key8="ы" /> + <key key0="ю" key7=""" key8="'"/> + <key width="1.22" key0="." key7="," /> </row> </keyboard> diff --git a/srcs/layouts/cyrl_yxukeng_os.xml b/srcs/layouts/cyrl_yxukeng_os.xml index 5da54e5..749a02e 100644 --- a/srcs/layouts/cyrl_yxukeng_os.xml +++ b/srcs/layouts/cyrl_yxukeng_os.xml @@ -26,17 +26,17 @@ <key key0="ж" key7="0" /> <key key0="э" key7="/" key8="|" /> </row> - <row> - <key width="1.18" key0="shift" /> - <key width="0.96" key0="ꙗ" key7="combining_breve" key8=";" /> - <key width="0.96" key0="ч" key7="combining_pokrytie" key8=":" /> - <key width="0.96" key0="с" key7="combining_inverted_breve" key8="`" /> - <key width="0.96" key0="м" key7="ѭ" /> - <key width="0.96" key0="и" key7="combining_vertical_tilde" key8="-" /> - <key width="0.96" key0="т" key7="\?" key8="\\" /> - <key width="0.96" key0="ц" key3="<" key2=">" /> - <key width="0.96" key0="б" key3="(" key2=")" /> - <key width="0.96" key0="ю" key3="{" key2="}" /> - <key width="1.18" key0="." key7="," key8="_" /> + <row scale="11"> + <key width="1.22" key0="shift" /> + <key key0="ꙗ" key7="combining_breve" key8=";" /> + <key key0="ч" key7="combining_pokrytie" key8=":" /> + <key key0="с" key7="combining_inverted_breve" key8="`" /> + <key key0="м" key7="ѭ" /> + <key key0="и" key7="combining_vertical_tilde" key8="-" /> + <key key0="т" key7="\?" key8="\\" /> + <key key0="ц" key3="<" key2=">" /> + <key key0="б" key3="(" key2=")" /> + <key key0="ю" key3="{" key2="}" /> + <key width="1.22" key0="." key7="," key8="_" /> </row> </keyboard> diff --git a/srcs/layouts/deva_alt.xml b/srcs/layouts/deva_alt.xml index d956777..7fa6791 100644 --- a/srcs/layouts/deva_alt.xml +++ b/srcs/layouts/deva_alt.xml @@ -1,22 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> <keyboard name="देवनागरी (हिंदी)-2" script="devanagari"> - <row> - <key shift="0.35" width="0.9" c="क" nw="ख" ne="घ" sw="ङ" se="ग"/> - <key width="0.9" c="च" nw="छ" ne="झ" sw="ञ" se="ज"/> - <key width="0.9" c="ट" nw="ठ" ne="ढ" sw="ण" se="ड" anticircle="७" indication="७"/> - <key width="0.9" c="त" nw="थ" ne="ध" sw="न" se="द" anticircle="८" indication="८"/> - <key width="0.9" c="प" nw="फ" ne="भ" sw="म" se="ब" anticircle="९" indication="९"/> - <key width="0.9" c="र" nw="ज्ञ" ne="ल" sw="य" se="व"/> - <key width="0.9" c="ह" nw="श" ne="ळ" sw="स" se="ष"/> + <row scale="6.6"> + <key shift="0.35" c="क" nw="ख" ne="घ" sw="ङ" se="ग"/> + <key c="च" nw="छ" ne="झ" sw="ञ" se="ज"/> + <key c="ट" nw="ठ" ne="ढ" sw="ण" se="ड" anticircle="७" indication="७"/> + <key c="त" nw="थ" ne="ध" sw="न" se="द" anticircle="८" indication="८"/> + <key c="प" nw="फ" ne="भ" sw="म" se="ब" anticircle="९" indication="९"/> + <key c="र" nw="ज्ञ" ne="ल" sw="य" se="व"/> + <key c="ह" nw="श" ne="ळ" sw="स" se="ष"/> </row> - <row> - <key shift="0.35" width="0.9" c="ा" nw="अ" ne="आ"/> - <key width="0.9" c="ि" nw="इ"/> - <key width="0.9" c="ी" nw="ई" anticircle="४" indication="४"/> - <key width="0.9" c="ु" nw="उ" ne="ऊ" se="ू" anticircle="५" indication="५"/> - <key width="0.9" c="े" nw="ए" ne="ऋ" se="ृ" anticircle="६" indication="६"/> - <key width="0.9" c="ै" nw="ऐ" ne="ऌ" se="ॢ"/> - <key width="0.9" c="ो" nw="ओ" ne="औ" se="ौ"/> + <row scale="6.6"> + <key shift="0.35" c="ा" nw="अ" ne="आ"/> + <key c="ि" nw="इ"/> + <key c="ी" nw="ई" anticircle="४" indication="४"/> + <key c="ु" nw="उ" ne="ऊ" se="ू" anticircle="५" indication="५"/> + <key c="े" nw="ए" ne="ऋ" se="ृ" anticircle="६" indication="६"/> + <key c="ै" nw="ऐ" ne="ऌ" se="ॢ"/> + <key c="ो" nw="ओ" ne="औ" se="ौ"/> </row> <row> <key c="ऽ" se="\@"/> diff --git a/srcs/layouts/hebr_1_il.xml b/srcs/layouts/hebr_1_il.xml index dca827f..aafe842 100644 --- a/srcs/layouts/hebr_1_il.xml +++ b/srcs/layouts/hebr_1_il.xml @@ -14,17 +14,17 @@ <key key0="פ" key2="0" key3="b)" key4="rlm"/> <key key0="backspace" key2="delete"/> </row> - <row> - <key key0="ש" key2="`" key1="loc tab" key3="sindot_placeholder" key4="shindot_placeholder" width="1.333"/> - <key key0="ד" key1="~" width="1.0333"/> - <key key0="ג" key1="geresh" key2="gershayim" width="1.0333"/> - <key key0="כ" width="1.0333"/> - <key key0="ע" width="1.0333"/> - <key key0="י" key2="-" key3="_" key4="maqaf" width="1.0333"/> - <key key0="ח" key2="=" key3="+" width="1.0333"/> - <key key0="ל" key2="b[" key3="b{" width="1.0333"/> - <key key0="ך" key2="b]" key3="b}" width="1.0333"/> - <key key0="ף" key2="," key3=""" key1=":" width="1.4006"/> + <row scale="11"> + <key key0="ש" key2="`" key1="loc tab" key3="sindot_placeholder" key4="shindot_placeholder" width="1.30"/> + <key key0="ד" key1="~"/> + <key key0="ג" key1="geresh" key2="gershayim"/> + <key key0="כ"/> + <key key0="ע"/> + <key key0="י" key2="-" key3="_" key4="maqaf"/> + <key key0="ח" key2="=" key3="+"/> + <key key0="ל" key2="b[" key3="b{"/> + <key key0="ך" key2="b]" key3="b}"/> + <key key0="ף" key2="," key3=""" key1=":" width="1.35"/> </row> <row> <key key0="\\" key1="|" key2="shift" key3="loc capslock"/> diff --git a/srcs/layouts/latn_bepo_fr.xml b/srcs/layouts/latn_bepo_fr.xml index e0e85f3..49566d0 100644 --- a/srcs/layouts/latn_bepo_fr.xml +++ b/srcs/layouts/latn_bepo_fr.xml @@ -1,29 +1,29 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- Inspired by the bépo layout, but adapted to smartphone --> <keyboard name="BEPO (Français)" script="latin"> - <row> - <key width="1.1" key0="b" key1="loc esc" key2="1" key4="|"/> - <key width="1.1" key0="é" key2="2" key4="è"/> - <key width="1.1" key0="p" key2="3"/> - <key width="1.1" key0="o" key2="4" key4="accent_circonflexe"/> - <key width="1.1" key0="v" key2="5" key4="{"/> - <key width="1.1" key0="d" key2="6" key4="}"/> - <key width="1.1" key0="l" key2="7" key4="("/> - <key width="1.1" key0="j" key2="8" key4=")"/> - <key width="1.1" key0="z" key2="9" key4="["/> - <key width="1.1" key0="w" key2="0" key4="]"/> + <row scale="11"> + <key key0="b" key1="loc esc" key2="1" key4="|"/> + <key key0="é" key2="2" key4="è"/> + <key key0="p" key2="3"/> + <key key0="o" key2="4" key4="accent_circonflexe"/> + <key key0="v" key2="5" key4="{"/> + <key key0="d" key2="6" key4="}"/> + <key key0="l" key2="7" key4="("/> + <key key0="j" key2="8" key4=")"/> + <key key0="z" key2="9" key4="["/> + <key key0="w" key2="0" key4="]"/> </row> - <row> - <key width="1.1" key0="a" key1="loc tab" key4="à"/> - <key width="1.1" key0="u" key1="$" key4="ù"/> - <key width="1.1" key0="i" key4="&"/> - <key width="1.1" key0="e" key1="+" key2="accent_trema" key4="€"/> - <key width="1.1" key0="c" key1="=" key4="ç"/> - <key width="1.1" key0="t" key1="^" key4=";"/> - <key width="1.1" key0="s" key4="!"/> - <key width="1.1" key0="r" key4="\?"/> - <key width="1.1" key0="n" key1="`" key2="'" key4=":"/> - <key width="1.1" key0="m" key2="""/> + <row scale="11"> + <key key0="a" key1="loc tab" key4="à"/> + <key key0="u" key1="$" key4="ù"/> + <key key0="i" key4="&"/> + <key key0="e" key1="+" key2="accent_trema" key4="€"/> + <key key0="c" key1="=" key4="ç"/> + <key key0="t" key1="^" key4=";"/> + <key key0="s" key4="!"/> + <key key0="r" key4="\?"/> + <key key0="n" key1="`" key2="'" key4=":"/> + <key key0="m" key2="""/> </row> <row> <key width="1.5" key0="shift" key2="loc capslock" key3="<"/> |
