*** empty log message ***
[m17n/m17n-lib-cs.git] / input.cs
index be619f6..e51dd32 100644 (file)
--- a/input.cs
+++ b/input.cs
@@ -10,13 +10,15 @@ using Xex = System.Xml.Expression.Xexpression;
 
 public class Test
 {
-  public static void Main()
+  public static void Main(string[] args)
   {
     //M17n.debug = true;
+    Xex.debug_level = 4;
     MDatabase.ApplicationDir = "/usr/local/share/m17n";
     MInputMethod im = MInputMethod.Find ("vi", "telex");
     MInputMethod.Context ic = new MInputMethod.Context (im);
-    ic.Filter (new MInputMethod.Key ('a'));
-
+    MText str = args[0];
+    for (int i = 0; i < str.Length; i++)
+      ic.Filter (new MInputMethod.Key (str[i]));
   }
 }