mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-19 21:59:11 +00:00
Merge pull request #114 from dotsensei/master
Include Bulgarian (enhanced) keyboard, proposed by group of 500 people in May 2020.
This commit is contained in:
commit
1b2c69fea2
9 changed files with 384 additions and 0 deletions
|
@ -81,6 +81,9 @@
|
|||
<!-- Description for Bulgarian (BDS) subtype. -->
|
||||
<string name="subtype_bulgarian_bds">%s (BDS)</string>
|
||||
|
||||
<!-- Description for Bulgarian (BEKL) subtype. -->
|
||||
<string name="subtype_bulgarian_bekl">%s (BEKL)</string>
|
||||
|
||||
<!-- Compatibility map from subtypeLocale:subtypeExtraValue to keyboardLayoutSet -->
|
||||
<string-array name="locale_and_extra_value_to_keyboard_layout_set_map">
|
||||
<item>en_US:TrySuppressingImeSwitcher,AsciiCapable,SupportTouchPositionCorrection,EmojiCapable</item>
|
||||
|
|
57
app/src/main/res/xml-sw600dp/rows_bulgarian_bekl.xml
Normal file
57
app/src/main/res/xml-sw600dp/rows_bulgarian_bekl.xml
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_common" />
|
||||
<Row
|
||||
latin:keyWidth="8.182%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl1" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.182%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl2" />
|
||||
<Key
|
||||
latin:keyStyle="enterKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.182%p"
|
||||
>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="10.0%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl3" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/keys_exclamation_question" />
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
26
app/src/main/res/xml/kbd_bulgarian_bekl.xml
Normal file
26
app/src/main/res/xml/kbd_bulgarian_bekl.xml
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License"):
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<Keyboard
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rows_bulgarian_bekl" />
|
||||
</Keyboard>
|
44
app/src/main/res/xml/keyboard_layout_set_bulgarian_bekl.xml
Normal file
44
app/src/main/res/xml/keyboard_layout_set_bulgarian_bekl.xml
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<KeyboardLayoutSet
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto">
|
||||
<Feature
|
||||
latin:supportedScript="cyrillic" />
|
||||
<Element
|
||||
latin:elementName="alphabet"
|
||||
latin:elementKeyboard="@xml/kbd_bulgarian_bekl"
|
||||
latin:enableProximityCharsCorrection="true" />
|
||||
<Element
|
||||
latin:elementName="symbols"
|
||||
latin:elementKeyboard="@xml/kbd_symbols" />
|
||||
<Element
|
||||
latin:elementName="symbolsShifted"
|
||||
latin:elementKeyboard="@xml/kbd_symbols_shift" />
|
||||
<Element
|
||||
latin:elementName="phone"
|
||||
latin:elementKeyboard="@xml/kbd_phone" />
|
||||
<Element
|
||||
latin:elementName="phoneSymbols"
|
||||
latin:elementKeyboard="@xml/kbd_phone_symbols" />
|
||||
<Element
|
||||
latin:elementName="number"
|
||||
latin:elementKeyboard="@xml/kbd_number" />
|
||||
</KeyboardLayoutSet>
|
|
@ -28,6 +28,7 @@
|
|||
be_BY: Belarusian (Belarus)/east_slavic
|
||||
bg: Bulgarian/bulgarian
|
||||
bg: Bulgarian/bulgarian_bds
|
||||
bg: Bulgarian/bulgarian_bekl
|
||||
bn_BD: Bengali (Bangladesh)/bengali_akkhor
|
||||
bn_IN: Bengali (India)/bengali
|
||||
ca: Catalan/spanish
|
||||
|
@ -192,6 +193,14 @@
|
|||
android:imeSubtypeExtraValue="KeyboardLayoutSet=bulgarian_bds,EmojiCapable"
|
||||
android:isAsciiCapable="false"
|
||||
/>
|
||||
<subtype android:icon="@drawable/ic_ime_switcher_dark"
|
||||
android:label="@string/subtype_bulgarian_bekl"
|
||||
android:subtypeId="0x5f51ba9a"
|
||||
android:imeSubtypeLocale="bg"
|
||||
android:imeSubtypeMode="keyboard"
|
||||
android:imeSubtypeExtraValue="KeyboardLayoutSet=bulgarian_bekl,EmojiCapable"
|
||||
android:isAsciiCapable="false"
|
||||
/>
|
||||
<subtype android:icon="@drawable/ic_ime_switcher_dark"
|
||||
android:label="@string/subtype_generic"
|
||||
android:subtypeId="0xa2144b0c"
|
||||
|
|
79
app/src/main/res/xml/rowkeys_bulgarian_bekl1.xml
Normal file
79
app/src/main/res/xml/rowkeys_bulgarian_bekl1.xml
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<!-- U+0443: "у" CYRILLIC SMALL LETTER U -->
|
||||
<Key
|
||||
latin:keySpec="у"
|
||||
latin:keyHintLabel="1"
|
||||
latin:additionalMoreKeys="1" />
|
||||
<!-- U+0435: "е" CYRILLIC SMALL LETTER IE -->
|
||||
<Key
|
||||
latin:keySpec="е"
|
||||
latin:keyHintLabel="2"
|
||||
latin:additionalMoreKeys="2" />
|
||||
<!-- U+0438: "и" CYRILLIC SMALL LETTER I
|
||||
U+045D: "ѝ" CYRILLIC SMALL LETTER I WITH GRAVE -->
|
||||
<Key
|
||||
latin:keySpec="и"
|
||||
latin:keyHintLabel="3"
|
||||
latin:additionalMoreKeys="3"
|
||||
latin:moreKeys="ѝ" />
|
||||
<!-- U+0448: "ш" CYRILLIC SMALL LETTER SHA -->
|
||||
<Key
|
||||
latin:keySpec="ш"
|
||||
latin:keyHintLabel="4"
|
||||
latin:additionalMoreKeys="4" />
|
||||
<!-- U+0449: "щ" CYRILLIC SMALL LETTER SHCHA -->
|
||||
<Key
|
||||
latin:keySpec="щ"
|
||||
latin:keyHintLabel="5"
|
||||
latin:additionalMoreKeys="5" />
|
||||
<!-- U+043A: "к" CYRILLIC SMALL LETTER KA -->
|
||||
<Key
|
||||
latin:keySpec="к"
|
||||
latin:keyHintLabel="6"
|
||||
latin:additionalMoreKeys="6" />
|
||||
<!-- U+0441: "с" CYRILLIC SMALL LETTER ES -->
|
||||
<Key
|
||||
latin:keySpec="с"
|
||||
latin:keyHintLabel="7"
|
||||
latin:additionalMoreKeys="7" />
|
||||
<!-- U+0434: "д" CYRILLIC SMALL LETTER DE -->
|
||||
<Key
|
||||
latin:keySpec="д"
|
||||
latin:keyHintLabel="8"
|
||||
latin:additionalMoreKeys="8" />
|
||||
<!-- U+0437: "з" CYRILLIC SMALL LETTER ZE -->
|
||||
<Key
|
||||
latin:keySpec="з"
|
||||
latin:keyHintLabel="9"
|
||||
latin:additionalMoreKeys="9" />
|
||||
<!-- U+0446: "ц" CYRILLIC SMALL LETTER TSE -->
|
||||
<Key
|
||||
latin:keySpec="ц"
|
||||
latin:keyHintLabel="0"
|
||||
latin:additionalMoreKeys="0" />
|
||||
<!-- U+0431: "б" CYRILLIC SMALL LETTER BE -->
|
||||
<Key
|
||||
latin:keySpec="б" />
|
||||
</merge>
|
57
app/src/main/res/xml/rowkeys_bulgarian_bekl2.xml
Normal file
57
app/src/main/res/xml/rowkeys_bulgarian_bekl2.xml
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<!-- U+044C: "ь" CYRILLIC SMALL LETTER SOFT SIGN -->
|
||||
<Key
|
||||
latin:keySpec="ь" />
|
||||
<!-- U+044F: "я" CYRILLIC SMALL LETTER YA -->
|
||||
<Key
|
||||
latin:keySpec="я" />
|
||||
<!-- U+0430: "а" CYRILLIC SMALL LETTER A -->
|
||||
<Key
|
||||
latin:keySpec="а" />
|
||||
<!-- U+043E: "о" CYRILLIC SMALL LETTER O -->
|
||||
<Key
|
||||
latin:keySpec="о" />
|
||||
<!-- U+0436: "ж" CYRILLIC SMALL LETTER ZHE -->
|
||||
<Key
|
||||
latin:keySpec="ж" />
|
||||
<!-- U+0433: "г" CYRILLIC SMALL LETTER GHE -->
|
||||
<Key
|
||||
latin:keySpec="г" />
|
||||
<!-- U+0442: "т" CYRILLIC SMALL LETTER TE -->
|
||||
<Key
|
||||
latin:keySpec="т" />
|
||||
<!-- U+043D: "н" CYRILLIC SMALL LETTER EN -->
|
||||
<Key
|
||||
latin:keySpec="н" />
|
||||
<!-- U+0432: "в" CYRILLIC SMALL LETTER VE -->
|
||||
<Key
|
||||
latin:keySpec="в" />
|
||||
<!-- U+043C: "м" CYRILLIC SMALL LETTER EM -->
|
||||
<Key
|
||||
latin:keySpec="м" />
|
||||
<!-- U+0447: "ч" CYRILLIC SMALL LETTER CHE -->
|
||||
<Key
|
||||
latin:keySpec="ч" />
|
||||
</merge>
|
57
app/src/main/res/xml/rowkeys_bulgarian_bekl3.xml
Normal file
57
app/src/main/res/xml/rowkeys_bulgarian_bekl3.xml
Normal file
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<!-- U+044E: "ю" CYRILLIC SMALL LETTER YU -->
|
||||
<Key
|
||||
latin:keySpec="ю" />
|
||||
<!-- U+0439: "й" CYRILLIC SMALL LETTER SHORT I
|
||||
U+046D: "ѭ" CYRILLIC SMALL LETTER IOTIFIED BIG YUS -->
|
||||
<Key
|
||||
latin:keySpec="й"
|
||||
latin:keyHintLabel="ѭ"
|
||||
latin:moreKeys="ѭ" />
|
||||
<!-- U+044A: "ъ" CYRILLIC SMALL LETTER HARD SIGN
|
||||
U+046B: "ѫ" CYRILLIC SMALL LETTER BIG YUS -->
|
||||
<Key
|
||||
latin:keySpec="ъ"
|
||||
latin:keyHintLabel="ѫ"
|
||||
latin:moreKeys="ѫ" />
|
||||
<!-- U+0463: "ѣ" CYRILLIC SMALL LETTER YAT -->
|
||||
<Key
|
||||
latin:keySpec="ѣ" />
|
||||
<!-- U+0444: "ф" CYRILLIC SMALL LETTER EF -->
|
||||
<Key
|
||||
latin:keySpec="ф" />
|
||||
<!-- U+0445: "х" CYRILLIC SMALL LETTER HA -->
|
||||
<Key
|
||||
latin:keySpec="х" />
|
||||
<!-- U+043F: "п" CYRILLIC SMALL LETTER PE -->
|
||||
<Key
|
||||
latin:keySpec="п" />
|
||||
<!-- U+0440: "р" CYRILLIC SMALL LETTER ER -->
|
||||
<Key
|
||||
latin:keySpec="р" />
|
||||
<!-- U+043B: "л" CYRILLIC SMALL LETTER EL -->
|
||||
<Key
|
||||
latin:keySpec="л" />
|
||||
</merge>
|
52
app/src/main/res/xml/rows_bulgarian_bekl.xml
Normal file
52
app/src/main/res/xml/rows_bulgarian_bekl.xml
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
**
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<merge
|
||||
xmlns:latin="http://schemas.android.com/apk/res-auto"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/key_styles_common" />
|
||||
<Row
|
||||
latin:keyWidth="9.091%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl1" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="9.091%p"
|
||||
>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl2" />
|
||||
</Row>
|
||||
<Row
|
||||
latin:keyWidth="8.711%p"
|
||||
>
|
||||
<Key
|
||||
latin:keyStyle="shiftKeyStyle"
|
||||
latin:keyWidth="10.8%p" />
|
||||
<include
|
||||
latin:keyboardLayout="@xml/rowkeys_bulgarian_bekl3" />
|
||||
<Key
|
||||
latin:keyStyle="deleteKeyStyle"
|
||||
latin:keyWidth="fillRight" />
|
||||
</Row>
|
||||
<include
|
||||
latin:keyboardLayout="@xml/row_qwerty4" />
|
||||
</merge>
|
Loading…
Add table
Reference in a new issue