Skip to content

Commit

Permalink
Add Belarusian language pack. AnySoftKeyboard#2363
Browse files Browse the repository at this point in the history
  • Loading branch information
Usievaład Kimajeŭ authored and Usievaład Kimajeŭ committed Aug 3, 2020
1 parent d7ec5c7 commit 9697866
Show file tree
Hide file tree
Showing 48 changed files with 365 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/languages/PACKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
1. <img src='arabic/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Arabic: [Source](arabic)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.arabic)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.arabic)
1. <img src='armenian2/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Armenian2: [Source](armenian2)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.armenian2)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.armenian2)
1. <img src='basque/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Basque: [Source](basque)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.basque)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.basque)
1. <img src='belarusian/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Belarusian: [Source](belarusian)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.belarusian)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.belarusian)
1. <img src='brazilian/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Brazilian: [Source](brazilian)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.brazilian)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.brazilian)
1. <img src='bulgarian/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Bulgarian: [Source](bulgarian)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.bulgarian)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.bulgarian)
1. <img src='catalan/apk/flag/flag.svg?sanitize=1' height='16'>&nbsp;Catalan: [Source](catalan)[Play Store](https://play.google.com/store/apps/details?id=com.anysoftkeyboard.languagepack.catalan)[Beta Channel](https://play.google.com/apps/testing/com.anysoftkeyboard.languagepack.catalan)
Expand Down
7 changes: 7 additions & 0 deletions addons/languages/belarusian/apk/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext.shouldBePublished = true

apply from: "$rootDir/addons/gradle/pack_apk.gradle"

dependencies {
implementation project(path: ':addons:languages:belarusian:pack')
}
5 changes: 5 additions & 0 deletions addons/languages/belarusian/apk/flag/flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions addons/languages/belarusian/apk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anysoftkeyboard.languagepack.belarusian">

<application android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/belarusian_app_name" />
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ask-belarusian@riseup.net
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://anysoftkeyboard.github.io
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
en-US
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Беларускія раскладка і слоўнік для клавіятуры AnySoftKeyboard.

Гэта пашырэнне да клавіятуры AnySoftKeyboard.
Спачатку ўсталюйце AnySoftKeyboard, а потым выберыце пажаданую раскладку ў раздзеле Налады → Клавіятуры.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Беларускі моўны пакет для AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Беларуская для AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Belarusian layouts and dictionary for AnySoftKeyboard keyboard app.

This is an expansion layouts pack for AnySoftKeyboard.
Install AnySoftKeyboard first, and then select the desired layout from AnySoftKeyboard's Settings → Keyboards menu.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Belarusian Language Pack for AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Belarusian for AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Простая кірылічная клавіятура
* Пашыраная кірылічная клавіятура
* Простая лацінская клавіятура
* Пашыраная лацінская клавіятура
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Simple cyrillic layout
* Extended cyrillic layout
* Simple latin layout
* Extended latin layout
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="belarusian_app_name">AnySoftKeyboard — Беларускі моўны пакет</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="belarusian_app_name">AnySoftKeyboard — Belarusian Language Pack</string>
</resources>
1 change: 1 addition & 0 deletions addons/languages/belarusian/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Language pack Belarusian
5 changes: 5 additions & 0 deletions addons/languages/belarusian/pack/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ext.status_icon_text = 'be'
ext.dictionaryInputPossibleCharacters = null
ext.dictionaryInputAdditionalInnerCharacters = null

apply from: "$rootDir/addons/gradle/language_pack_lib.gradle"
Binary file not shown.
31 changes: 31 additions & 0 deletions addons/languages/belarusian/pack/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anysoftkeyboard.languagepack.belarusian.pack">

<application>
<receiver
android:name="com.anysoftkeyboard.languagepack.belarusian.PackBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.menny.android.anysoftkeyboard.KEYBOARD" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
</intent-filter>
<intent-filter>
<action android:name="com.menny.android.anysoftkeyboard.DICTIONARY" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
</intent-filter>

<meta-data
android:name="com.menny.android.anysoftkeyboard.keyboards"
android:resource="@xml/belarusian_keyboards" />
<meta-data
android:name="com.menny.android.anysoftkeyboard.dictionaries"
android:resource="@xml/belarusian_dictionaries" />
</receiver>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.anysoftkeyboard.languagepack.belarusian;

import com.anysoftkeyboard.addon.PackBroadcastReceiverBase;

public class PackBroadcastReceiver extends PackBroadcastReceiverBase {}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions addons/languages/belarusian/pack/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<string name="belarusian_cyrillic_keyboard_name">Беларуская</string>
<string name="belarusian_cyrillic_keyboard_description">Простая кірылічная раскладка</string>

<string name="belarusian_latin_keyboard_name">Biełaruskaja</string>
<string name="belarusian_latin_keyboard_description">Prostaja łacinskaja raskładka</string>

<string name="belarusian_cyrillic_typo_keyboard_name">Кірыліца</string>
<string name="belarusian_cyrillic_typo_keyboard_description">Кірылічная раскладка з дадатковымі знакамі</string>

<string name="belarusian_latin_typo_keyboard_name">Łacinka</string>
<string name="belarusian_latin_typo_keyboard_description">Łacinskaja raskładka z dadatkovymi znakami</string>

<string name="belarusian_dictionary_name">Беларуская</string>
<string name="belarusian_dictionary_description">Беларуская/Biełaruskaja</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2008, 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.
*/
-->
<words>
<word src="гармоінк">гармонік</word>
<word src="пасрдны">пасрэдны</word>
<word src="рпа">пра</word>
<word src="парца">праца</word>
<word src="тольеі">толькі</word>
</words>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="10%p">
<Row android:keyWidth="8.29%p">
<Key android:codes="й" android:keyEdgeFlags="left"/>
<Key android:codes="ц"/>
<Key android:codes="у"/>
<Key android:codes="к"/>
<Key android:codes="е"/>
<Key android:codes="н"/>
<Key android:codes="г" android:popupCharacters="ґ"/>
<Key android:codes="ш"/>
<Key android:codes="ў"/>
<Key android:codes="з"/>
<Key android:codes="х"/>
<Key android:codes="" android:popupCharacters="'" android:keyEdgeFlags="right"/>
</Row>

<Row android:keyWidth="8.29%p">
<Key android:codes="ф" android:keyEdgeFlags="left"/>
<Key android:codes="ы"/>
<Key android:codes="в"/>
<Key android:codes="а"/>
<Key android:codes="п"/>
<Key android:codes="р"/>
<Key android:codes="о"/>
<Key android:codes="л"/>
<Key android:codes="д"/>
<Key android:codes="ж"/>
<Key android:codes="э"/>
<Key android:codes="ё" android:keyEdgeFlags="right"/>
</Row>

<Row android:keyWidth="9.09%p">
<!-- Shift -->
<Key android:codes="-1" android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/>
<Key android:codes="я"/>
<Key android:codes="ч"/>
<Key android:codes="с"/>
<Key android:codes="м"/>
<Key android:codes="і"/>
<Key android:codes="т"/>
<Key android:codes="ь"/>
<Key android:codes="б"/>
<Key android:codes="ю"/>
<!-- Backspace -->
<Key android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
</Row>
</Keyboard>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="10%p">
<Row android:keyWidth="8.29%p">
<Key android:codes="й" android:popupCharacters="1¹ĭj" android:keyEdgeFlags="left"/>
<Key android:codes="ц" android:popupCharacters="2²½"/>
<Key android:codes="у" android:popupCharacters="3³⅓⅔¥^"/>
<Key android:codes="к" android:popupCharacters="4¼¾"/>
<Key android:codes="е" android:popupCharacters="5є€"/>
<Key android:codes="н" android:popupCharacters="6́№#"/>
<Key android:codes="г" android:popupCharacters="ґ7"/>
<Key android:codes="ш" android:popupCharacters="8щ⅛⅜⅝⅞"/>
<Key android:codes="ў" android:popupCharacters=""/>
<Key android:codes="з" android:popupCharacters="0*"/>
<Key android:codes="х" android:popupCharacters="×·"/>
<Key android:codes="" android:popupCharacters="ъ'" android:keyEdgeFlags="right"/>
</Row>

<Row android:keyWidth="8.29%p">
<Key android:codes="ф" android:popupCharacters="" android:keyEdgeFlags="left"/>
<Key android:codes="ы" android:popupCharacters=""/>
<Key android:codes="в" android:popupCharacters=""/>
<Key android:codes="а" android:popupCharacters="\u0040"/> <!-- @ -->
<Key android:codes="п" android:popupCharacters="—–_+§%‰"/>
<Key android:codes="р" android:popupCharacters="-=≠≈®"/>
<Key android:codes="о" android:popupCharacters="°"/>
<Key android:codes="л" android:popupCharacters=""/>
<Key android:codes="д" android:popupCharacters="()[]{}"/>
<Key android:codes="ж" android:popupCharacters=""/>
<Key android:codes="э" android:popupCharacters=""/>
<Key android:codes="ё" android:popupCharacters="" android:keyEdgeFlags="right"/>
</Row>

<Row android:keyWidth="9.09%p">
<Key android:codes="-1" android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/>
<Key android:codes="я" android:popupCharacters=""/>
<Key android:codes="ч" android:popupCharacters=""/>
<Key android:codes="с" android:popupCharacters="↑↓←→↔↕©"/>
<Key android:codes="м" android:popupCharacters=""/>
<Key android:codes="і" android:popupCharacters="иї"/>
<Key android:codes="т" android:popupCharacters="&#x002F;&#x005C;&#x005C;&#x007C;"/> <!-- /\\| -->
<Key android:codes="ь" android:popupCharacters="…:;"/>
<Key android:codes="б" android:popupCharacters="«“&#x003C;&#x0022;‘„"/> <!-- <" -->
<Key android:codes="ю" android:popupCharacters="»”&#x003E;&#x0022;"/> <!-- >" -->
<Key android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
</Row>
</Keyboard>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<Dictionaries>
<Dictionary
autoTextResourceId="@xml/belarusian_autotext"
description="@string/belarusian_dictionary_description"
dictionaryResourceId="@array/belarusian_words_dict_array"
id="65297890-d52e-11ea-8b6e-0800200c9a66"
locale="be"
nameResId="@string/belarusian_dictionary_name"
type="binary_resource"
/>
</Dictionaries>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<Keyboards>
<Keyboard
index="1"
nameResId="@string/belarusian_cyrillic_keyboard_name"
description="@string/belarusian_cyrillic_keyboard_description"
layoutResId="@xml/belarusian_cyrillic"
iconResId="@drawable/ic_status_belarusian"
defaultDictionaryLocale="be"
id="67a614c6-8617-473d-8791-3f6891c94c83"
/>
<Keyboard
index="2"
nameResId="@string/belarusian_latin_keyboard_name"
description="@string/belarusian_latin_keyboard_description"
layoutResId="@xml/belarusian_latin"
iconResId="@drawable/ic_status_belarusian"
defaultDictionaryLocale="be"
id="d608ab0b-7d9a-46a8-87b1-cb0735799dcd"
/>
<Keyboard
index="3"
nameResId="@string/belarusian_cyrillic_typo_keyboard_name"
description="@string/belarusian_cyrillic_typo_keyboard_description"
layoutResId="@xml/belarusian_cyrillic_extended"
iconResId="@drawable/ic_status_belarusian"
defaultDictionaryLocale="be"
id="12a13106-9d1a-478d-99a8-2b7da45401c1"
/>
<Keyboard
index="4"
nameResId="@string/belarusian_latin_typo_keyboard_name"
description="@string/belarusian_latin_typo_keyboard_description"
layoutResId="@xml/belarusian_latin_extended"
iconResId="@drawable/ic_status_belarusian"
defaultDictionaryLocale="be"
id="af035dba-c06a-4c96-887a-fe457020731c"
/>
</Keyboards>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android" android:keyWidth="10%p">
<Row>
<Key android:codes="q" android:popupCharacters="" android:keyEdgeFlags="left"/>
<Key android:codes="w" android:popupCharacters=""/>
<Key android:codes="e" android:popupCharacters=""/>
<Key android:codes="r" android:popupCharacters=""/>
<Key android:codes="t" android:popupCharacters=""/>
<Key android:codes="y" android:popupCharacters=""/>
<Key android:codes="u" android:popupCharacters="ŭ"/>
<Key android:codes="i" android:popupCharacters=""/>
<Key android:codes="o" android:popupCharacters=""/>
<Key android:codes="p" android:popupCharacters="" android:keyEdgeFlags="right"/>
</Row>

<Row>
<Key android:codes="a" android:popupCharacters="" android:keyEdgeFlags="left" android:horizontalGap="5%p"/>
<Key android:codes="s" android:popupCharacters="śš"/>
<Key android:codes="d" android:popupCharacters=""/>
<Key android:codes="f" android:popupCharacters=""/>
<Key android:codes="g" android:popupCharacters=""/>
<Key android:codes="h" android:popupCharacters=""/>
<Key android:codes="j" android:popupCharacters=""/>
<Key android:codes="k" android:popupCharacters=""/>
<Key android:codes="l" android:popupCharacters="łĺ" android:keyEdgeFlags="right"/>
</Row>

<Row>
<!-- Shift -->
<Key android:codes="-1" android:keyWidth="15%p" android:isModifier="true" android:isSticky="true" android:keyEdgeFlags="left"/>
<Key android:codes="z" android:popupCharacters="źž"/>
<Key android:codes="x" android:popupCharacters=""/>
<Key android:codes="c" android:popupCharacters="ćč"/>
<Key android:codes="v" android:popupCharacters=""/>
<Key android:codes="b" android:popupCharacters=""/>
<Key android:codes="n" android:popupCharacters="ń"/>
<Key android:codes="m" android:popupCharacters=""/>
<!-- Backspace -->
<Key android:keyWidth="15%p" android:codes="-5" android:keyEdgeFlags="right" android:isRepeatable="true"/>
</Row>
</Keyboard>
Loading

0 comments on commit 9697866

Please sign in to comment.