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