Merge branch 'add-malayalam-layout' into 'main'

Layouts: Add Malayalam layout

See merge request World/Phosh/squeekboard!660
This commit is contained in:
Marge Bot
2024-08-13 08:31:57 +00:00
8 changed files with 203 additions and 1 deletions

View File

@ -11,6 +11,10 @@ sq_view.gr_polytonic {
font-size: 2em; font-size: 2em;
} }
sq_view.in_mal {
font-size: 1em;
}
sq_view.ir_azb { sq_view.ir_azb {
font-size: 1.368em; font-size: 1.368em;
} }

8
data/icons/zwj.svg Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g fill="none" stroke="#000">
<path d="m135.66 182.97a51.681 32.879 0 0 1-71.332 9.8e-4" stroke-width="12.123"/>
<path d="m135.66 17.029a51.681 32.879 0 0 0-71.332-0.0011" stroke-width="12.123"/>
<path d="m100 7.7071v184.59" stroke-width="10"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 384 B

8
data/icons/zwsp.svg Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="200" height="200" version="1.1" xmlns="http://www.w3.org/2000/svg">
<g fill="none" stroke="#000">
<circle cx="100" cy="20.429" r="14.118" stroke-width="9.05"/>
<circle cx="100" cy="179.57" r="14.118" stroke-width="9.05"/>
<path d="m100 34.739v130.52" stroke-width="8.5856"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 346 B

View File

@ -0,0 +1,88 @@
---
outlines:
default: { width: 29.44, height: 44.5 }
altline: { width: 58.88, height: 44.5 }
change-view: { width: 58.88, height: 44.5 }
spaceline: { width: 235.52, height: 44.5 }
special: { width: 29.44, height: 44.5 }
placeholder: { width: 29.44, height: 44.5 }
views:
base:
- " ൊ ൧ ൨ ൩ ൪ ൫ ൬ ൮ ൯ - ൃ "
- " ൗ ൈ ാ ീ ൂ ബ ഹ ഗ ദ ജ ഡ zwj zwnj "
- " -- ോ േ ് ി ു പ ര ക ത ച ട zwsp "
- "Shift_L െ മ ന വ ല സ യ -- BackSpace"
- "show_numbers preferences space Return"
upper:
- " ഒ ! @ # ₹ % ^ & ൾ ( ) ഃ ഋ "
- " ഔ ഐ ആ ഈ ഊ ഭ ങ ഘ ധ ഝ ഢ ഞ ർ "
- " -- ഓ ഏ അ ഇ ഉ ഫ റ ഖ ഥ ഛ -- "
- "Shift_L എ ൺ ണ ൻ ഴ ള ശ ഷ ൽ BackSpace"
- "show_numbers preferences space Return"
numbers:
- " -- ൧ ൨ ൩ ൪ ൫ ൬ ൮ ൯ -- -- "
- "-- 1 2 3 4 5 6 7 8 9 0 -- --"
- "-- @ # $ % & - _ + ( ) -- --"
- "show_symbols ₹ , \" ' : ; ! ? -- BackSpace"
- "show_letters preferences space Return"
symbols:
- "-- -- -- -- -- -- -- -- -- -- -- -- --"
- "-- ~ ` | · √ π τ ÷ × ¶ -- --"
- "-- © ® £ € ¥ ^ ° * { } -- --"
- "show_numbers -- \\ / < > = [ ] -- BackSpace"
- "show_letters preferences space Return"
buttons:
Shift_L:
action:
locking:
lock_view: "upper"
unlock_view: "base"
outline: "change-view"
icon: "key-shift"
BackSpace:
outline: "altline"
icon: "edit-clear-symbolic"
action: "erase"
preferences:
action: "show_prefs"
outline: "special"
icon: "keyboard-mode-symbolic"
show_numbers:
action:
set_view: "numbers"
outline: "change-view"
label: "123"
show_letters:
action:
set_view: "base"
outline: "change-view"
label: "ABC"
show_symbols:
action:
set_view: "symbols"
outline: "change-view"
label: "*/="
space:
outline: "spaceline"
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"
--:
outline: "placeholder"
text: ""
# U+200B - zero-width-space
zwsp:
icon: "zwsp"
text: ""
# U+200C - zero-width-non-joiner
zwnj:
icon: "zwnj"
text: ""
# U+200D - zero-width-joiner
zwj:
icon: "zwj"
text: ""

View File

