{
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 ());
}
}