Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 **
      5 ** Copyright 2013, The Android Open Source Project
      6 **
      7 ** Licensed under the Apache License, Version 2.0 (the "License");
      8 ** you may not use this file except in compliance with the License.
      9 ** You may obtain a copy of the License at
     10 **
     11 **     http://www.apache.org/licenses/LICENSE-2.0
     12 **
     13 ** Unless required by applicable law or agreed to in writing, software
     14 ** distributed under the License is distributed on an "AS IS" BASIS,
     15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 ** See the License for the specific language governing permissions and
     17 ** limitations under the License.
     18 */
     19 -->
     20 
     21 <merge
     22     xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
     23 >
     24     <switch>
     25         <case
     26             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
     27         >
     28             <!-- Because the font rendering system prior to API version 16 can't automatically
     29                  render dotted circle for incomplete combining letter of some scripts, different
     30                  set of Key definitions are needed based on the API version. -->
     31             <include
     32                 latin:keyboardLayout="@xml/key_devanagari_sign_anusvara" />
     33             <!-- U+0919: "" DEVANAGARI LETTER NGA -->
     34             <Key
     35                 latin:keyLabel="&#x0919;"
     36                 latin:keyLabelFlags="fontNormal" />
     37             <!-- Because the font rendering system prior to API version 16 can't automatically
     38                  render dotted circle for incomplete combining letter of some scripts, different
     39                  set of Key definitions are needed based on the API version. -->
     40             <include
     41                 latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_ai" />
     42             <Key
     43                 latin:keyStyle="baseKeyDevanagariVowelSignAi" />
     44             <!-- U+0930/U+0941: "" DEVANAGARI LETTER RA/DEVANAGARI VOWEL SIGN U -->
     45             <Key
     46                 latin:keyLabel="&#x0930;&#x0941;"
     47                 latin:moreKeys="!"
     48                 latin:keyLabelFlags="fontNormal|followKeyLetterRatio" />
     49             <Key
     50                 latin:keyLabel="\?" />
     51         </case>
     52         <default>
     53             <!-- Because the font rendering system prior to API version 16 can't automatically
     54                  render dotted circle for incomplete combining letter of some scripts, different
     55                  set of Key definitions are needed based on the API version. -->
     56             <!-- U+093D: "" DEVANAGARI SIGN AVAGRAHA -->
     57             <include
     58                 latin:keyboardLayout="@xml/keystyle_devanagari_sign_visarga" />
     59             <Key
     60                 latin:keyStyle="baseKeyDevanagariSignVisarga"
     61                 latin:moreKeys="&#x093D;" />
     62             <!-- Because the font rendering system prior to API version 16 can't automatically
     63                  render dotted circle for incomplete combining letter of some scripts, different
     64                  set of Key definitions are needed based on the API version. -->
     65             <include
     66                 latin:keyboardLayout="@xml/keystyle_devanagari_vowel_sign_e" />
     67             <!-- Override more keys with empty definition -->
     68             <key-style
     69                 latin:styleName="moreKeysDevanagariVowelSignE" />
     70             <Key
     71                 latin:keyStyle="baseKeyDevanagariVowelSignE" />
     72             <!-- U+0964: "" DEVANAGARI DANDA -->
     73             <Key
     74                 latin:keyLabel="&#x0964;"
     75                 latin:keyLabelFlags="fontNormal" />
     76             <!-- U+0930: "" DEVANAGARI LETTER RA -->
     77             <Key
     78                 latin:keyLabel="&#x0930;"
     79                 latin:moreKeys="!"
     80                 latin:keyLabelFlags="fontNormal" />
     81             <!-- Because the font rendering system prior to API version 16 can't automatically
     82                  render dotted circle for incomplete combining letter of some scripts, different
     83                  set of Key definitions are needed based on the API version. -->
     84             <include
     85                 latin:keyboardLayout="@xml/keystyle_devanagari_sign_virama" />
     86             <Key
     87                 latin:keyStyle="baseKeyDevanagariSignVirama"
     88                 latin:moreKeys="\?" />
     89         </default>
     90     </switch>
     91 </merge>
     92