a2ad1837e7568b2aeb1f04fa813541e80586d264
[m17n/m17n-lib-cs.git] / database.cs
1 using System;
2 using System.Collections.Generic;
3 using System.IO;
4 using M17N;
5 using M17N.Core;
6
7 public class Test
8 {
9   public static void Main ()
10   {
11     M17n.debug = true;
12     MDatabase.ApplicationDir = "/usr/local/share/m17n";
13     MDatabase.Tag tag = new MDatabase.Tag (MSymbol.Of ("input-method"),
14                                            MSymbol.t,
15                                            MSymbol.Of ("unicode"));
16
17     while (true)
18       {
19         Console.Write ("mdb> ");
20         string str = Console.ReadLine ();
21         if (str == null || str == "quit" || str == "exit")
22           break;
23         Console.WriteLine (MDatabase.Find (tag));
24       }
25   }
26 }