diff --git a/honoka/plugins/honoka_plugin_def.h b/honoka/plugins/honoka_plugin_def.h index 34aad95..0511e64 100644 --- a/honoka/plugins/honoka_plugin_def.h +++ b/honoka/plugins/honoka_plugin_def.h @@ -59,5 +59,8 @@ #define HONOKA_CONFIG_CANNA_DICHOMEDIRPATH "/IMEngine/Honoka/Canna/DicHomeDirPath" #define HONOKA_DEFAULT_CANNA_DICHOMEDIRPATH "" +// SKKDic +#define HONOKA_CONFIG_SKKDIC_DICFILE "/IMEngine/Honoka/SKKDic/File" +#define HONOKA_DEFAULT_SKKDIC_DICFILE "" #endif diff --git a/honoka/plugins/skkdicconversion.cpp b/honoka/plugins/skkdicconversion.cpp index ebfba63..8568efe 100644 --- a/honoka/plugins/skkdicconversion.cpp +++ b/honoka/plugins/skkdicconversion.cpp @@ -43,8 +43,8 @@ SKKDicConversion::SKKDicConversion(ConfigPointer cfg) : Convertor(cfg) { - String file = cfg->read(String(HONOKA_SKKDIC_CONFIG_DICFILE), - String("")); + String file = cfg->read(String(HONOKA_CONFIG_SKKDIC_DICFILE), + String(HONOKA_DEFAULT_SKKDIC_DICFILE)); dic = new SKKDic(file); pos = 0; } diff --git a/honoka/plugins/skkdicconversion.h b/honoka/plugins/skkdicconversion.h index 70cd6bf..c45531c 100644 --- a/honoka/plugins/skkdicconversion.h +++ b/honoka/plugins/skkdicconversion.h @@ -32,8 +32,6 @@ #include #include -#define HONOKA_SKKDIC_CONFIG_DICFILE "/IMEngine/Honoka/SKKDic/File" - using namespace std; using namespace scim;