
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
A fast translator and web query plasmoid for KDE
Features:
- translates the clipboard contents or submits it to a search engine of your choice simply by clicking on the icon or pressing the keyboard shortcut. The corresponding page gets opened in the standard web-browser. The query can also be entered manually in a text field instead of using the clipboard.
- many search engines preconfigured: leo.org, pons.de, google, wikipedia, duden.de, open dictionary, etc... The plasmoid can be used for many other things than just translations.
- new search engines can easily be added.
- fast switching between different translation languages or search engines.
Requirements:
KDE4 >= 4.2
installation from source
You will need the utility cmake and some development packages. To install them:
Ubuntu: sudo apt-get install cmake kdebase-workspace-dev kdelibs5-dev
SUSE: sudo zypper install cmake libkde4-devel kdebase4-workspace-devel
To install the plasmoid, unpack the archive, go to it's main directory and execute this commands:
mkdir build
cd build
cmake ../ -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
make
sudo make install
kbuildsycoca4
After that, the plasmoid should show up in the add widgets dialog.
If not, you can try to execute:
killall plasma-desktop && plasma-desktop
optional: import GPG-Key:
for those who download Babeleo through the Ubuntu PPA (see download links below), the GPG key of the PPA can be imported this way:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7AB1A390
notes
The fish icons are modified versions of an icon in the Crystal Clear icon set by Everaldo Coelho. File Crystal_Clear_app_babelfish_vector.svg (LGPL)
Comments are always appreciated, positive or negative!
If you don't like the app, feel free to tell me why, so that I can maybe improve it.
Thanks for voting! :)
todo
- more sorting possibilities for the search engines.
- easy-to-use install script.
- more default search engines.
- add offline dictionaries, for example integration of ding (http://www-user.tu-chemnitz.de/~fri/ding/)
7 years ago
if you update Babeleo from a version older than 0.4, please remove the plasmoid from the panel and add it again before use.
update 06.05.2013: New packages for Ubuntu 12.10 (Quantal Quetzal) and 13.04 (Raring Ringtail)
update 01.05.2013: New package for Ubuntu 12.04 (Precise Pangolin)
0.5.2 (13.10.2011)
- new AUTHORS file and updated credits
- new packages for SUSE and Ubuntu
0.5.1 (30.09.2009)
- global shortcut for triggering a query works again
- added a possibility for a global shortcut to open the manual query dialog
- added some more search engines to the default list
0.5 (10.09.2009)
- automatic download of icons for the search engines. Babeleo fetches the favicon from the web page of the engine.
0.4.2 (31.08.2009)
- fixed bug which caused plasma to crash
0.4.1 (31.08.2009)
- alphabetical sorting of search engines in the menus.
- added a few more search engines to the default list.
- some of the search engines are now hidden by default.
- source code cosmetics.
0.4 (30.08.2009)
- added a cool new configuration interface fo search engines:
- possibility to add, remove and edit search engines.
- possibility to hide some of the configured search engines.
- possibility to define for each search engine if it should appear in the main context menu or in the "other engines" menu.
- changed plasmoid name as displayed in the "add widgets..." dialog to "Babeleo translator" for easier finding after installation.
0.3.2 (25.08.2009)
- Babeleo now doesn't use the global clipboard content anymore, but the
currently highlighted text. There is no need to type Ctrl+C anymore,
regardless of the klipper-settings.
0.3.1 (24.08.2009)
- removed a bug which could cause plasma to crash directly after a fresh install or an update from an older version of Babeleo.
0.3 (22.08.2009):
- code restructured to easily add more search engines.
- added a few engines to show what's possible. I will add a configuration window to manage the engines in a later version. For now, new engines can be added easily by those who want by editing the sources (babeleo.cpp, after line 137).
- Tooltip shows the current engine.
0.2.1 (20.08.2009):
- improved the behaviour of the text field for manual entry of the query when it gets opened and when it loses focus.
- cleaned up the code.
0.2 (20.08.2009):
- added the possibility to enter a query manually in a small textfield, instead of taking it from the clipboard.
0.1 (18.08.2009):
- initial release.
7 years ago
if you update Babeleo from a version older than 0.4, please remove the plasmoid from the panel and add it again before use.
update 06.05.2013: New packages for Ubuntu 12.10 (Quantal Quetzal) and 13.04 (Raring Ringtail)
update 01.05.2013: New package for Ubuntu 12.04 (Precise Pangolin)
0.5.2 (13.10.2011)
- new AUTHORS file and updated credits
- new packages for SUSE and Ubuntu
0.5.1 (30.09.2009)
- global shortcut for triggering a query works again
- added a possibility for a global shortcut to open the manual query dialog
- added some more search engines to the default list
0.5 (10.09.2009)
- automatic download of icons for the search engines. Babeleo fetches the favicon from the web page of the engine.
0.4.2 (31.08.2009)
- fixed bug which caused plasma to crash
0.4.1 (31.08.2009)
- alphabetical sorting of search engines in the menus.
- added a few more search engines to the default list.
- some of the search engines are now hidden by default.
- source code cosmetics.
0.4 (30.08.2009)
- added a cool new configuration interface fo search engines:
- possibility to add, remove and edit search engines.
- possibility to hide some of the configured search engines.
- possibility to define for each search engine if it should appear in the main context menu or in the "other engines" menu.
- changed plasmoid name as displayed in the "add widgets..." dialog to "Babeleo translator" for easier finding after installation.
0.3.2 (25.08.2009)
- Babeleo now doesn't use the global clipboard content anymore, but the
currently highlighted text. There is no need to type Ctrl+C anymore,
regardless of the klipper-settings.
0.3.1 (24.08.2009)
- removed a bug which could cause plasma to crash directly after a fresh install or an update from an older version of Babeleo.
0.3 (22.08.2009):
- code restructured to easily add more search engines.
- added a few engines to show what's possible. I will add a configuration window to manage the engines in a later version. For now, new engines can be added easily by those who want by editing the sources (babeleo.cpp, after line 137).
- Tooltip shows the current engine.
0.2.1 (20.08.2009):
- improved the behaviour of the text field for manual entry of the query when it gets opened and when it loses focus.
- cleaned up the code.
0.2 (20.08.2009):
- added the possibility to enter a query manually in a small textfield, instead of taking it from the clipboard.
0.1 (18.08.2009):
- initial release.
netcelli
11 years ago
Report
bongoMan
11 years ago
I now made a version 0.4.2 and it's the right archive this time :) Please give me some feedback about this one if you are still willing to install it :) Thanx!
Report
netcelli
11 years ago
Report
MonikaK
11 years ago
I just thought at first the installation failed, because searching for Babeleo in the list of plasmoids doesn't work, because it's called "leo.org Übersetzer".
Report
bongoMan
11 years ago
cheers
Pascal
Report
bongoMan
11 years ago
German:
http://wortschatz.uni-leipzig.de/
English:
http://www.websters-online-dictionary.org/
French:
http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm;java=no;
http://www.crisco.unicaen.fr/cgi-bin/cherches.cgi
http://www.granddictionnaire.com/btml/fra/r_motclef/index1024_1.asp
Spanish:
http://www.rae.es/rae.html
http://dix.osola.com/
Report
bongoMan
11 years ago
Quote:http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm;java=no;
it is not really well suited for use with babeleo...
this one needs cookies that are only generated when the main page of the search engine is accessed:
Quote:http://www.crisco.unicaen.fr/cgi-bin/cherches.cgi
That means this search engine will only work if the main-page has already been opened in the same browser-instance.
have fun!
Report
fixu
11 years ago
engines << "Real Academia Española" << "http://buscon.rae.es/draeI/SrvltConsulta?TIPO_BUS=3&LEMA=%s";
What i have to write for the ñ to display correctly?
like the html entity: ñ
Report
bongoMan
11 years ago
cheers
Pascal
Report
fixu
11 years ago
engines << "CNRS synonymes" << "http://www.crisco.unicaen.fr/cgi-bin/trouvebis2?requete=%s";
Report
bongoMan
11 years ago
German:
http://wortschatz.uni-leipzig.de/
English:
http://www.websters-online-dictionary.org/
French:
http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm;java=no;
http://www.crisco.unicaen.fr/cgi-bin/cherches.cgi
http://www.granddictionnaire.com/btml/fra/r_motclef/index1024_1.asp
Spanish:
http://www.rae.es/rae.html
http://dix.osola.com/
Report
fixu
11 years ago
what are you future plans for this plasmoid?
some ideas:
- a popup search and a list of the resutls inside the plasmoid
- a dataengine with other dictionnaries like pons.de, http://iate.europa.eu etc.
the icon is very nice!
keep up the good work,
cheers
felix
Report
bongoMan
11 years ago
But it cannot be added easily to babeleo, because the query is not reflected in the URL. It seems to use the "struts" java web framework...
Report
fixu
11 years ago
iate is a very good site for specific translations, so it would be very useful for my daily work if you could add this one.
if i can help you in some way it would be a pleasure for me.
cheers,
felix
Report
bongoMan
11 years ago
Report
fixu
11 years ago
although i had a plasma crash, the plasmoid works flawlessly.
the crash wasnt reproducible, but if you want i can send you the backtrace or post the backtrace here.
the different search engines are working very well.
here some more good sites:
German:
http://wortschatz.uni-leipzig.de/
English:
http://www.websters-online-dictionary.org/
French:
http://atilf.atilf.fr/dendien/scripts/tlfiv4/showps.exe?p=combi.htm;java=no;
http://www.crisco.unicaen.fr/cgi-bin/cherches.cgi
http://www.granddictionnaire.com/btml/fra/r_motclef/index1024_1.asp
Spanish:
http://www.rae.es/rae.html
http://dix.osola.com/
i will look into the code, maybe i can add this sites by my own.
thanks,
felix
Report
bongoMan
11 years ago
yes please send me the backtrace, I don't like my apps causing plasma to crash ;) Did you restart plasma after updating? I should write somewhere that it's important to do this...
I will start a new thread where people can enter good dictionary adresses. I wouldn't put too much of them into the base-installation, because it would look overloaded... Maybe someday I'll add an option to hide some of the available search engines, so that I could include an exhaustive list and set most of them as hidden just after installation...
You can look at the code, it's really easy to add new engines, it's one line per engine. Just look at the syntax in the other lines and reproduce it with your own urls.
Report
bongoMan
11 years ago
Report
bongoMan
11 years ago
Quote:http://wortschatz.uni-leipzig.de/abfrage
yes the problem was the same for iate, but then i searched a little bit and found out on another website that there is still a way to submit a query through the url. Same for wortschatz.uni-leipzig.de: A query for "Kartoffelsalat" looks like this:
http://wortschatz.informatik.uni-leipzig.de/cgi-bin/wort_www.exe?site=1&Wort=Kartoffelsalat&sprache=de
I found the trick on this website by googling a little bit:
http://wiki.serchilo.net/Wortschatz-Lexikon
cheers
Report
fixu
11 years ago
http://wortschatz.uni-leipzig.de/abfrage
i dont know how to s% into this url.
one the french sites is already working.
i didnt restart plasma maybe that is the reason for the crash.
can you leave me your email? than i'll send you the backtrace. if i post it here, it is too long.
Report
fixu
11 years ago
i will check it out and tell you how it works!
unfortunately, i am no qt guru...
Report
bongoMan
11 years ago
Report
bongoMan
11 years ago
Thanx for proposing help! But I don't know whow you could help, unless you are a great Qt guru ;) I'm doing this mostly to learn programming with Qt and plasma, and my first impression is that there are still lots of bugs left in Qt, some things do not feel logical at all, and make programming very difficult... But maybe it's only me being too ignorant ;)
cheers
Pascal
Report
bongoMan
11 years ago
Quote:a popup search and a list of the resutls inside the plasmoid
I thought about doing that, it should be easy to parse the content of the leo-websites. On the other side, i use Leo.org since years and i really like it, and maybe they need some people watching the adds and sometimes clicking on them ;)
Quote:a dataengine with other dictionnaries like pons.de, http://iate.europa.eu etc.
yes that would be cool. It would also be nice to add a little mask where users can configure their own query-schemes for other online dictionaries. Usually, the url for a query on an online dictionary has a simple form like:
<URL part 1>query<URL part2>
to configure a new dictionary, the user would have to specify the two parts of the URL, a name for the dictionary and an image file for an icon...
The other function i want to add, is a little textfield where the user can type in the query manually. It would open when you doubleclick the icon.
The icon is the babelfish icon from the crystalsvg design. I only changed the colors :) I'm not sure if I should mention this somewhere to satisfy the GPL...
cheers
pascal
Report