gyuhyon / open-tran

Automatically exported from code.google.com/p/open-tran
GNU General Public License v2.0
0 stars 0 forks source link

Search for one word AND another, not OR #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I enter multiple words, open-tran returns every message containing one
word OR another. IMHO returning messages with *all* words (AND operator)
would be much more useful.

Original issue reported on code.google.com by leo.fontenelle@gmail.com on 24 Aug 2008 at 2:20

GoogleCodeExporter commented 9 years ago
Open-Tran is already doing that... almost :)  I'll try to explain it using your
example.  Take a look at the following results:
   http://ro.open-tran.eu/suggest/Built-in%20Command
You will notice that the very first suggestion is an *exact* match.  This is how
Open-Tran works - it always tries to find the best possible match and if it 
fails, it
gradually falls back to less exact matches so that you are not left without 
anything.

Unfortunately, the "Built-in Command" phrase was not translated into French, 
and thus
you won't find it among the results.  It seems that this message existed once in
gtksourceview, but was removed and persisted in only few language versions.

But besides that: there simply does not exist a phrase containing both words:
"builtin" and "command".  There do exist few phrases with words "built", "in" 
and
"command", but the gtksourceview old phrase is the only short.  The remaining 
ones
are very long and thus don't come up in the results.  As an example consider the
following phrase:

This command will toggle the display of the <link
linkend="advanced-editing-tools-commandline">built in command line</link>.

It has been translated to French as:

Cette commande (dés)active l'affichage de la <link
linkend="advanced-editing-tools-commandline">ligne de commande 
intégrée</link>.

The problem is that this phrase is not a good suggestion for "built-in command",
although its subset is.  This is one of the challenges I will try to overcome.  
But
currently I am working on the front-end redesign.  Unfortunately, I cannot 
spend all
my time on Open-Tran.

Original comment by sliw...@gmail.com on 24 Aug 2008 at 11:34

GoogleCodeExporter commented 9 years ago
It is possible now.  You need to put double quotes around each word.

Original comment by sliw...@gmail.com on 6 Jul 2009 at 7:45