-
- im.Open ();
- Console.WriteLine (im);
-#else
- MText desc, title;
- Xex.Variable[] vars;
- MInputMethod.Command[] cmds;
- MInputMethod[] ims = MInputMethod.List ();
- foreach (MInputMethod im in ims)
- {
-
- Console.Write ("(<{0}, {1}, {2}>", im.Language, im.Name, im.SubName);
- if (im.Info (out desc, out title, out vars, out cmds))
- Console.Write (" {0}, {1}, {2}, {3}", desc, title, vars, cmds);
- if (! im.Open ())
- Console.Write (" open fail");
- Console.WriteLine (")");
- }
-#endif
+ MInputMethod.Context ic = new MInputMethod.Context (im);
+ MText str = args[0];
+ for (int i = 0; i < str.Length; i++)
+ ic.Filter (new MInputMethod.Key (str[i]));