foreach (MDatabase mdb in kv.Value)
Console.WriteLine (mdb);
- Console.WriteLine ("[NDITCT]");
+ Console.WriteLine ("[NDICT]");
foreach (KeyValuePair<Tag, List<MDatabase>> kv in ndict)
foreach (MDatabase mdb in kv.Value)
Console.WriteLine (mdb);
return false;
}
for (int i = 1; i < 4; i++)
- if (DBDirs[i] != null)
+ if (DBDirs[i] != null && DBDirs[i].Dirname != null)
{
string filename = Path.Combine (DBDirs[i].Dirname, Info.Filename);
if (File.Exists (filename))
public static DirectoryInfo[] DirectoryList ()
{
- List<DirectoryInfo> dirs = new List<DirectoryInfo>;
+ List<DirectoryInfo> dirs = new List<DirectoryInfo> ();
for (int i = 1; i < 4; i++)
if (DBDirs[i].Dirname != null)
{
DBDirs[i].Refresh ();
- if (DBDirs[i].DirInfo)
+ if (DBDirs[i].DirInfo != null)
dirs.Add (DBDirs[i].DirInfo);
}
return dirs.ToArray ();
{
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"));
+ MDatabase.Dump ();
+
+ foreach (DirectoryInfo dirinfo in MDatabase.DirectoryList ())
+ Console.WriteLine (dirinfo.FullName);
+
while (true)
{
Console.Write ("mdb> ");