*** empty log message ***
[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     MDatabase.Dump ();
18
19     foreach (DirectoryInfo dirinfo in MDatabase.DirectoryList ())
20       Console.WriteLine (dirinfo.FullName);
21
22     while (true)
23       {
24         Console.Write ("mdb> ");
25         string str = Console.ReadLine ();
26         if (str == null || str == "quit" || str == "exit")
27           break;
28         Console.WriteLine (MDatabase.Find (tag));
29       }
30   }
31 }