Home | History | Annotate | Download | only in customizer
      1 /*
      2  * Copyright (C) 2014 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.inputmethod.keyboard.layout.customizer;
     18 
     19 import com.android.inputmethod.keyboard.layout.Nordic;
     20 import com.android.inputmethod.keyboard.layout.expected.ExpectedKeyboardBuilder;
     21 
     22 import java.util.Locale;
     23 
     24 public class UzbekCustomizer extends TurkicCustomizer {
     25     public UzbekCustomizer(final Locale locale) { super(locale); }
     26 
     27     protected void setUzbekKeys(final ExpectedKeyboardBuilder builder) {
     28         builder
     29                 // U+006F/U+02BB: "o" LATIN SMALL LETTER O/MODIFIER LETTER TURNED COMMA
     30                 .replaceKeyOfLabel(Nordic.ROW1_11, "o\u02BB")
     31                 // U+0067/U+02BB: "g" LATIN SMALL LETTER G/MODIFIER LETTER TURNED COMMA
     32                 .replaceKeyOfLabel(Nordic.ROW2_10, "g\u02BB")
     33                 // U+02BC: "" MODIFIER LETTER APOSTROPHE
     34                 .replaceKeyOfLabel(Nordic.ROW2_11, "\u02BC");
     35     }
     36 
     37     @Override
     38     public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) {
     39         setUzbekKeys(builder);
     40         return super.setAccentedLetters(builder);
     41     }
     42 }
     43