forked from GitHub/gf-core
tweaking Chi language codes to get both speech input and output in Android ; one fix in DictionaryChi
This commit is contained in:
@@ -14943,7 +14943,7 @@ lin grandee_N = mkN "贵族" ;
|
||||
lin grandeur_N = mkN "庄严" ;
|
||||
lin grandfather_N = mkN "爷爷" | mkN "祖父" "位" ;
|
||||
lin grandiose_A = mkA "雄伟" ;
|
||||
lin grandmother_N = mkN "爷爷" | mkN "祖母" ;
|
||||
lin grandmother_N = mkN "奶奶" | mkN "祖母" ;
|
||||
lin grandpa_N = mkN "外公" | mkN "外祖父" | mkN "爷爷" | mkN "祖父" ; -- open-multilingual-wordnet
|
||||
lin grandparent_N = mkN "祖父母" ;
|
||||
lin grandson_N = mkN "孙子" ;
|
||||
|
||||
@@ -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