summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2015-04-13 09:45:05 +0000
committeraarne <aarne@chalmers.se>2015-04-13 09:45:05 +0000
commit9aeffa15c948d835c2ad613bdf4b64f840ee4581 (patch)
tree2df197e8b174f40834c2aa4ba12dea51a2336efe
parent71de9a26ef5489ab98c85f5e584acdf99d1f4e3c (diff)
updated app help file ; added backslash to ? in Thai keyboard xml to make it compile
-rw-r--r--src/ui/android/assets/help_content.html12
-rw-r--r--src/ui/android/res/xml/thai_page2.xml2
-rw-r--r--src/ui/android/src/org/grammaticalframework/ui/android/TTS.java6
3 files changed, 12 insertions, 8 deletions
diff --git a/src/ui/android/assets/help_content.html b/src/ui/android/assets/help_content.html
index 2caf36545..c41260a3c 100644
--- a/src/ui/android/assets/help_content.html
+++ b/src/ui/android/assets/help_content.html
@@ -2,7 +2,7 @@
<body>
</p>
<b>GF Offline Translator</b>:
-text and speech translation for 12 languages with
+text and speech translation for 14 languages with
quality control
</p>
<p>
@@ -88,11 +88,15 @@ The following table gives a rough idea of what to expect:
<tr> <th>German</th> <td bgcolor=pink></td> <td bgcolor=yellow></td><td bgcolor=pink></td> <td bgcolor=palegreen></td></tr>
<tr> <th>Hindi</th> <td bgcolor=pink></td> <td bgcolor=red></td> <td bgcolor=yellow></td> <td bgcolor=yellow>in only</td> </tr>
<tr> <th>Italian</th> <td bgcolor=pink></td> <td bgcolor=pink></td><td bgcolor=pink></td> <td bgcolor=palegreen></td></tr>
+<tr> <th>Japanese</th> <td bgcolor=pink></td> <td bgcolor=pink></td><td bgcolor=yellow></td> <td bgcolor=palegreen></td></tr>
<tr> <th>Spanish</th> <td bgcolor=pink></td> <td bgcolor=yellow></td><td bgcolor=pink></td> <td bgcolor=palegreen></td></tr>
<tr> <th>Swedish</th> <td bgcolor=yellow></td> <td bgcolor=yellow></td> <td bgcolor=palegreen></td> <td bgcolor=yellow>in only</td></tr>
+<tr> <th>Thai</th> <td bgcolor=pink></td> <td bgcolor=pink></td><td bgcolor=yellow></td> <td bgcolor=palegreen></td></tr>
</table>
</center>
-*<b>Chinese</b> uses Mandarin for input and Cantonese for output.
+*<b>Japanese</b> and <b>Thai</b> input must be separated to words.
+<br>
+**<b>Chinese</b> uses Mandarin for input and Cantonese for output.
</p>
<p>
The speech input and output use Google's voice services. Their status
@@ -117,13 +121,13 @@ To activate it go to Settings > Language &amp; input.
</p>
<p>
-This app works <b>completely off-line</b>, without
+The translation works <b>completely off-line</b>, without
internet connection, when doing text-based translation.
Even speech works off-line in some languages,
but being on-line may give you better
speech input and output.
You can also install third-party off-line speech engines, such as
-SVOX.
+<a href="https://play.google.com/store/apps/developer?id=SVOX+Mobile+Voices&hl=en">SVOX</a>.
Consult the voice/language settings on your phone to find the optimal
speech engines, and restart the app after changing the settings.
</p>
diff --git a/src/ui/android/res/xml/thai_page2.xml b/src/ui/android/res/xml/thai_page2.xml
index 5fba40132..031807bac 100644
--- a/src/ui/android/res/xml/thai_page2.xml
+++ b/src/ui/android/res/xml/thai_page2.xml
@@ -58,7 +58,7 @@
<Key android:codes="3630" android:keyLabel="ฮ"/>
<Key android:codes="3642" android:keyLabel="ฺ"/>
<Key android:codes="3660" android:keyLabel="์"/>
- <Key android:codes="63" android:keyLabel="?"/>
+ <Key android:codes="63" android:keyLabel="\?"/>
<Key android:codes="3602" android:keyLabel="ฒ"/>
<Key android:codes="3628" android:keyLabel="ฬ"/>
<Key android:codes="-5" android:keyIcon="@drawable/sym_keyboard_delete"
diff --git a/src/ui/android/src/org/grammaticalframework/ui/android/TTS.java b/src/ui/android/src/org/grammaticalframework/ui/android/TTS.java
index d52315fec..7babb797a 100644
--- a/src/ui/android/src/org/grammaticalframework/ui/android/TTS.java
+++ b/src/ui/android/src/org/grammaticalframework/ui/android/TTS.java
@@ -36,9 +36,9 @@ public class TTS {
*/
/* OR use separate entries for Cantonese and Mandarin */
- if (language.equals("cmn-Hans-CN")) {
- language = "yue";
- }
+ // if (language.equals("cmn-Hans-CN")) {
+ // language = "yue";
+ // }
Locale locale = LocaleUtils.parseJavaLocale(language.replace('-', '_'),
Locale.getDefault());