1
0
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:
aarne
2015-12-11 10:56:07 +00:00
parent d0fc643951
commit bfe49e5fe1
3 changed files with 4 additions and 3 deletions

View File

@@ -14943,7 +14943,7 @@ lin grandee_N = mkN "贵族" ;
lin grandeur_N = mkN "庄严" ; lin grandeur_N = mkN "庄严" ;
lin grandfather_N = mkN "爷爷" | mkN "祖父" "位" ; lin grandfather_N = mkN "爷爷" | mkN "祖父" "位" ;
lin grandiose_A = mkA "雄伟" ; 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 grandpa_N = mkN "外公" | mkN "外祖父" | mkN "爷爷" | mkN "祖父" ; -- open-multilingual-wordnet
lin grandparent_N = mkN "祖父母" ; lin grandparent_N = mkN "祖父母" ;
lin grandson_N = mkN "孙子" ; lin grandson_N = mkN "孙子" ;

View File

@@ -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")) { if (language.equals("cmn-Hans-CN")) {
language = "yue"; language = "zh-CN";
} }
Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'), Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'),

View File

@@ -29,6 +29,7 @@ public class Translator {
new Language("bg-BG", "Bulgarian", "AppBul", R.xml.cyrillic), new Language("bg-BG", "Bulgarian", "AppBul", R.xml.cyrillic),
new Language("ca-ES", "Catalan", "AppCat", R.xml.qwerty), new Language("ca-ES", "Catalan", "AppCat", R.xml.qwerty),
new Language("cmn-Hans-CN", "Chinese", "AppChi", 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("yue", "Chinese (Cantonese)", "AppChi", R.xml.qwerty),
// new Language("cmn-Hans-CN", "Chinese (Mandarin)", "AppChi", R.xml.qwerty), // new Language("cmn-Hans-CN", "Chinese (Mandarin)", "AppChi", R.xml.qwerty),
new Language("nl-NL", "Dutch", "AppDut", R.xml.qwerty), new Language("nl-NL", "Dutch", "AppDut", R.xml.qwerty),