Page 1 of 1

[LB 6 Action] Define (w/ predictions)

Posted: Thu Jul 03, 2014 6:13 am
by Nosrac
Search the Dictionary app or the "Define" keyword.

https://github.com/Nosrac/LBDefine

Image

Re: [LB 6 Action] Define (w/ predictions)

Posted: Thu Jul 03, 2014 8:43 am
by ptujec
Nice! Thanks

I added German localization strings to it. Maybe you want to add those in your action. Download

Re: [LB 6 Action] Define (w/ predictions)

Posted: Thu Jul 03, 2014 10:48 am
by Jono
Very useful, thanks!

Re: [LB 6 Action] Define (w/ predictions)

Posted: Thu Jul 03, 2014 4:33 pm
by Nosrac
ptujec wrote:Nice! Thanks

I added German localization strings to it. Maybe you want to add those in your action. Download


Thanks, I added this to the GitHub project

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 4:58 am
by hlissner
Thanks for this! I'm surprised something like this wasn't included among the stock LB6 actions.

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 5:53 am
by iRounak
I do not understand java or php.
So can you tell me how this action works?
My bingo guess is you are retrieveing suggestions from a source which has nothing to do with Dictionary.app and hence this happens:


Screen Shot 2014-07-04 at 9.22.40 am.png
Screen Shot 2014-07-04 at 9.22.40 am.png (89.16 KiB) Viewed 5728 times

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 6:07 am
by Nosrac
iRounak wrote:I do not understand java or php.
So can you tell me how this action works?
My bingo guess is you are retrieveing suggestions from a source which has nothing to do with Dictionary.app and hence this happens:


That's exactly what's happening. I'm planning on using the Dictionary's sources soon

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 8:31 am
by ptujec
Nosrac wrote:That's exactly what's happening. I'm planning on using the Dictionary's sources soon


That explains why no German suggestions are showing up for me. The change would be greatly appreciated.

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 8:35 am
by ptujec
So here is bug I encountered. It doesn't to play well with spaces.

Image

Image

Re: [LB 6 Action] Define (w/ predictions)

Posted: Fri Jul 04, 2014 10:57 pm
by Nosrac
ptujec wrote:So here is bug I encountered. It doesn't to play well with spaces.


This should be fixed now. Unfortunately, it looks like Apple's dictionaries aren't open to use. Likely for legal reasons.

I'll look for a free list of words for various languages soon

Re: [LB 6 Action] Define (w/ predictions)

Posted: Thu Jul 10, 2014 12:46 am
by Nosrac
Hey ptujec,

I've looked around the Internet for lists of all German words but I'm not having any luck.
The ideal format would be a text file with one word per line.

Any idea where to find something like that?