aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-05-08 14:53:56 +0900
committerJean Chalard <jchalard@google.com>2014-05-12 15:58:51 +0900
commitbe99616afa2243fe48dc406d0a3f442cb05453b4 (patch)
tree07e88e670553253aa924da1bfbae3c0d4ae2277c /tools
parentc41d261b7e1e626aaa4e333c9c4cc73ec13cb68a (diff)
downloadlatinime-be99616afa2243fe48dc406d0a3f442cb05453b4.tar.gz
latinime-be99616afa2243fe48dc406d0a3f442cb05453b4.tar.xz
latinime-be99616afa2243fe48dc406d0a3f442cb05453b4.zip
Create the path for specifying combining rules in the subtype
Also add the skeleton of the combining rules for Myanmar reordering as a pilot. Bug: 13945569 Change-Id: Iabeb6838f45f1efff482143595ce5b48543e0c43
Diffstat (limited to 'tools')
-rw-r--r--tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java b/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java
index b68df1ce7..47f781e62 100644
--- a/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java
+++ b/tools/dicttool/compat/com/android/inputmethod/event/CombinerChain.java
@@ -20,6 +20,13 @@ import com.android.inputmethod.latin.utils.CollectionUtils;
import java.util.ArrayList;
+/**
+ * Compatibility class that stands in for the combiner chain in LatinIME.
+ *
+ * This is not used by dicttool, it's just needed by the dependency chain.
+ */
+// TODO: there should not be a dependency to this in dicttool, so there
+// should be a sensible way to separate them cleanly.
public class CombinerChain {
private StringBuilder mComposingWord = new StringBuilder();
public CombinerChain(final Combiner... combinerList) {}
@@ -35,4 +42,9 @@ public class CombinerChain {
public void reset() {
mComposingWord.setLength(0);
}
+
+ public static Combiner[] createCombiners(final String spec) {
+ // Dicttool never uses a combiner at all, so we just return a zero-sized array.
+ return new Combiner[0];
+ }
}