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
17package com.android.inputmethod.keyboard.layout;
18
19import android.os.Build;
20
21/**
22 * This class offers label strings of Devanagari letters that need the dotted circle to draw
23 * its glyph.
24 */
25class DevanagariLetterConstants {
26    private static final boolean NEEDS_DOTTED_CIRCLE =
27            Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN;
28    // U+25CC: "◌" DOTTED CIRCLE
29    private static final String DOTTED_CIRCLE = NEEDS_DOTTED_CIRCLE ? "\u25CC" : "";
30
31    // U+0901: "ँ" DEVANAGARI SIGN CANDRABINDU
32    static final String SIGN_CANDRABINDU = DOTTED_CIRCLE + "\u0901";
33    // U+0902: "ं" DEVANAGARI SIGN ANUSVARA
34    static final String SIGN_ANUSVARA = DOTTED_CIRCLE + "\u0902";
35    // U+0903: "ः" DEVANAGARI SIGN VISARGA
36    static final String SIGN_VISARGA = DOTTED_CIRCLE + "\u0903";
37    // U+093C: "़" DEVANAGARI SIGN NUKTA
38    static final String SIGN_NUKTA = DOTTED_CIRCLE + "\u093C";
39    // U+093D: "ऽ" DEVANAGARI SIGN AVAGRAHA
40    static final String SIGN_AVAGRAHA = DOTTED_CIRCLE + "\u093D";
41    // U+093E: "ा" DEVANAGARI VOWEL SIGN AA
42    static final String VOWEL_SIGN_AA = DOTTED_CIRCLE + "\u093E";
43    // U+093F: "ि" DEVANAGARI VOWEL SIGN I
44    static final String VOWEL_SIGN_I = DOTTED_CIRCLE + "\u093F";
45    // U+0940: "ी" DEVANAGARI VOWEL SIGN II
46    static final String VOWEL_SIGN_II = DOTTED_CIRCLE + "\u0940";
47    // U+0941: "ु" DEVANAGARI VOWEL SIGN U
48    static final String VOWEL_SIGN_U = DOTTED_CIRCLE + "\u0941";
49    // U+0942: "ू" DEVANAGARI VOWEL SIGN UU
50    static final String VOWEL_SIGN_UU = DOTTED_CIRCLE + "\u0942";
51    // U+0943: "ृ" DEVANAGARI VOWEL SIGN VOCALIC R
52    static final String VOWEL_SIGN_VOCALIC_R = DOTTED_CIRCLE + "\u0943";
53    // U+0944: "ॄ" DEVANAGARI VOWEL SIGN VOCALIC RR
54    static final String VOWEL_SIGN_VOCALIC_RR = DOTTED_CIRCLE + "\u0944";
55    // U+0945: "ॅ" DEVANAGARI VOWEL SIGN CANDRA E
56    static final String VOWEL_SIGN_CANDRA_E = DOTTED_CIRCLE + "\u0945";
57    // U+0947: "े" DEVANAGARI VOWEL SIGN E
58    static final String VOWEL_SIGN_E = DOTTED_CIRCLE + "\u0947";
59    // U+0948: "ै" DEVANAGARI VOWEL SIGN AI
60    static final String VOWEL_SIGN_AI = DOTTED_CIRCLE + "\u0948";
61    // U+0949: "ॉ" DEVANAGARI VOWEL SIGN CANDRA O
62    static final String VOWEL_SIGN_CANDRA_O = DOTTED_CIRCLE + "\u0949";
63    // U+094A: "ॊ" DEVANAGARI VOWEL SIGN SHORT O
64    static final String VOWEL_SIGN_SHORT_O = DOTTED_CIRCLE + "\u094A";
65    // U+094B: "ो" DEVANAGARI VOWEL SIGN O
66    static final String VOWEL_SIGN_O = DOTTED_CIRCLE + "\u094B";
67    // U+094C: "ौ" DEVANAGARI VOWEL SIGN AU
68    static final String VOWEL_SIGN_AU = DOTTED_CIRCLE + "\u094C";
69    // U+094D: "्" DEVANAGARI SIGN VIRAMA
70    static final String SIGN_VIRAMA = DOTTED_CIRCLE + "\u094D";
71    // U+0970: "॰" DEVANAGARI ABBREVIATION SIGN
72    static final String ABBREVIATION_SIGN = DOTTED_CIRCLE + "\u0970";
73    // U+097D: "ॽ" DEVANAGARI LETTER GLOTTAL STOP
74    static final String LETTER_GLOTTAL_STOP = DOTTED_CIRCLE + "\u097D";
75}
76