*** empty log message ***
[m17n/m17n-lib-cs.git] / database.cs
index ce44154..5247bb5 100644 (file)
@@ -8,22 +8,17 @@ public class Test
 {
   public static void Main ()
   {
-    M17n.debug = true;
+    //M17n.debug = true;
     MDatabase.ApplicationDir = "/usr/local/share/m17n";
-    MDatabase.Tag tag = new MDatabase.Tag (MSymbol.Of ("input-method"),
-                                          MSymbol.t,
-                                          MSymbol.Of ("unicode"));
-    DirectoryInfo dirinfo = new DirectoryInfo ("/home/handa/.m17n.d");
+    MDatabase.Tag tag
+      = new MDatabase.Tag (MSymbol.Of ("standard"),
+                          MSymbol.Of ("script"),
+                          MSymbol.Of ("unicode"));
 
-    while (true)
-      {
-       Console.Write ("mdb> ");
-       string str = Console.ReadLine ();
-       if (str == null || str == "quit" || str == "exit")
-         break;
-       dirinfo.Refresh ();
-       Console.WriteLine (dirinfo.LastWriteTimeUtc
-                          + ":" + MDatabase.Find (tag));
-      }
+    foreach (string dirname in MDatabase.DirectoryList ())
+      Console.WriteLine (dirname);
+
+    MDatabase mdb = MDatabase.Find (tag);
+    Console.WriteLine (mdb.Load ());
   }
 }