aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-08-08 19:16:20 +0900
committersatok <satok@google.com>2011-08-08 19:21:24 +0900
commitc2b6a35e651d005cae6d7d1bd13f1df3d988314b (patch)
tree90e2bba86b7b1119741dded2a6fc4195fb674c6a
parent8f79ffcff5c3af452dde276cd04ad4ba3f767bcb (diff)
downloadlatinime-c2b6a35e651d005cae6d7d1bd13f1df3d988314b.tar.gz
latinime-c2b6a35e651d005cae6d7d1bd13f1df3d988314b.tar.xz
latinime-c2b6a35e651d005cae6d7d1bd13f1df3d988314b.zip
Add the spell checker configuration xml
Change-Id: I05fe12dbdef49cb41919023fad6b9df13dc5bd82
-rw-r--r--java/AndroidManifest.xml8
-rw-r--r--java/res/xml/method.xml16
-rw-r--r--java/res/xml/spellchecker.xml33
3 files changed, 49 insertions, 8 deletions
diff --git a/java/AndroidManifest.xml b/java/AndroidManifest.xml
index cb0a9a2e1..d680f1894 100644
--- a/java/AndroidManifest.xml
+++ b/java/AndroidManifest.xml
@@ -21,6 +21,14 @@
<meta-data android:name="android.view.im" android:resource="@xml/method" />
</service>
+ <service android:name=".spellcheck.AndroidSpellCheckerService"
+ android:label="@string/spell_checker_service_name"
+ android:permission="android.permission.BIND_TEXT_SERVICE">
+ <intent-filter>
+ <action android:name="android.service.textservice.SpellCheckerService" />
+ </intent-filter>
+ <meta-data android:name="android.view.textservice.scs" android:resource="@xml/spellchecker" />
+ </service>
<activity android:name="Settings" android:label="@string/english_ime_settings">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
diff --git a/java/res/xml/method.xml b/java/res/xml/method.xml
index 7a4e7ea35..fbbc7fbce 100644
--- a/java/res/xml/method.xml
+++ b/java/res/xml/method.xml
@@ -3,16 +3,16 @@
/**
* Copyright (c) 2008, The Android Open Source Project
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
diff --git a/java/res/xml/spellchecker.xml b/java/res/xml/spellchecker.xml
new file mode 100644
index 000000000..ce09264ce
--- /dev/null
+++ b/java/res/xml/spellchecker.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2011, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<!-- The attributes in this XML file provide the configuration information -->
+<!-- for the spell checker -->
+
+<spell-checker xmlns:android="http://schemas.android.com/apk/res/android"
+ android:label="@string/spell_checker_service_name">
+ <subtype
+ android:label="@string/subtype_en_US"
+ android:subtypeLocale="en_US"
+ />
+ <subtype
+ android:label="@string/subtype_en_GB"
+ android:subtypeLocale="en_GB"
+ />
+</spell-checker>