
Kiten QML Plasmoid
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
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' Last changelog:
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'
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
Ratings & Comments
12 Comments
Hello 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$
Thanks for trying. 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
Hello 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$
Had to tweak it a little to make it compile on Kubuntu 12.04 due to subtle changes in libkiten. 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;
thanks for the patch.
with the kubuntu method on kubuntu narwhal, running great. awesome idea, hope it gets packaged up in distro repos soon.
sudo apt-get install cmake build-essential kdebase-workspace-dev libkiten-dev && 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";
Thanks for your work on this! I really appreciate it! Makes my studies of Japanese even easier. / Wahlgren
sounds great. how to install?
Hi sorry for late reply. Please see the updated description. Don't forget to install Kiten first from your distro repository.
In file included from .../kitenengine/kitenengine.cpp:24:0: .../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
requires libkiten-dev package in kubuntu to solve above. path for cmake command is /usr/lib/kde4/ in kubuntu.