*** empty log message ***
[m17n/m17n-lib-cs.git] / input.cs
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using System.Xml;
5 using System.Xml.Expression;
6 using M17N;
7 using M17N.Core;
8 using M17N.Input;
9 using Xex = System.Xml.Expression.Xexpression;
10
11 public class Test
12 {
13   public static void Main(string[] args)
14   {
15     //M17n.debug = true;
16     Xex.debug_level = 10;
17     MDatabase.ApplicationDir = "/usr/local/share/m17n";
18     MInputMethod im = MInputMethod.Find ("vi", "telex");
19     MInputMethod.Context ic = new MInputMethod.Context (im);
20     MText str = args[0];
21     for (int i = 0; i < str.Length; i++)
22       ic.Filter (new MInputMethod.Key (str[i]));
23   }
24 }