diff --git a/honoka/plugins/Makefile.am b/honoka/plugins/Makefile.am index 31eb990..86fae2a 100644 --- a/honoka/plugins/Makefile.am +++ b/honoka/plugins/Makefile.am @@ -26,9 +26,11 @@ -DHONOKA_ICON_FILE=\"@SCIM_ICONDIR@/honoka.png\" \ -DHONOKA_PLUGINDIR=\"@SCIM_MODULEDIR@/honoka\" -noinst_HEADERS = wnnproto.h romkan.h wnnconversion.h kanainput.h nicolainput.h \ - anthyplugin.h anthyconversion.h anthyprediction.h skkdic.h skkdicconversion.h wnnplugin.h wnnprediction.h \ - honoka_plugin_def.h simpleprediction.h cannaconversion.h primeprediction.h +noinst_HEADERS = wnnproto.h romkan.h wnnconversion.h kanainput.h \ + nicolainput.h anthyplugin.h anthyconversion.h anthyprediction.h skkdic.h \ + skkdicconversion.h wnnplugin.h wnnprediction.h honoka_plugin_def.h simpleprediction.h \ + cannaconversion.h primeprediction.h asciiplugin.h wordsdic.h wordsprediction.h \ + asciiinput.h moduledir = @SCIM_MODULEDIR@/IMEngine @@ -46,7 +48,7 @@ endif plugindir = @SCIM_MODULEDIR@/honoka -plugin_LTLIBRARIES = $(ANTHY_PLUGIN) $(WNN_PLUGIN) $(CANNA_PLUGIN) plugin-skkdic.la plugin-romkan.la plugin-kanainput.la plugin-simpleprediction.la plugin-prime.la plugin-nicola.la +plugin_LTLIBRARIES = $(ANTHY_PLUGIN) $(WNN_PLUGIN) $(CANNA_PLUGIN) plugin-skkdic.la plugin-romkan.la plugin-kanainput.la plugin-simpleprediction.la plugin-prime.la plugin-nicola.la plugin-ascii.la plugin_anthy_la_SOURCES = anthyplugin.cpp anthyconversion.cpp anthyprediction.cpp plugin_anthy_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@ @@ -102,4 +104,10 @@ plugin_canna_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@ @CANNA_LIBS@ plugin_canna_la_LIBADD = $(top_builddir)/libhonoka/libhonoka_plugin.la +plugin_ascii_la_SOURCES = asciiplugin.cpp wordsdic.cpp wordsprediction.cpp \ + asciiinput.cpp +plugin_ascii_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@ +plugin_ascii_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@ +plugin_ascii_la_LDFLAGS = -avoid-version -module -rpath $(plugindir) @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@ +plugin_ascii_la_LIBADD = $(top_builddir)/libhonoka/libhonoka_plugin.la diff --git a/honoka/plugins/asciiinput.cpp b/honoka/plugins/asciiinput.cpp new file mode 100644 index 0000000..ec5a0a8 --- /dev/null +++ b/honoka/plugins/asciiinput.cpp @@ -0,0 +1,111 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "asciiinput.h" + +#ifdef HAVE_CONFIG_H + #include +#endif + +#ifdef HAVE_GETTEXT + #include + #define _(String) dgettext(GETTEXT_PACKAGE,String) + #define N_(String) (String) +#else + #define _(String) (String) + #define N_(String) (String) + #define bindtextdomain(Package,Directory) + #define textdomain(domain) + #define bind_textdomain_codeset(domain,codeset) +#endif + +AsciiInput::AsciiInput(ConfigPointer cfg) : PreEditor(cfg) +{ +} + + +AsciiInput::~AsciiInput() +{ +} + +/*! + \fn AsciiInput::getModeName() + */ +String AsciiInput::getModeName() +{ + return String(_("Aa")); +} + +/*! + \fn AsciiInput::getName() + */ +String AsciiInput::getName() +{ + return String("AsciiInput"); +} + +/*! + \fn AsciiInput::getPropertyName() + */ +String AsciiInput::getPropertyName() +{ + return String(_("AsciiInput")); +} + + +/*! + \fn AsciiInput::inputEvent(const KeyEvent &key) + */ +bool AsciiInput::inputEvent(const KeyEvent &key) +{ + // ���äƤ����٤���Ρ� + if ((key.code == SCIM_KEY_Shift_L) || + (key.code == SCIM_KEY_Shift_R) || + (key.code == SCIM_KEY_Control_L) || + (key.code == SCIM_KEY_Control_R) || + (key.code == SCIM_KEY_Alt_L) || + (key.code == SCIM_KEY_Alt_R) || + (key.code == SCIM_KEY_Super_L) || + (key.code == SCIM_KEY_Super_R) || + (key.code == SCIM_KEY_Hyper_L) || + (key.code == SCIM_KEY_Hyper_R)) return true; + + return false; +} + + + +/*! + \fn AsciiInput::keyEventHook(const KeyEvent &key) + */ +bool AsciiInput::keyEventHook(const KeyEvent &key) +{ + if (key.is_key_release()) return false; + if (isprint(key.get_ascii_code()) && (!key.is_alt_down()) && (!key.is_control_down())) { + String c; + c += key.get_ascii_code(); + text = text.substr(0,pos) + utf8_mbstowcs(c) + text.substr(pos); + pos ++; + return true; + } + return false; +} + + diff --git a/honoka/plugins/asciiinput.h b/honoka/plugins/asciiinput.h new file mode 100644 index 0000000..58ec23d --- /dev/null +++ b/honoka/plugins/asciiinput.h @@ -0,0 +1,52 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef ASCIIINPUT_H +#define ASCIIINPUT_H + +#define Uses_SCIM_ICONV +#define Uses_SCIM_CONFIG_BASE +#include +#include +#include +#include +#include "preeditor.h" + +using namespace std; +using namespace scim; + +/** + @author TAM (Teppei Tamra) +*/ +namespace Honoka { +class AsciiInput : public PreEditor { +public: + AsciiInput(ConfigPointer cfg); + + ~AsciiInput(); + virtual bool inputEvent(const KeyEvent &key); + virtual String getName(); + virtual String getModeName(); + virtual String getPropertyName(); + virtual bool keyEventHook(const KeyEvent &key); + +}; +} +#endif diff --git a/honoka/plugins/asciiplugin.cpp b/honoka/plugins/asciiplugin.cpp new file mode 100644 index 0000000..ca5f4b9 --- /dev/null +++ b/honoka/plugins/asciiplugin.cpp @@ -0,0 +1,121 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "asciiplugin.h" + +#ifdef HAVE_CONFIG_H + #include +#endif + + +#ifdef HAVE_GETTEXT + #include + #define _(String) dgettext(GETTEXT_PACKAGE,String) + #define N_(String) (String) +#else + #define _(String) (String) + #define N_(String) (String) + #define bindtextdomain(Package,Directory) + #define textdomain(domain) + #define bind_textdomain_codeset(domain,codeset) +#endif + +HonokaPluginRegister(AsciiPlugin); +HonokaPluginSetup(AsciiPlugin); + +HonokaSetupCorePage *AsciiPlugin::setup() +{ + HonokaSetupPage *page = new HonokaSetupPage(_("Ascii-plugin"),"",""); + page->append(new HonokaSetupFileItem( + _("Words _file: "), + HONOKA_CONFIG_WORDSPREDICTION_FILE, + _("input the path of Words file."), + HONOKA_DEFAULT_WORDSPREDICTION_FILE + )); + + HonokaSetupPage *sc = new HonokaSetupPage(_("shortcut keys: "),"",""); + sc->append(new HonokaSetupKeyItem( + _("Ascii Input: "), + String(HONOKA_CONFIG_KEY_PREEDITOR_PREFIX) + String("/AsciiInput"), + "", + "" + )); + sc->append(new HonokaSetupKeyItem( + _("Words Prediction: "), + String(HONOKA_CONFIG_KEY_PREDICTOR_PREFIX) + String("/WordsPrediction"), + "", + "" + )); + page->append(sc); + + return page; +}; + +AsciiPlugin::AsciiPlugin(ConfigPointer cfg) : HonokaMultiplePluginBase(cfg) +{ + predictor = new WordsPrediction(cfg); + preeditor = new AsciiInput(cfg); +} + + +AsciiPlugin::~AsciiPlugin() +{ + delete predictor; + delete preeditor; +} + +/*! + \fn AsciiPlugin::getPluginInstanceAt(int p) + */ +HonokaPluginBase * AsciiPlugin::getPluginInstanceAt(int p) +{ + switch(p) { + case 0 : { + return predictor; + break; + } + case 1: { + return preeditor; + break; + } + default: { + return 0; + } + } + return 0; +} + + +/*! + \fn AsciiPlugin::getPluginCount() + */ +int AsciiPlugin::getPluginCount() +{ + return 2; +} + +/*! + \fn AsciiPlugin::getName() + */ +String AsciiPlugin::getName() +{ + return String("AsciiPlugin"); +} + diff --git a/honoka/plugins/asciiplugin.h b/honoka/plugins/asciiplugin.h new file mode 100644 index 0000000..b9fd82b --- /dev/null +++ b/honoka/plugins/asciiplugin.h @@ -0,0 +1,65 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef ASCIIPLUGIN_H +#define ASCIIPLUGIN_H + +#include +#include +#include +#include +#include + +#include +#include + +#include +#include + +#define HONOKA_CONFIG_WORDSPREDICTION_FILE "/IMEngine/Honoka/WordsPrediction/WordsFile" +#define HONOKA_DEFAULT_WORDSPREDICTION_FILE "/usr/share/dict/words" + +using namespace std; +using namespace scim; + + +/** +@author TAM (Teppei Tamra) +*/ +namespace Honoka { + +class AsciiPlugin; + +class AsciiPlugin : public HonokaMultiplePluginBase { +public: + AsciiPlugin(ConfigPointer cfg); + + ~AsciiPlugin(); + virtual HonokaPluginBase * getPluginInstanceAt(int p); + virtual int getPluginCount(); + virtual String getName(); + static HonokaSetupCorePage *setup(); + +protected: + WordsPrediction *predictor; + AsciiInput *preeditor; +}; +} +#endif diff --git a/honoka/plugins/wordsdic.cpp b/honoka/plugins/wordsdic.cpp new file mode 100644 index 0000000..e7cdcbf --- /dev/null +++ b/honoka/plugins/wordsdic.cpp @@ -0,0 +1,84 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "wordsdic.h" +using namespace Honoka; + +WordsDic::WordsDic(const string &filename) +{ + fd = open(filename.c_str(),O_RDONLY); + if (fd == -1) return; + mmapsize = lseek(fd,0,SEEK_END); + if (mmapsize == -1) { + close(fd); + fd = -1; + return; + } + void *ptr = mmap(0,mmapsize,PROT_READ,MAP_PRIVATE,fd,0); + if (ptr == MAP_FAILED) { + close(fd); + fd = -1; + return; + } + mmapptr = (char *)ptr; + return; +} + + +WordsDic::~WordsDic() +{ + if (fd != -1) { + munmap(mmapptr,mmapsize); + close(fd); + } +} + + + + +/*! + \fn Honoka::WordsDic::find(const string &word) + */ +vector Honoka::WordsDic::find(const string &word) +{ + vector res; + if (fd == -1) return res; + if (word.length() > 255) return res; + if (fd == -1) return res; + char w[256]; + for(unsigned int i = 0;i < word.length();i ++) w[i] = (char)tolower(word[i]); + w[word.length()] = 0; + char *p = mmapptr; + while(p < mmapptr + mmapsize) { + char b[256]; + for(unsigned int i = 0;i < word.length();i ++) b[i] = (char)tolower(p[i]); + if (strncmp(w,b,word.length()) == 0) { + string s; + for(unsigned int i = 0;p[i] != '\n';i ++) { + if (p[i] == 0) break; + s += p[i]; + } + res.push_back(s); + } + while(*p != '\n') p ++; + p ++; + } + return res; +} diff --git a/honoka/plugins/wordsdic.h b/honoka/plugins/wordsdic.h new file mode 100644 index 0000000..12df5c6 --- /dev/null +++ b/honoka/plugins/wordsdic.h @@ -0,0 +1,53 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef WORDSDIC_H +#define WORDSDIC_H + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +using namespace std; +/** + @author TAM (Teppei Tamra) +*/ +namespace Honoka { +class WordsDic{ +public: + WordsDic(const string &filename); + + ~WordsDic(); + vector find(const string &word); + +protected: + int fd; + char *mmapptr; + off_t mmapsize; +}; +} +#endif diff --git a/honoka/plugins/wordsprediction.cpp b/honoka/plugins/wordsprediction.cpp new file mode 100644 index 0000000..8c4bf8b --- /dev/null +++ b/honoka/plugins/wordsprediction.cpp @@ -0,0 +1,128 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "wordsprediction.h" + +#include + +#ifdef HAVE_CONFIG_H + #include +#endif + +#ifdef HAVE_GETTEXT + #include + #define _(String) dgettext(GETTEXT_PACKAGE,String) + #define N_(String) (String) +#else + #define _(String) (String) + #define N_(String) (String) + #define bindtextdomain(Package,Directory) + #define textdomain(domain) + #define bind_textdomain_codeset(domain,codeset) +#endif + +WordsPrediction::WordsPrediction(ConfigPointer cfg) : Predictor(cfg) +{ + String file = cfg->read(HONOKA_CONFIG_WORDSPREDICTION_FILE,String(HONOKA_DEFAULT_WORDSPREDICTION_FILE)); + dic = new WordsDic(file); +} + + +WordsPrediction::~WordsPrediction() +{ + delete dic; +} + +/*! + \fn WordsPrediction::getPredictionList(const WideString &str) + */ +ResultList WordsPrediction::getPredictionList(const WideString &str) +{ + ResultList l; + WideString word,prewords; + for(unsigned int i = str.length();i > 0;i --) { + if (isalnum(utf8_wcstombs(str).c_str()[i - 1])) + word = str[i - 1] + word; + else break; + } + if (!word.length()) return l; + prewords = str.substr(0,str.length() - word.length()); + vector res = dic->find(utf8_wcstombs(word).c_str()); + l.Title = utf8_mbstowcs(String(_("lookup result"))); + l.kType = PREDICTION; + for(vector::iterator it = res.begin();it != res.end();it ++) { + l.kouho.push_back(ResultEntry(prewords + utf8_mbstowcs(*it),utf8_mbstowcs(*it))); + } + return l; +} + + +/*! + \fn WordsPrediction::disconnect() + */ +void WordsPrediction::disconnect() +{ + return; +} + + +/*! + \fn WordsPrediction::connect() + */ +bool WordsPrediction::connect() +{ + return true; +} + + +/*! + \fn WordsPrediction::isConnected() + */ +bool WordsPrediction::isConnected() +{ + return true; +} + + +/*! + \fn WordsPrediction::getPropertyName() + */ +String WordsPrediction::getPropertyName() +{ + return String(_("WordsPrediction")); +} + +/*! + \fn WordsPrediction::getName() + */ +String WordsPrediction::getName() +{ + return String("WordsPrediction"); +} + +/*! + \fn WordsPrediction::update(const WideString str,const WideString yomi) + */ +void WordsPrediction::update(const WideString str,const WideString yomi) +{ + return; +} + + diff --git a/honoka/plugins/wordsprediction.h b/honoka/plugins/wordsprediction.h new file mode 100644 index 0000000..cb8a066 --- /dev/null +++ b/honoka/plugins/wordsprediction.h @@ -0,0 +1,53 @@ +/*************************************************************************** + * Copyright (C) 2005 by TAM(Teppei Tamra) * + * tam-t@par.odn.ne.jp * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef WORDSPREDICTION_H +#define WORDSPREDICTION_H + +#define Uses_SCIM_CONFIG_BASE + +#include +#include +#include +#include +#include + +/** + @author TAM (Teppei Tamra) +*/ +namespace Honoka { +class WordsPrediction : public Predictor { +public: + WordsPrediction(ConfigPointer cfg); + + ~WordsPrediction(); + virtual ResultList getPredictionList(const WideString &str); + virtual void disconnect(); + virtual bool connect(); + virtual bool isConnected(); + virtual String getPropertyName(); + virtual String getName(); + virtual void update(const WideString str,const WideString yomi); + +protected: + WordsDic *dic; +}; +} +#endif diff --git a/honoka/po/POTFILES.in b/honoka/po/POTFILES.in index 79c8eee..b6e25bc 100644 --- a/honoka/po/POTFILES.in +++ b/honoka/po/POTFILES.in @@ -33,6 +33,12 @@ plugins/skkdicconversion.cpp plugins/cannaconversion.h plugins/cannaconversion.cpp +plugins/asciiplugin.h +plugins/asciiplugin.cpp +plugins/asciiinput.h +plugins/asciiinput.cpp +plugins/wordsprediction.h +plugins/wordsprediction.cpp libhonoka/preeditor.h libhonoka/preeditor.cpp libhonoka/convertor.h diff --git a/honoka/po/honoka.pot b/honoka/po/honoka.pot index 739ec7f..69ea61a 100644 --- a/honoka/po/honoka.pot +++ b/honoka/po/honoka.pot @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-01-11 00:22+0900\n" +"POT-Creation-Date: 2006-01-11 09:50+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -70,12 +70,12 @@ msgid "REN" msgstr "" -#: src/honoka_imengine.cpp:1508 src/honoka_imengine.cpp:1547 -#: src/honoka_imengine.cpp:1559 +#: src/honoka_imengine.cpp:1509 src/honoka_imengine.cpp:1548 +#: src/honoka_imengine.cpp:1560 msgid "could not connect to server." msgstr "" -#: src/honoka_imengine.cpp:1517 +#: src/honoka_imengine.cpp:1518 msgid "The error was received from Converter. " msgstr "" @@ -415,6 +415,7 @@ #: plugins/wnnplugin.cpp:78 plugins/anthyplugin.cpp:46 #: plugins/simpleprediction.cpp:53 plugins/primeprediction.cpp:71 #: plugins/skkdicconversion.cpp:53 plugins/cannaconversion.cpp:57 +#: plugins/asciiplugin.cpp:53 msgid "shortcut keys: " msgstr "" @@ -517,7 +518,7 @@ #: plugins/wnnconversion.cpp:412 plugins/anthyconversion.cpp:169 #: plugins/anthyprediction.cpp:60 plugins/simpleprediction.cpp:91 #: plugins/primeprediction.cpp:174 plugins/skkdicconversion.cpp:122 -#: plugins/cannaconversion.cpp:201 +#: plugins/cannaconversion.cpp:201 plugins/wordsprediction.cpp:68 msgid "lookup result" msgstr "" @@ -673,6 +674,38 @@ msgid "CannaConversion" msgstr "" +#: plugins/asciiplugin.cpp:45 +msgid "Ascii-plugin" +msgstr "" + +#: plugins/asciiplugin.cpp:47 +msgid "Words _file: " +msgstr "" + +#: plugins/asciiplugin.cpp:49 +msgid "input the path of Words file." +msgstr "" + +#: plugins/asciiplugin.cpp:55 +msgid "Ascii Input: " +msgstr "" + +#: plugins/asciiplugin.cpp:61 +msgid "Words Prediction: " +msgstr "" + +#: plugins/asciiinput.cpp:53 +msgid "Aa" +msgstr "" + +#: plugins/asciiinput.cpp:69 +msgid "AsciiInput" +msgstr "" + +#: plugins/wordsprediction.cpp:109 +msgid "WordsPrediction" +msgstr "" + #: libhonoka/predictor.cpp:92 msgid "Predicter" msgstr "" diff --git a/honoka/po/ja.po b/honoka/po/ja.po index d43922d..2923534 100644 --- a/honoka/po/ja.po +++ b/honoka/po/ja.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: ja\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2006-01-11 00:22+0900\n" +"POT-Creation-Date: 2006-01-11 09:50+0900\n" "PO-Revision-Date: 2004-12-01 14:29+0900\n" "Last-Translator: TAM (Teppei Tamra) \n" "Language-Team: Japanese\n" @@ -74,12 +74,12 @@ msgid "REN" msgstr "[連]" -#: src/honoka_imengine.cpp:1508 src/honoka_imengine.cpp:1547 -#: src/honoka_imengine.cpp:1559 +#: src/honoka_imengine.cpp:1509 src/honoka_imengine.cpp:1548 +#: src/honoka_imengine.cpp:1560 msgid "could not connect to server." msgstr "サーバに接続できませんでした" -#: src/honoka_imengine.cpp:1517 +#: src/honoka_imengine.cpp:1518 msgid "The error was received from Converter. " msgstr "変換エンジンがエラーを返しよりました。" @@ -419,6 +419,7 @@ #: plugins/wnnplugin.cpp:78 plugins/anthyplugin.cpp:46 #: plugins/simpleprediction.cpp:53 plugins/primeprediction.cpp:71 #: plugins/skkdicconversion.cpp:53 plugins/cannaconversion.cpp:57 +#: plugins/asciiplugin.cpp:53 msgid "shortcut keys: " msgstr "ショートカットキー:" @@ -523,7 +524,7 @@ #: plugins/wnnconversion.cpp:412 plugins/anthyconversion.cpp:169 #: plugins/anthyprediction.cpp:60 plugins/simpleprediction.cpp:91 #: plugins/primeprediction.cpp:174 plugins/skkdicconversion.cpp:122 -#: plugins/cannaconversion.cpp:201 +#: plugins/cannaconversion.cpp:201 plugins/wordsprediction.cpp:68 msgid "lookup result" msgstr "候補一覧" @@ -679,6 +680,38 @@ msgid "CannaConversion" msgstr "Canna変換" +#: plugins/asciiplugin.cpp:45 +msgid "Ascii-plugin" +msgstr "英数字プラグイン" + +#: plugins/asciiplugin.cpp:47 +msgid "Words _file: " +msgstr "単語ファイル:" + +#: plugins/asciiplugin.cpp:49 +msgid "input the path of Words file." +msgstr "単語ファイルを指定します" + +#: plugins/asciiplugin.cpp:55 +msgid "Ascii Input: " +msgstr "英数字入力:" + +#: plugins/asciiplugin.cpp:61 +msgid "Words Prediction: " +msgstr "英単語予測:" + +#: plugins/asciiinput.cpp:53 +msgid "Aa" +msgstr "[Aa]" + +#: plugins/asciiinput.cpp:69 +msgid "AsciiInput" +msgstr "英数字入力" + +#: plugins/wordsprediction.cpp:109 +msgid "WordsPrediction" +msgstr "英単語予測" + #: libhonoka/predictor.cpp:92 msgid "Predicter" msgstr "予測なし"