To check if a language is supported or not. #73

Open
wants to merge 3 commits into
from

Projects

None yet

2 participants

@arushidogra
Contributor

No description provided.

@jishnu7 jishnu7 commented on the diff Aug 30, 2016
java/src/org.smc.inputmethod/indic/LatinIME.java
StatsUtils.onCreate(mSettings.getCurrent());
+
+ final Map<String,String> Mapchar = new HashMap<String,String>();
+ final InputMethodInfo myImi = mRichImm.getInputMethodInfoOfThisIme();
+ final int count = myImi.getSubtypeCount();
+ for (int i = 0; i < count; i++) {
+ final InputMethodSubtype subtype = myImi.getSubtypeAt(i);
+ final String layoutName = SubtypeLocaleUtils.getKeyboardLayoutSetName(subtype);
+ }
+ //Default
+ Mapchar.put("DEFAULT","a");
@jishnu7
jishnu7 Aug 30, 2016 Member

can we put these values in an xml file?

@jishnu7 jishnu7 commented on the diff Aug 30, 2016
java/src/org.smc.inputmethod/indic/LatinIME.java
+ Mapchar.put("Malayalam","\\u0D67");
+ //Burmese
+ Mapchar.put("Burmese","\\u1042");
+ //Nepali
+ Mapchar.put("Nepali","\\u0967");
+ //Marathi
+ Mapchar.put("Marathi","\\u0967");
+ //Oriya
+ Mapchar.put("Oriya","\\u0B67");
+ //Punjabi
+ Mapchar.put("Punjabi","\\u0A67");
+ //Tamil
+ Mapchar.put("Tamil","\\u0BE7");
+ //Telugu
+ Mapchar.put("Telugu","\\u0C67");
+ String warn = "Languages might not be supported by phone:\n";
@jishnu7
jishnu7 Aug 30, 2016 Member

you should use strings file to save this.

@jishnu7 jishnu7 commented on the diff Aug 30, 2016
java/src/org.smc.inputmethod/indic/LatinIME.java
StatsUtils.onCreate(mSettings.getCurrent());
+
+ final Map<String,String> Mapchar = new HashMap<String,String>();
@jishnu7
jishnu7 Aug 30, 2016 Member

can this entire section you added be a separate function?

@jishnu7 jishnu7 commented on the diff Aug 30, 2016
java/src/org.smc.inputmethod/indic/LatinIME.java
@@ -911,7 +1007,7 @@ private void onStartInputViewInternal(final EditorInfo editorInfo, final boolean
if (isDifferentTextField) {
mSubtypeSwitcher.updateParametersOnStartInputView();
}
-
+
@jishnu7
jishnu7 Aug 30, 2016 Member

please remove trailing spaces. and unnecessary changes below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment