SKKDicの設定を分離。
1 parent aa5029e commit 98863ff2ef81e364009835c95fe36b5b42d56cf5
@tamra tamra authored on 13 Jul 2005
Showing 3 changed files
View
3
■■
honoka/plugins/honoka_plugin_def.h
 
#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
View
4
honoka/plugins/skkdicconversion.cpp
HonokaPluginRegister(SKKDicConversion);
 
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;
}
 
View
2
■■■
honoka/plugins/skkdicconversion.h
#include <scim_iconv.h>
#include <scim_attribute.h>
#include <convertor.h>
#include <skkdic.h>
 
#define HONOKA_SKKDIC_CONFIG_DICFILE "/IMEngine/Honoka/SKKDic/File"
 
using namespace std;
using namespace scim;