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
18package com.android.inputmethod.keyboard.layout.customizer;
19
20import com.android.inputmethod.keyboard.layout.expected.ExpectedKey;
21import com.android.inputmethod.latin.common.Constants;
22
23import java.util.Locale;
24
25public class SouthSlavicLayoutCustomizer extends LayoutCustomizer {
26    public SouthSlavicLayoutCustomizer(final Locale locale) {
27        super(locale);
28    }
29
30    @Override
31    public final ExpectedKey getAlphabetKey() { return SOUTH_SLAVIC_ALPHABET_KEY; }
32
33    @Override
34    public ExpectedKey[] getRightShiftKeys(final boolean isPhone) {
35        return isPhone ? EMPTY_KEYS : EXCLAMATION_AND_QUESTION_MARKS;
36    }
37
38    // U+0410: "А" CYRILLIC CAPITAL LETTER A
39    // U+0411: "Б" CYRILLIC CAPITAL LETTER BE
40    // U+0412: "В" CYRILLIC CAPITAL LETTER VE
41    private static final ExpectedKey SOUTH_SLAVIC_ALPHABET_KEY = key(
42            "\u0410\u0411\u0412", Constants.CODE_SWITCH_ALPHA_SYMBOL);
43}
44