mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
tweaking Chi language codes to get both speech input and output in Android ; one fix in DictionaryChi
This commit is contained in:
@@ -35,9 +35,9 @@ public class TTS {
|
||||
}
|
||||
*/
|
||||
|
||||
/* OR use separate entries for Cantonese and Mandarin */
|
||||
/* Google Chinese speech input has a nonstandard code. In output, yue works for Chi in Google, but SVOX uses the standard zh-CN */
|
||||
if (language.equals("cmn-Hans-CN")) {
|
||||
language = "yue";
|
||||
language = "zh-CN";
|
||||
}
|
||||
|
||||
Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'),
|
||||
|
||||
@@ -29,6 +29,7 @@ public class Translator {
|
||||
new Language("bg-BG", "Bulgarian", "AppBul", R.xml.cyrillic),
|
||||
new Language("ca-ES", "Catalan", "AppCat", R.xml.qwerty),
|
||||
new Language("cmn-Hans-CN", "Chinese", "AppChi", R.xml.qwerty),
|
||||
// new Language("zh-CN", "Chinese", "AppChi", R.xml.qwerty),
|
||||
// new Language("yue", "Chinese (Cantonese)", "AppChi", R.xml.qwerty),
|
||||
// new Language("cmn-Hans-CN", "Chinese (Mandarin)", "AppChi", R.xml.qwerty),
|
||||
new Language("nl-NL", "Dutch", "AppDut", R.xml.qwerty),
|
||||
|
||||
Reference in New Issue
Block a user