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 <!-- The code point U+25CC for key label is needed because the font rendering system prior to
     22      API version 16 can't automatically render dotted circle for incomplete combining letter
     23      of Hindi. The files named res/xml/{key,keys}_nepali*.xml have this U+25CC hack, although the
     24      counterpart files named res/xml-v16/{key,keys}_nepali*.xml don't have this hack. -->
     25 <merge
     26     xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
     27 >
     28     <switch>
     29         <case
     30             latin:keyboardLayoutSetElement="alphabetManualShifted|alphabetShiftLocked|alphabetShiftLockShifted"
     31         >
     32             <Key
     33                 latin:keyLabel=","
     34                 latin:backgroundType="functional" />
     35         </case>
     36         <default>
     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_sign_virama" />
     42             <Key
     43                 latin:keyStyle="baseKeyDevanagariSignVirama"
     44                 latin:keyLabelFlags="hasPopupHint"
     45                 latin:moreKeys="!fixedColumnOrder!4,.,!text/more_keys_for_punctuation"
     46                 latin:backgroundType="functional" />
     47         </default>
     48     </switch>
     49 </merge>
     50