mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-03 21:30:12 +00:00
slight adjustments to kannada layout for #444
This commit is contained in:
parent
b872975189
commit
84713fb0f9
3 changed files with 16 additions and 12 deletions
|
@ -1,14 +1,14 @@
|
||||||
[popup_keys]
|
[popup_keys]
|
||||||
ೌ ಔ ೧ %
|
ೌ ಔ %
|
||||||
ೈ ಐ ೨ %
|
ೈ ಐ %
|
||||||
ಾ ಆ ೩ %
|
ಾ ಆ %
|
||||||
ೀ ಈ ೪ %
|
ೀ ಈ %
|
||||||
ೂ ಊ ೫ %
|
ೂ ಊ %
|
||||||
ಬ ಭ ೬ %
|
ಬ ಭ %
|
||||||
ಹ ಙ ೭ %
|
ಹ ಙ %
|
||||||
ಗ ಘ ೮ %
|
ಗ ಘ %
|
||||||
ದ ಧ ೯ %
|
ದ ಧ %
|
||||||
ಜ ಝ ೦ %
|
ಜ ಝ %
|
||||||
ಡ ಢ
|
ಡ ಢ
|
||||||
ೋ ಓ
|
ೋ ಓ
|
||||||
ೇ ಏ
|
ೇ ಏ
|
||||||
|
@ -32,3 +32,6 @@
|
||||||
|
|
||||||
[labels]
|
[labels]
|
||||||
alphabet: ಅಆಇ
|
alphabet: ಅಆಇ
|
||||||
|
|
||||||
|
[number_row]
|
||||||
|
೧ ೨ ೩ ೪ ೫ ೬ ೭ ೮ ೯ ೦
|
||||||
|
|
|
@ -824,7 +824,8 @@ abstract class KeyboardParser(private val params: KeyboardParams, private val co
|
||||||
else R.array.touch_position_correction_data_holo
|
else R.array.touch_position_correction_data_holo
|
||||||
val hasZwnjKey = params.mId.locale.language in listOf("fa", "ne", "kn", "te") // determine from language, user might have custom layout
|
val hasZwnjKey = params.mId.locale.language in listOf("fa", "ne", "kn", "te") // determine from language, user might have custom layout
|
||||||
// custom non-json layout for non-uppercase language should not have shift key
|
// custom non-json layout for non-uppercase language should not have shift key
|
||||||
val hasShiftKey = !params.mId.isAlphabetKeyboard || layout !in listOf("hindi_compact", "bengali", "arabic", "arabic_pc", "hebrew", "kannada", "malayalam", "marathi", "farsi", "tamil", "telugu")
|
val hasShiftKey = !params.mId.isAlphabetKeyboard
|
||||||
|
|| layout !in listOf("hindi_compact", "bengali", "arabic", "arabic_pc", "hebrew", "kannada", "kannada_extended","malayalam", "marathi", "farsi", "tamil", "telugu")
|
||||||
val numbersOnTopRow = layout !in listOf("pcqwerty", "lao", "thai", "korean_sebeolsik_390", "korean_sebeolsik_final")
|
val numbersOnTopRow = layout !in listOf("pcqwerty", "lao", "thai", "korean_sebeolsik_390", "korean_sebeolsik_final")
|
||||||
return LayoutInfos(labelFlags, enableProximityCharsCorrection, allowRedundantPopupKeys, touchPositionCorrectionData, hasZwnjKey, hasShiftKey, numbersOnTopRow)
|
return LayoutInfos(labelFlags, enableProximityCharsCorrection, allowRedundantPopupKeys, touchPositionCorrectionData, hasZwnjKey, hasShiftKey, numbersOnTopRow)
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ public final class PreferencesSettingsFragment extends SubScreenFragment {
|
||||||
final Preference pref = findPreference(Settings.PREF_LOCALIZED_NUMBER_ROW);
|
final Preference pref = findPreference(Settings.PREF_LOCALIZED_NUMBER_ROW);
|
||||||
if (pref == null) return;
|
if (pref == null) return;
|
||||||
// locales that have a number row defined (not good to have it hardcoded, but reading a bunch of files may be noticeably slow)
|
// locales that have a number row defined (not good to have it hardcoded, but reading a bunch of files may be noticeably slow)
|
||||||
final String[] numberRowLocales = new String[] { "ar", "bn", "fa", "gu", "hi", "mr", "ne", "ur" };
|
final String[] numberRowLocales = new String[] { "ar", "bn", "fa", "gu", "hi", "kn", "mr", "ne", "ur" };
|
||||||
for (final InputMethodSubtype subtype : SubtypeSettingsKt.getEnabledSubtypes(getSharedPreferences(), true)) {
|
for (final InputMethodSubtype subtype : SubtypeSettingsKt.getEnabledSubtypes(getSharedPreferences(), true)) {
|
||||||
if (ArraysKt.any(numberRowLocales, (l) -> l.equals(SubtypeUtilsKt.locale(subtype).getLanguage()))) {
|
if (ArraysKt.any(numberRowLocales, (l) -> l.equals(SubtypeUtilsKt.locale(subtype).getLanguage()))) {
|
||||||
pref.setVisible(true);
|
pref.setVisible(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue