-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Belarusan Cyrillic and Latin layouts #70
Merged
Merged
Changes from 8 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ea7bc15
Create keys_letters_belarusian_cyrl.xml
Belarusan f61eb2b
Update Context.kt
Belarusan 95f5e7b
Update Constants.kt
Belarusan 40949e6
Update SimpleKeyboardIME.kt
Belarusan c0c28c2
Merge pull request #2 from Belarusan/patch-2
Belarusan 6982305
Merge pull request #3 from Belarusan/patch-3
Belarusan 97caa25
Merge pull request #4 from Belarusan/patch-4
Belarusan c6e9e42
Update Constants.kt
Belarusan 26cc42b
Updated Belarusan layout
Belarusan 01763d9
Create keys_letters_belarusian_latn.xml
Belarusan 9024c4d
Update Context.kt
Belarusan b7b412f
Update Constants.kt
Belarusan b701be5
Update SimpleKeyboardIME.kt
Belarusan 6816cdf
Merge branch 'main' into patch-1
naveensingh 8189486
Merge branch 'main' into patch-1
naveensingh 8b32527
Add missing import statement
naveensingh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -439,6 +439,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared | |||||
private fun getKeyboardLayoutXML(): Int { | ||||||
return when (baseContext.config.keyboardLanguage) { | ||||||
LANGUAGE_ARABIC -> R.xml.keys_letters_arabic | ||||||
LANGUAGE_BELARUSIAN_CYRL -> R.xml.keys_belarusian_cyrl | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
LANGUAGE_BENGALI -> R.xml.keys_letters_bengali | ||||||
LANGUAGE_BULGARIAN -> R.xml.keys_letters_bulgarian | ||||||
LANGUAGE_CHUVASH -> R.xml.keys_letters_chuvash | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
<Row app:isNumbersRow="true"> | ||
<Key | ||
app:keyEdgeFlags="left" | ||
app:keyLabel="1" | ||
app:topSmallNumber="1" /> | ||
<Key | ||
app:keyLabel="2" | ||
app:topSmallNumber="2" /> | ||
<Key | ||
app:keyLabel="3" | ||
app:topSmallNumber="3" /> | ||
<Key | ||
app:keyLabel="4" | ||
app:topSmallNumber="4" /> | ||
<Key | ||
app:keyLabel="5" | ||
app:topSmallNumber="5" /> | ||
<Key | ||
app:keyLabel="6" | ||
app:topSmallNumber="6" /> | ||
<Key | ||
app:keyLabel="7" | ||
app:topSmallNumber="7" /> | ||
<Key | ||
app:keyLabel="8" | ||
app:topSmallNumber="8" /> | ||
<Key | ||
app:keyLabel="9" | ||
app:topSmallNumber="9" /> | ||
<Key | ||
app:keyEdgeFlags="right" | ||
app:keyLabel="0" | ||
app:topSmallNumber="0" /> | ||
</Row> | ||
<Row app:keyWidth="8.33%p"> | ||
<Key | ||
app:keyEdgeFlags="left" | ||
app:keyLabel="й" /> | ||
<Key | ||
app:keyLabel="ц" | ||
app:popupCharacters="1" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="1" /> | ||
<Key | ||
app:keyLabel="у" | ||
app:popupCharacters="2" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="2" /> | ||
<Key | ||
app:keyLabel="к" | ||
app:popupCharacters="3" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="3" /> | ||
<Key | ||
app:keyLabel="е" | ||
app:popupCharacters="4є" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="4" /> | ||
<Key | ||
app:keyLabel="н" | ||
app:popupCharacters="5" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="5" /> | ||
<Key | ||
app:keyLabel="г" | ||
app:popupCharacters="6ґ" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="6" /> | ||
<Key | ||
app:keyLabel="ш" | ||
app:popupCharacters="7щ" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="7" /> | ||
<Key | ||
app:keyLabel="ў" | ||
app:popupCharacters="8" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="8" /> | ||
<Key | ||
app:keyLabel="з" | ||
app:popupCharacters="9" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="9" /> | ||
<Key | ||
app:keyLabel="х" | ||
app:popupCharacters="0" | ||
app:popupKeyboard="@xml/keyboard_popup_template" | ||
app:topSmallNumber="0" /> | ||
<Key | ||
app:keyEdgeFlags="right" | ||
app:keyLabel="’" | ||
app:popupCharacters="'" /> | ||
</Row> | ||
<Row app:keyWidth="8.33%p"> | ||
<Key | ||
app:keyEdgeFlags="left" | ||
app:keyLabel="ф" /> | ||
<Key app:keyLabel="ы" /> | ||
<Key app:keyLabel="в" /> | ||
<Key app:keyLabel="а" /> | ||
<Key app:keyLabel="п" /> | ||
<Key app:keyLabel="р" /> | ||
<Key app:keyLabel="о" /> | ||
<Key app:keyLabel="л" /> | ||
<Key app:keyLabel="д" /> | ||
<Key app:keyLabel="ж" /> | ||
<Key app:keyLabel="э" /> | ||
<Key | ||
app:keyEdgeFlags="right" | ||
app:keyLabel="ё" /> | ||
</Row> | ||
<Row> | ||
<Key | ||
app:code="-1" | ||
app:keyEdgeFlags="left" | ||
app:keyIcon="@drawable/ic_caps_outline_vector" | ||
app:keyWidth="10%p" /> | ||
<Key | ||
app:keyLabel="я" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="ч" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="с" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="м" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="і" | ||
app:popupCharacters="иї" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="т" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="ь" | ||
app:popupCharacters="ъ" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="б" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:keyLabel="ю" | ||
app:keyWidth="8%p" /> | ||
<Key | ||
app:code="-5" | ||
app:isRepeatable="true" | ||
app:keyEdgeFlags="right" | ||
app:keyIcon="@drawable/ic_clear_vector" | ||
app:keyWidth="10%p" /> | ||
</Row> | ||
<Row> | ||
<Key | ||
app:code="-2" | ||
app:keyEdgeFlags="left" | ||
app:keyLabel="\?123" | ||
app:keyWidth="15%p" /> | ||
<Key | ||
app:keyLabel="," | ||
app:keyWidth="10%p" /> | ||
<Key | ||
app:code="-6" | ||
app:keyEdgeFlags="left" | ||
app:keyIcon="@drawable/ic_emoji_emotions_outline_vector" | ||
app:keyWidth="10%p" | ||
app:secondaryKeyIcon="@drawable/ic_language_outlined" /> | ||
<Key | ||
app:code="32" | ||
app:isRepeatable="true" | ||
app:keyWidth="40%p" /> | ||
<Key | ||
app:keyLabel="." | ||
app:keyWidth="10%p" | ||
app:popupCharacters=",?!;:…" | ||
app:popupKeyboard="@xml/keyboard_popup_template" /> | ||
<Key | ||
app:code="-4" | ||
app:keyEdgeFlags="right" | ||
app:keyIcon="@drawable/ic_enter_vector" | ||
app:keyWidth="15%p" /> | ||
</Row> | ||
</Keyboard> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string doesn't exist. You should add it in Commons in https://github.com/FossifyOrg/Commons/blob/master/commons/src/main/res/values/strings.xml. When creating a pull request in Commons, please mention that it's for this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: FossifyOrg/Commons#60
Thank you for your instructions!