Kiten QML Plasmoid

Plasma 4 Widgets

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

3
Score 76.7%
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:

5 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

5 years ago

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$

Report

C

rshah

5 years ago

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

Report

SasakiSadako

5 years ago

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$

Report

cician

7 years ago

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;

Report

C

rshah

7 years ago

thanks for the patch.

Report

mu3en

8 years ago

with the kubuntu method on kubuntu narwhal, running great. awesome idea, hope it gets packaged up in distro repos soon.

Report

cician

8 years ago

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";

Report

9

Wahlgren

8 years ago

Thanks for your work on this! I really appreciate it! Makes my studies of Japanese even easier.

/ Wahlgren

Report

mu3en

8 years ago

sounds great. how to install?

Report

C

rshah

8 years ago

Hi sorry for late reply.
Please see the updated description.

Don't forget to install Kiten first from your distro repository.

Report

mu3en

8 years ago

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

Report

mu3en

8 years ago

requires libkiten-dev package in kubuntu to solve above.

path for cmake command is /usr/lib/kde4/ in kubuntu.

Report

5 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

12345678910
8
product-maker mononoke Jun 24 2012 9 excellent
product-maker jaitrum Dec 06 2011 9 excellent
product-maker Sweetchuck Sep 02 2011 9 excellent
product-maker sam13 Aug 28 2011 9 excellent
product-maker gamdoodyandgam Jun 03 2011 9 excellent
product-maker Wahlgren Apr 29 2011 9 excellent
product-maker nicotine Apr 27 2011 9 excellent
product-maker Saleel Apr 23 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
mononoke
Jun 24 2012
eusonig
Oct 13 2011
cician
Apr 30 2011
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.04
updated Feb 15 2014
added Apr 22 2011
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2