@ -0,0 +1,88 @@
---
outlines:
default: { width: 45.11, height: 36.65 }
altline: { width: 90.22, height: 36.65 }
change-view: { width: 90.22, height: 36.65 }
spaceline: { width: 360.88, height: 36.65 }
special: { width: 45.11, height: 36.65 }
placeholder: { width: 45.11, height: 36.65 }
views:
base:
- " ൊ ൧ ൨ ൩ ൪ ൫ ൬ ൮ ൯ - ൃ "
- " ൗ ൈ ാ ീ ൂ ബ ഹ ഗ ദ ജ ഡ zwj zwnj "
- " -- ോ േ ് ി ു പ ര ക ത ച ട zwsp "
- "Shift_L െ മ ന വ ല സ യ -- BackSpace"
- "show_numbers preferences space Return"
upper:
- " ഒ ! @ # ₹ % ^ & ൾ ( ) ഃ ഋ "
- " ഔ ഐ ആ ഈ ഊ ഭ ങ ഘ ധ ഝ ഢ ഞ ർ "
- " -- ഓ ഏ അ ഇ ഉ ഫ റ ഖ ഥ ഛ -- "
- "Shift_L എ ൺ ണ ൻ ഴ ള ശ ഷ ൽ BackSpace"
- "show_numbers preferences space Return"
numbers:
- " -- ൧ ൨ ൩ ൪ ൫ ൬ ൮ ൯ -- -- "
- "-- 1 2 3 4 5 6 7 8 9 0 -- --"
- "-- @ # $ % & - _ + ( ) -- --"
- "show_symbols ₹ , \" ' : ; ! ? -- BackSpace"
- "show_letters preferences space Return"
symbols:
- "-- -- -- -- -- -- -- -- -- -- -- -- --"
- "-- ~ ` | · √ π τ ÷ × ¶ -- --"
- "-- © ® £ € ¥ ^ ° * { } -- --"
- "show_numbers -- \\ / < > = [ ] -- BackSpace"
- "show_letters preferences space Return"
buttons:
Shift_L:
action:
locking:
lock_view: "upper"
unlock_view: "base"
outline: "change-view"
icon: "key-shift"
BackSpace:
outline: "altline"
icon: "edit-clear-symbolic"
action: "erase"
preferences:
action: "show_prefs"
outline: "special"
icon: "keyboard-mode-symbolic"
show_numbers:
action:
set_view: "numbers"
outline: "change-view"
label: "123"
show_letters:
action:
set_view: "base"
outline: "change-view"
label: "ABC"
show_symbols:
action:
set_view: "symbols"
outline: "change-view"
label: "*/="
space:
outline: "spaceline"
text: " "
Return:
outline: "altline"
icon: "key-enter"
keysym: "Return"
--:
outline: "placeholder"
text: ""
# U+200B - zero-width-space
zwsp:
icon: "zwsp"
text: ""
# U+200C - zero-width-non-joiner
zwnj:
icon: "zwnj"
text: ""
# U+200D - zero-width-joiner
zwj:
icon: "zwj"
text: ""

View File

@ -8,6 +8,8 @@
<file>icons/key-enter.svg</file> <file>icons/key-enter.svg</file>
<file>icons/key-shift.svg</file> <file>icons/key-shift.svg</file>
<file>icons/keyboard-mode-symbolic.svg</file> <file>icons/keyboard-mode-symbolic.svg</file>
<file>icons/zwj.svg</file>
<file>icons/zwnj.svg</file> <file>icons/zwnj.svg</file>
<file>icons/zwsp.svg</file>
</gresource> </gresource>
</gresources> </gresources>

View File

@ -87,6 +87,9 @@ static KEYBOARDS: &[(&'static str, &'static str)] = &[
("il", include_str!("../data/keyboards/il.yaml")), ("il", include_str!("../data/keyboards/il.yaml")),
("il_wide", include_str!("../data/keyboards/il_wide.yaml")), ("il_wide", include_str!("../data/keyboards/il_wide.yaml")),
("in+mal", include_str!("../data/keyboards/in+mal.yaml")),
("in+mal_wide", include_str!("../data/keyboards/in+mal_wide.yaml")),
("ir", include_str!("../data/keyboards/ir.yaml")), ("ir", include_str!("../data/keyboards/ir.yaml")),
("ir_wide", include_str!("../data/keyboards/ir_wide.yaml")), ("ir_wide", include_str!("../data/keyboards/ir_wide.yaml")),

View File

@ -80,12 +80,13 @@ foreach layout : [
'es+cat', 'es+cat_wide', 'es+cat', 'es+cat_wide',
'fi', 'fi_wide', 'fi', 'fi_wide',
'fr', 'fr_wide', 'fr', 'fr_wide',
'fr+bepo', 'fr+bepo_wide',
'ge', 'ge_wide', 'ge', 'ge_wide',
'gr', 'gr_wide', 'gr', 'gr_wide',
'gr+polytonic', 'gr+polytonic_wide', 'gr+polytonic', 'gr+polytonic_wide',
'fr+bepo', 'fr+bepo_wide',
'hu', 'hu_wide', 'hu', 'hu_wide',
'il', 'il_wide', 'il', 'il_wide',
'in+mal', 'in+mal_wide',
'ir', 'ir_wide', 'ir', 'ir_wide',
'it', 'it_wide', 'it', 'it_wide',
'it+fur', 'it+fur_wide', 'it+fur', 'it+fur_wide',