New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

matching expressions ...

General discussion

matching expressions ...

Postby zigzaggazgiz » Sun Jan 10, 2010 2:32 pm

Hi everybody,

GoldenDict is a really cool dictionary!! Congrats!!!

I'd like to know if it is possible to match expressions (by using Scan Popup) as we do using babylon?

For example: let's suppose we are reading a text which contains the phrase: "... they will have to deal with cold spell". If we select the "spell" word, the GoldenDict only shows the meaning of "spell", instead of showing the meaning of expression "cold spell" as well ... The same for "take off", "get rid of", etc, etc, etc ...


Thank you all!!
Fabio
zigzaggazgiz
 
Posts: 2
Joined: Sun Jan 10, 2010 2:25 pm

Re: matching expressions ...

Postby ikm » Sun Jan 10, 2010 2:37 pm

That's quite hard to implement, unfortunately.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: matching expressions ...

Postby zigzaggazgiz » Thu Jan 14, 2010 10:28 am

Ok, it could be quite hard to implement, but think about the competitive edge of GoldenDict ...

To the best of my knowledge, there is no dictionary for linux with such a nice feature!!

cheers
zigzaggazgiz
 
Posts: 2
Joined: Sun Jan 10, 2010 2:25 pm

Re: matching expressions ...

Postby fast_rizwaan » Mon Mar 29, 2010 10:05 pm

>For example: let's suppose we are reading a text which contains the phrase: "... they will have to deal with cold spell". If we select the "spell" word, the GoldenDict only shows the meaning of "spell", instead of showing the meaning of expression "cold spell" as well ... The same for "take off", "get rid of", etc, etc, etc ...

How about if a user selects a full sentence with many words say the same sentence "they will have to deal with cold spell" instead of showing "No translation for they will have to deal with cold spell was found in group All."; the error dialog/not found dialog should suggest:

Let there be 2 rows: which allows single and multi-words in the "not found" dialog.
[ref]they[/ref] [ref]will[/ref] [ref]have[/ref][ref]to[/ref][ref]deal[/ref][ref]with[/ref][ref]cold[/ref][ref]spell[/ref] <-first line with single words
like clickable words ->they will have to deal with cold spell

Second line should "Search the index will all possible "Adjacent" combinations like word1+word2, word2+word3, word3+word4, word4+word5, word5+word6, etc... and output "successfully found"words into second line like:

have to deal with cold spell <- only three possible adjacent words could be found in the index, others they+will, will+have, etc.. are not found in the index.. so ignored!

If the dictionary articles has "multi word" entries, those too should be presented for quicker lookup. Just "grepping" "matching" all possible "adjacent words" with index, will do the trick.

So, the output of "not found dialog" should be like:
-------------------
No translation for they will have to deal with cold spell was found in group All. Try:

they will have to deal with cold spell
have to deal with cold spell

-------------------

and the colde would be like:
Code: Select all
No translation for [b]they will have to deal with cold spell[/b] was found in group[b] All[/b]. [b] Try: [/b]

[b][u]they[/u] [u]will[/u] [u]have[/u] [u]to[/u] [u]deal[/u] [u]with[/u] [u]cold[/u] [u]spell[/u][/b]
[b][u]have to[/u] [u]deal with[/u] [u]cold spell[/u] [/b]


In this way Golden Dictionary can really help the user get the informaton quickly and efficiently...
fast_rizwaan
 
Posts: 45
Joined: Tue Dec 08, 2009 5:10 pm

Re: matching expressions ...

Postby ikm » Tue Mar 30, 2010 1:49 pm

Since this feature is indeed very useful, I've just implemented it. You can try it out in Git. Thanks.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: matching expressions ...

Postby fast_rizwaan » Tue Mar 30, 2010 5:15 pm

ikm wrote:Since this feature is indeed very useful, I've just implemented it. You can try it out in Git. Thanks.

Beautiful, wonderful, awesome!!!

Thank you ikm! You are a good programmer!! :D
fast_rizwaan
 
Posts: 45
Joined: Tue Dec 08, 2009 5:10 pm


Return to General

Who is online

Users browsing this forum: No registered users and 42 guests