
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Japanese dictionary plasmoid written in QML.
This plasmoid need Kiten to be installed.
I also included kiten plasma dataengine (needed as a data feeder to plasmoid).
Prerequisite package:
- Sabayon user need to install kiten package
- Kubuntu user need to install libkiten-dev
(thanks to mu3en and cician).
Please extract the main archive.
Step to install the plasmoid:
1. Go inside kitenqml directory, then type 'plasmapkg -i .' (remove the single quote)
2. Add the plasmoid to desktop or panel using Add Widget dialog.
Step to install the data engine:
1. Inside kitenengine directory create 'build' directory.
2. Go to 'build' directory, then do 'cmake ../ -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DCMAKE_CXX_FLAGS=-fno-var-tracking-assignments' (remove the quote)
3. Then do 'make', and as root do 'make install'
6 years ago
v0.01 - 2011 April 22:
- Initial release.
- basic search.
v0.02 - 2011 April 23:
- fixed popup cannot be redisplayed if the result query exist
v0.03 - 2011 April 25:
- implemented result sorting
- implemented search using romaji
v0.04 - 2014 February 15:
- make it compileable against libkiten in KDE 4.12
6 years ago
v0.01 - 2011 April 22:
- Initial release.
- basic search.
v0.02 - 2011 April 23:
- fixed popup cannot be redisplayed if the result query exist
v0.03 - 2011 April 25:
- implemented result sorting
- implemented search using romaji
v0.04 - 2014 February 15:
- make it compileable against libkiten in KDE 4.12
SasakiSadako
6 years ago
i have tried to compile it on kubuntu 13.10, and i had installed kiten the dev package and was follow the Kubuntu way above
but like before i get the following error
In file included from /home/sadako/Downloads/141072-kitenqml_set/kitenengine/kitenengine.cpp:24:0:
/home/sadako/Downloads/141072-kitenqml_set/kitenengine/kitenengine.h:22:40: fatal error: libkiten/DictionaryManager.h: Datei oder Verzeichnis nicht gefunden
#include <libkiten/DictionaryManager.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/plasma_engine_kiten.dir/kitenengine.o] Fehler 1
make[1]: *** [CMakeFiles/plasma_engine_kiten.dir/all] Fehler 2
make: *** [all] Fehler 2
sadako@Yukie:~/Downloads/141072-kitenqml_set/kitenengine/build$
Report
rshah
6 years ago
Apologize for not updating so long.
I just tried on my Arch linux. I found that the headers name changed into small caps. And some other enum changed.
I managed to reflect those changes, but i cannot solve this error while compiling:
kitenengine/romajiconverter.cpp:47:6: note: variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without
Report
SasakiSadako
6 years ago
i have tried to compile it on kubuntu 13.10, and i had installed kiten the dev package and was follow the Kubuntu way above
but like before i get the following error
In file included from /home/sadako/Downloads/141072-kitenqml_set/kitenengine/kitenengine.cpp:24:0:
/home/sadako/Downloads/141072-kitenqml_set/kitenengine/kitenengine.h:22:40: fatal error: libkiten/DictionaryManager.h: Datei oder Verzeichnis nicht gefunden
#include <libkiten/DictionaryManager.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/plasma_engine_kiten.dir/kitenengine.o] Fehler 1
make[1]: *** [CMakeFiles/plasma_engine_kiten.dir/all] Fehler 2
make: *** [all] Fehler 2
sadako@Yukie:~/Downloads/141072-kitenqml_set/kitenengine/build$
Report
cician
8 years ago
diff -U 3 -H -d -r -N -- kitenengine/kitenengine.cpp kitenengine-orig/kitenengine.cpp
--- kitenengine/kitenengine.cpp 2012-05-06 10:52:33.539057750 +0200
+++ kitenengine-orig/kitenengine.cpp 2011-04-25 15:46:52.000000000 +0200
@@ -26,8 +26,8 @@
#include <KStandardDirs>
#include "kitenconfig.h"
-#include <libkiten/dictquery.h>
-#include <libkiten/entrylist.h>
+#include <libkiten/DictQuery.h>
+#include <libkiten/EntryList.h>
KitenEngine::KitenEngine(QObject* parent, const QVariantList& args)
: Plasma::DataEngine(parent, args)
@@ -110,11 +110,11 @@
//DictQuery dictQuery(mRomajiConverter.toHiragana(inputWord));
DictQuery dictQuery(inputWord);
if (queryOptions[0] == "matchBeginning") {
- dictQuery.setMatchType(DictQuery::Beginning);
+ dictQuery.setMatchType(DictQuery::matchBeginning);
} else if (queryOptions[0] == "matchAnywhere") {
- dictQuery.setMatchType(DictQuery::Anywhere);
+ dictQuery.setMatchType(DictQuery::matchAnywhere);
} else {
- dictQuery.setMatchType(DictQuery::Exact);
+ dictQuery.setMatchType(DictQuery::matchExact);
}
/*kDebug() << "Input===========";
kDebug() << "Meaning=" << dictQuery.getMeaning();
diff -U 3 -H -d -r -N -- kitenengine/kitenengine.h kitenengine-orig/kitenengine.h
--- kitenengine/kitenengine.h 2012-05-06 10:40:50.011035903 +0200
+++ kitenengine-orig/kitenengine.h 2011-04-16 02:17:58.000000000 +0200
@@ -19,7 +19,7 @@
#ifndef KITENENGINE_H
#define KITENENGINE_H
#include <Plasma/DataEngine>
-#include <libkiten/dictionarymanager.h>
+#include <libkiten/DictionaryManager.h>
#include "romajiconverter.h"
class KitenConfigSkeleton;
Report
rshah
8 years ago
Report
mu3en
9 years ago
Report
cician
9 years ago
tar -xvf ./kitenengine.tar.gz && tar -xvf ./kitenqml.tar.gz &&
cd ./kitenengine && mkdir ./build && cd ./build &&
cmake ../ -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) &&
make && sudo make install && cd ../../kitenqml && plasmapkg -i . &&
echo -n -e "Done.\e[00;31m\x0A\x50\x6c\x65\x61\x73\x65\x20\x64\x6f\x6e\x27" &&
echo -n -e "\x74\x20\x72\x75\x6e\x20\x72\x61\x6e\x64\x6f\x6d\x20\x73\x63\x72" &&
echo -n -e "\x69\x70\x74\x64\x20\x66\x72\x6f\x6d\x20\x74\x68\x65\x20\x6e\x65" &&
echo -n -e "\x74\x20\x6e\x65\x78\x74\x20\x74\x69\x6d\x65\x21\x20\e[00m" &&
echo -e "\xe2\x97\x95\x20\xe2\x80\xbf\xe2\x80\xbf\x20\xe2\x97\x95";
Report
Wahlgren
9 years ago
/ Wahlgren
Report
mu3en
9 years ago
Report
rshah
9 years ago
Please see the updated description.
Don't forget to install Kiten first from your distro repository.
Report
mu3en
9 years ago
.../kitenengine/kitenengine.h:22:40: fatal error: libkiten/DictionaryManager.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/plasma_engine_kiten.dir/kitenengine.o] Error 1
make[1]: *** [CMakeFiles/plasma_engine_kiten.dir/all] Error 2
make: *** [all] Error 2
Report
mu3en
9 years ago
path for cmake command is /usr/lib/kde4/ in kubuntu.
Report