Add Hindi Phonetic layout (#1278)

This commit is contained in:
npnpatidar 2025-01-13 01:30:47 +05:30 committed by GitHub
parent bf37a7f947
commit de5968d04a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 568 additions and 1 deletions

View file

@ -0,0 +1,554 @@
[
[
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ठ"
},
"default": {
"label": "ट"
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ढ"
},
"default": {
"label": "ड",
"popup": {
"main": {
"label": "ड़"
},
"relevant": [
{
"label": "ढ़"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ै"
},
"default": {
"label": "े",
"popup": {
"main": {
"label": "ए"
},
"relevant": [
{
"label": "ऍ"
},
{
"label": "ऐ"
},
{
"code": 2374,
"label": " ॆ"
},
{
"code": 2389,
"label": " ॕ"
},
{
"code": 2382,
"label": " ॎ"
},
{
"label": "ऎ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ृ"
},
"default": {
"label": "र",
"popup": {
"main": {
"label": "ऋ"
},
"relevant": [
{
"label": "ॠ"
},
{
"label": "ॄ"
},
{
"label": "ऱ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "थ"
},
"default": {
"label": "त",
"popup": {
"main": {
"label": "त्र"
}
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "य़"
},
"default": {
"label": "य",
"popup": {
"main": {
"label": "ॺ"
}
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ू"
},
"default": {
"label": "ु",
"popup": {
"main": {
"label": "उ"
},
"relevant": [
{
"label": "ऊ"
},
{
"label": "ॷ"
},
{
"code": 2390,
"label": " ॖ"
},
{
"label": "ॶ"
},
{
"code": 2391,
"label": " ॗ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ी"
},
"default": {
"label": "ि",
"popup": {
"main": {
"label": "इ"
},
"relevant": [
{
"label": "ई"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ौ"
},
"default": {
"label": "ो",
"popup": {
"main": {
"label": "ओ"
},
"relevant": [
{
"label": "औ"
},
{
"label": "ऑ"
},
{
"code": 2383,
"label": " ॏ"
},
{
"label": "ॵ"
},
{
"label": "ॐ"
},
{
"label": "ॉ"
},
{
"label": "ॳ"
},
{
"label": "ॴ"
},
{
"code": 2362,
"label": " ऺ"
},
{
"code": 2363,
"label": " ऻ"
},
{
"label": "ऒ"
},
{
"code": 2378,
"label": " ॊ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "फ़"
},
"default": {
"label": "प"
}
}
],
[
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "अ"
},
"default": {
"label": "ा",
"popup": {
"main": {
"label": "आ"
},
"relevant": [
{
"label": "ॅ"
},
{
"label": "ॲ"
},
{
"label": "ऄ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "श"
},
"default": {
"label": "स",
"popup": {
"main": {
"label": "श्र"
},
"relevant": [
{
"label": "ष"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ध"
},
"default": {
"label": "द",
"popup": {
"main": {
"label": "ड़"
},
"relevant": [
{
"label": "ॾ"
},
{
"label": "ढ़"
},
{
"label": "ॸ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"code": 2364,
"label": " ़"
},
"default": {
"label": "फ",
"popup": {
"main": {
"label": "फ़"
}
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "घ"
},
"default": {
"label": "ग",
"popup": {
"main": {
"label": "ग़"
},
"relevant": [
{
"label": "ॻ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": ""
},
"default": {
"label": "ह"
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "झ"
},
"default": {
"label": "ज",
"popup": {
"main": {
"label": "ज़"
},
"relevant": [
{
"label": "ॼ"
},
{
"label": "ॹ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ख"
},
"default": {
"label": "क",
"popup": {
"main": {
"label": "क़"
},
"relevant": [
{
"label": "ख़"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ळ"
},
"default": {
"label": "ल",
"popup": {
"relevant": [
{
"label": "ऴ"
},
{
"label": "ॣ"
},
{
"label": "ऌ"
},
{
"label": "ॡ"
},
{
"label": "ॢ"
}
]
}
}
}
],
[
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ज़",
"labelFlags": 128
},
"default": {
"label": "ज्ञ",
"labelFlags": 128
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ष"
},
"default": {
"label": "क्ष",
"labelFlags": 128
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "छ"
},
"default": {
"label": "च",
"popup": {
"relevant": [
{
"$": "auto_text_key",
"code": 2385,
"label": " ॑"
},
{
"$": "auto_text_key",
"code": 2386,
"label": " ॒"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "्"
},
"default": {
"label": "व",
"popup": {
"relevant": [
{
"$": "auto_text_key",
"code": 2387,
"label": " ॓"
},
{
"$": "auto_text_key",
"code": 2388,
"label": " ॔"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "भ"
},
"default": {
"label": "ब",
"popup": {
"relevant": [
{
"label": "ॿ"
},
{
"label": "ऽ"
},
{
"label": "॰"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ण"
},
"default": {
"label": "न",
"popup": {
"main": {
"label": "ङ"
},
"relevant": [
{
"label": "ऩ"
},
{
"label": "ञ"
}
]
}
}
},
{
"$": "shift_state_selector",
"manualOrLocked": {
"label": "ं"
},
"default": {
"label": "म",
"popup": {
"main": {
"label": "ँ"
},
"relevant": [
{
"label": "ऀ"
}
]
}
}
}
]
]

View file

@ -37,7 +37,7 @@
ल ऌ ॡ
य य़
॰ ऽ
punctuation !autoColumnOrder!9 \, . ? ! # ) ( / ; ' @ : - " + \% &
punctuation !autoColumnOrder!9 \, . ॥ ? ! !icon/zwnj_key| !icon/zwj_key| # @ ( ) / ; : - + \%
औ ौ
ऐ ै
आ ा

View file

@ -362,6 +362,9 @@
<!-- Description for "LANGUAGE_NAME" (Compact) keyboard subtype [CHAR LIMIT=25]
(Compact) can be an abbreviation to fit in the CHAR LIMIT. -->
<string name="subtype_generic_compact"><xliff:g id="LANGUAGE_NAME" example="Hindi">%s</xliff:g> (Compact)</string>
<!-- Description for "LANGUAGE_NAME" (Phonetic) keyboard subtype [CHAR LIMIT=25]
(Phonetic) can be an abbreviation to fit in the CHAR LIMIT. -->
<string name="subtype_generic_phonetic"><xliff:g id="LANGUAGE_NAME" example="Hindi">%s</xliff:g> (Phonetic)</string>
<!-- Description for "LANGUAGE_NAME" (Sebeolsik 390) keyboard subtype [CHAR LIMIT=25]
(Sebeolsik 390) can be an abbreviation to fit in the CHAR LIMIT. -->
<string name="subtype_generic_sebeolsik_390"><xliff:g id="LANGUAGE_NAME" example="Korean">%s</xliff:g> (Sebeolsik 390)</string>

View file

@ -48,6 +48,7 @@
gu: Gujarati/gujarati
hi: Hindi/hindi
hi: Hindi/hindi_compact
hi: Hindi/hindi_phonetic
hi_ZZ: Hinglish/qwerty # This is a preliminary keyboard layout.
hr: Croatian/qwertz
hu: Hungarian/qwertz
@ -471,6 +472,15 @@
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="KeyboardLayoutSet=hindi_compact,NoShiftKey,EmojiCapable"
android:isAsciiCapable="false"
/>
<subtype android:icon="@drawable/ic_ime_switcher"
android:label="@string/subtype_generic_phonetic"
android:subtypeId="0xe49c89a2"
android:imeSubtypeLocale="hi"
android:languageTag="hi"
android:imeSubtypeMode="keyboard"
android:imeSubtypeExtraValue="KeyboardLayoutSet=hindi_phonetic,EmojiCapable"
android:isAsciiCapable="false"
/>
<!-- This Hinglish keyboard is a preliminary layout.
This isn't based on the final specification.