LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 02-01-2019, 11:43 AM   #1
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 297

Rep: Reputation: 245Reputation: 245Reputation: 245
Dictionary in Moksha Launcher


Hello there

I am not sure I should announce this info on the forum (project in heavy development) but I will because I can see too many troubles on the forum these days. I just wanna make you feel we (devs) are still here and have not only good ideas but also good solutions and good news

Let me introduce you a brand new module for Launcher plugin called Launcher Dictionary.

The idea came from my everyday discussion with Robert (Ylee). He brings to life forgotten plugin called Spellchecker which can check your words with utilities like Aspell or Hunspell.
More info here:
https://github.com/rbtylee/launcher-spellchecker

I realized the Launcher code is different than I know from my work on the extra modules so I gave up on any ideas related to that. Then I looked closely to the code and tried some first ideas with sdcv stardict tool. And I succeed. Within a while I had first working code.

The main reason to do this was to have an elegant, fast and usefull feature in moksha for instant words translating. Of course, this code has no ambition to be an Stardict or Goldendict replacement, nevertheless I think it could fulfill some users needs.

More info here:

https://github.com/thewaiter/Evry-Dictionary



Štefan
Attached Thumbnails
Click image for larger version

Name:	shot-2019-02-01_17-50-06.png
Views:	15
Size:	30.0 KB
ID:	29674  

Last edited by the_waiter; 02-01-2019 at 12:23 PM.
 
Old 02-01-2019, 11:56 AM   #2
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 419

Rep: Reputation: 160Reputation: 160
Thanks stefa.

my opinion:

first since the old forum is gone you get a bunch of people running other distros that want to bash this one or else they are serious about exploring this one. but the others here are more numerous than our old forums. so you will get a ot of let's say stranage feedback and comments at times.


2n - bodhi and e/moksha is so unique it IS weird and tought for gnome/kde/mate people to get into ti. before there was bodhi i had tried to get into enlightenment distros that had no help and a ton of issues and just seeing what you get once downloaded it is rather overwhelming. once i got into bodhi and with some patience and all of the help fo the old regulars i GOT IT and love it and it makes sense. so that initial LOSTNESS is legit esp when you are a neophyte to linux and command line.


and not that you need too much command line at all. but it scares the hell out of people.

also just the setups are so different compared to other linuc desktops and distros - it seems satrange and complicated. but to me that is the most unique thing and maes this different than mac or windoze or other linux windows looking distros.

was going to write more bt have a very sick dog i have to deal with@!
 
Old 02-01-2019, 12:43 PM   #3
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 297

Original Poster
Rep: Reputation: 245Reputation: 245Reputation: 245
@hemlocktree

This my work is for Bodhi/Moksha/E users and I pretty do not care about what other distro users say. Of course when bugs are related, I do care.
Linux world is nice. I like it very much. There are > 800 more or less active distributions and one can take the best for him. I will never persuade anybody to switch to Bodhi at any prize. Bodhi is pretty tiny community and as you said Moksha or E is not for everyone. We all know this fact.
On the other hand, this forum has many other distro users which can look on this section and try our distro. And maybe one day some of them will became a team member.

But I think this words are little bit off topic

I would like to see some module feedback

S

Last edited by the_waiter; 02-01-2019 at 01:20 PM.
 
2 members found this post helpful.
Old 02-01-2019, 12:53 PM   #4
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 419

Rep: Reputation: 160Reputation: 160
sorry stefan but i think you know what i mean...
 
1 members found this post helpful.
Old 02-03-2019, 06:24 AM   #5
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 108

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by the_waiter View Post
Hello there

I am not sure I should announce this info on the forum (project in heavy development) but I will because I can see too many troubles on the forum these days. I just wanna make you feel we (devs) are still here and have not only good ideas but also good solutions and good news
...
Of course, we at least Štefan and I are always doing something. And both of us are full of ideas on how to improve Bodhi, Moksha, or the apps we use.

Quote:
Originally Posted by the_waiter View Post
...

The idea came from my everyday discussion with Robert (Ylee). He brings to life forgotten plugin called Spellchecker which can check your words with utilities like Aspell or Hunspell.
More info here:
https://github.com/rbtylee/launcher-spellchecker ...
And this is something I have been doing sorta on the side. It is perhaps unknown to many recent Bodhi Users but our Quick Launcher, which used to be called Run Everything in e17 (and still is in e22), originally had a number of plugins. These plugins extended the functionality of Run Everything. So my project on the side was to add the ones that we used to have back. At least the ones that were easily fixable. Make some minor changes so they would compile or compile 'better', and fit in more with Moksha as it is now. As well as perhaps create a few new ones.

Quote:
Originally Posted by the_waiter View Post
..
I realized the Launcher code is different than I know from my work on the extra modules so I gave up on any ideas related to that. ..
Well yes, these modules are plugins not the sorta module one finds in our Moksha-modules-extra repo. Neither Štefan nor I had did anything with everything plugins prior to this. BUT the API is rather simple to understand, if as is usually the case in e-programming stuff, UNDOCUMENTED. The source code is the documentation.

The irony here is Štefan announcing this dictionary plugin before I even officially announced my work on the launcher-spellchecker. As he told me his announcement here is sort of a teaser, an inside look at what is coming.

Quote:
Originally Posted by the_waiter View Post
..

Then I looked closely to the code and tried some first ideas with sdcv stardict tool. And I succeed. Within a while I had first working code.

