Skip to content

Commit

Permalink
Add urdu phonetic layout (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shareef101 authored Aug 18, 2023
1 parent c3a5dc6 commit 491e72f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
5 changes: 5 additions & 0 deletions check_layout.output
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,8 @@ Layout doesn't define some important keys, missing: f11_placeholder, f12_placeho
2 warnings
# res/xml/latn_qwertz.xml
0 warnings
# res/xml/urdu_phonetic_ur.xml
Duplicate keys:
Layout includes some ASCII punctuation but not all, missing: <, >, ?, `, |, ~
Layout doesn't define some important keys, missing: f11_placeholder, f12_placeholder
3 warnings
3 changes: 3 additions & 0 deletions res/values/layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<item>latn_qwertz_fr_ch</item>
<item>latn_qwertz_hu</item>
<item>latn_qwertz_sk</item>
<item>urdu_phonetic_ur</item>
<item>custom</item>
</string-array>
<string-array name="pref_layout_entries">
Expand Down Expand Up @@ -85,6 +86,7 @@
<item>QWERTZ (Swiss French)</item>
<item>QWERTZ (Magyar)</item>
<item>QWERTZ (Slovak)</item>
<item>Urdu Phonetic</item>
<item>@string/pref_layout_e_custom</item>
</string-array>
<integer-array name="layout_ids">
Expand Down Expand Up @@ -128,6 +130,7 @@
<item>@xml/latn_qwertz_fr_ch</item>
<item>@xml/latn_qwertz_hu</item>
<item>@xml/latn_qwertz_sk</item>
<item>@xml/urdu_phonetic_ur</item>
<item>-1</item>
</integer-array>
</resources>
37 changes: 37 additions & 0 deletions res/xml/urdu_phonetic_ur.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<keyboard name="Urdu Phonetic" script="urdu">
<row>
<key key0="ق" key3=" " key4="esc" key7="1"/>
<key key0="و" key2="ؤ" key3="\@" key7="2"/>
<key key0="ع" key1="!" key3="\#" key7="3"/>
<key key0="ر" key2="ڑ" key3="$" key7="4"/>
<key key0="ت" key2="ٹ" key3="%" key7="5"/>
<key key0="ے" key3="^" key7="6"/>
<key key0="ئ" key2="ء" key3="&amp;" key7="7"/>
<key key0="ی" key3="*" key7="8"/>
<key key0="ہ" key1="'" key2="&quot;" key3="(" key4=")" key7="9" key8="ۃ"/>
<key key0="پ" key1="ٰ" key2="0" key3="؟" key5="ٓ" key7="ٗ" key8="ٖ"/>
</row>
<row>
<key width="1.1" key0="ا" key1="tab" key2="آ" key4="أ"/>
<key width="1.1" key0="س" key2="ص"/>
<key width="1.1" key0="د" key2="ڈ" key4=" "/>
<key width="1.1" key0="ف" key2="پھ"/>
<key width="1.15" key0="گ" key1="-" key2="غ" key3="_" key4="گھ"/>
<key width="1.1" key0="ھ" key1="=" key2="ح" key3="+"/>
<key width="1.1" key0="ج" key1="}" key2="ض" key3="{" key4="جھ"/>
<key width="1.1" key0="ک" key1="]" key2="خ" key3="[" key4="کھ"/>
<key width="1.15" key0="ل" key1="َ" key3="." key5="ْ" key7="ُ" key8="ِ"/>
</row>
<row>
<key width="1.5" key0="shift" key2="loc capslock"/>
<key key0="ز" key2="ذ"/>
<key key0="ش" key2="ژ"/>
<key key0="چ" key2="ث" key3="۔" key4="چھ"/>
<key key0="ط" key2="ظ" key3=","/>
<key key0="ب" key2="بھ" key3="/" key4="\\"/>
<key key0="ن" key2="ں" key3=";" key4=":"/>
<key key0="م" key5="ّ" key6="ً" key7="ٌ" key8="ٍ"/>
<key width="1.5" key0="backspace" key2="delete"/>
</row>
</keyboard>

0 comments on commit 491e72f

Please sign in to comment.