The main reason to do this was to have an elegant, fast and usefull feature in moksha for instant words translating ...
Shortly after I showed Štefan my work on the launcher-spellchecker, he wondered about added support for the sdcv stardict command. I thought perhaps he was going to add an option to the spellchecker module itself. But I suppose he found it simpler to create a separate module. Makes sense as I don't know if it is possible to have two different triggers in the same everything plugin. And having only one trigger would mean switching the command used in the module settings if you wish to switching from spellchecker mode to dictionary mode.

Regardless, as it currently is, the code for the two modules is more or less the same, except for minor differences in parsing command output.

Quote:
Originally Posted by the_waiter View Post
..
Of course, this code has no ambition to be an Stardict or Goldendict replacement, nevertheless I think it could fulfill some users needs.

More info here:

https://github.com/thewaiter/Evry-Dictionary
Good work on this, Štefan. This is sort of a beta release. My next comment will look at the module more closely.

Last edited by rbtylee; 02-03-2019 at 08:01 AM.
 
1 members found this post helpful.
Old 02-03-2019, 07:36 AM   #6
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 108

Rep: Reputation: 125Reputation: 125
Ok the module is currently under development and so far Štefans work. Once completed to our satisfaction I will try to package it and add it to Bodhi's repo.

My thoughts on what we currently have:

The instructions on github could be a little clearer for beginners:

Quote:
This module depends on sdcv utility. It is a console Stardict application.

sdcv installing: sudo apt-get install sdcv

Unpack downloaded dicts and copy to /usr/share/stardict/dict directory
At least the mistake fixed. copy to /usr/share/stardict/dict should be copy to /usr/share/stardict/dic

That one got me I Installed the module and sdcv, made the directory /usr/share/stardict/dict copied a dictionary over and sdvc could not find it. So the plugin was not working

Not a big deal as
Code:
man sdcv
told me all I need to know and i fixed it. But would the average user think of this and get this working. Judging from forum posts at least some would not.

Perhaps we could add a fool proof example such as for the Merriam-Webster's Collegiate:

Code:
sudo mkdir -p  /usr/share/stardict/dic
wget http://downloads.sourceforge.net/xdxf/stardict-comn_dls03_mwc-2.4.2.tar.bz2
sudo tar -xvjf stardict-comn_dls03_mwc-2.4.2.tar.bz2  -C /usr/share/stardict/dic
Of course, flesh this up some.

And perhaps briefly mention using STARDICT_DATA_DIR which can be used to set another location for dictionaries other than a system location. (perhaps .local/share/stardict/dic)

Quote:
Originally Posted by the_waiter View Post
..
The main reason to do this was to have an elegant, fast and usefull feature in moksha for instant words translating. Of course, this code has no ambition to be an Stardict or Goldendict replacement, nevertheless I think it could fulfill some users needs.
Well I am not bilingual, desite remembering a little french I had in high school decades ago and knowing a touch of spanish from working around Latinos. So using this for translating a word or two would not be very useful. What I would use it for is as a dictionary, to find out the meaning of some word I didn't know or saw used in a unfamiliar manner. That is why in the example above I used an well known American English dictionary.

And here the module needs some work:

Click image for larger version

Name:	Untitled.png
Views:	8
Size:	29.8 KB
ID:	29694

We need to strip/replace the HTML stuff, for example ' in Merriam-Webster's Collegiate it should be Merriam-Webster's Collegiate

Second, Is there any way to not have icons on each line, they add nothing. Unsure if this is possible as everything is currently coded.

Third, I can't read the full definition on each line, i have to copy it to the clipboard and then paste somewhere to see it in full. This is a serious usability issue. Is this even possible?

And then there is other issues: What happens if the user has set SDCV_PAGER perhaps SDCV_PAGER=leafpad? Try it.

And should we warn if sdcv is not installed or there are no dictionaries? The same thing goes for my spellchecker plugin.

Plus I know you are working on another feature to add, so I will not mention that.

And the last issue is the all these dictionaries listed in your link. What is the copyright on these? Is there any that we can add to our repo? At least and english one or two. It would be nice if when I make a deb file for this it installs not only sdcv but a dictionary so that it works for at least english out of the box, or has a few dictionaries added to the Recommends in the deb file.

And one more minor issue can we rename the github repo to launcher-dictionary to be more consistent with the other plugins I am planning to add?

Also a question what does engine command do in the settings? Is this what you are working on?
 
1 members found this post helpful.
Old 02-03-2019, 07:43 AM   #7
hemlocktree
Member
 
Registered: Aug 2018
Location: Northern Exposure
Distribution: Bodhi 5
Posts: 419

Rep: Reputation: 160Reputation: 160
thanks robert - gives me a bit of insight as to what to do... have to dumb everything down in my case - sorry to say.

Last edited by hemlocktree; 02-03-2019 at 11:56 AM.
 
1 members found this post helpful.
Old 02-03-2019, 09:15 AM   #8
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 297

Original Poster
Rep: Reputation: 245Reputation: 245Reputation: 245
Thanx Robert for comments and suggestions. Yes, this is just a beta if not alpha release. Lots of work in front of me...but maybe I was too excited to share this project with users

Last edited by the_waiter; 02-03-2019 at 11:18 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB device connection overrides Moksha DE's lock screen (Bodhi 4.5.0, Moksha 0.2.1) Kazuhira_x3 Bodhi 1 11-08-2018 03:54 AM
LXer: Move unity launcher to the bottom with Unity Bottom Launcher | PPA Ubuntu LXer Syndicated Linux News 0 12-19-2011 01:30 AM
Suggest a good offline dictionary-database for gnome-dictionary. abhijeetnayak Linux - Software 1 07-05-2009 06:17 PM
Better dictionary for gnome-dictionary? General Linux - Software 4 08-21-2006 11:39 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 02:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration