Nice, I like it, it's a bit like lingro's dictionary but with more languages.
Just a few suggestions, I hope you don't mind.
1. "<option value'en-ca-rl' >Catalan → English</option>"
The = is missing, this causes the script to incorrectly report that
the dictionary is not available.
2. Language switching.
Lingro allows you to quickly switch the translation direction with a
click of a button. They say that code speaks louder than words, so.
function swichdirection() {
var d = document.getElementById("direction");
var p = d.value.split("-");
p[2] = p[2]=="rl"?"lr":"rl";
d.value = p.join("-");
}
3. I get big delays in between each keypress when typing into the word
textbox, using a slight delay which is reset with each keypress should
improve the situation.
Replace:
<input id="word" name="word" type="text"
onkeyup="lookUp(this.value,true,
document.forms[0].direction.value);"/>
With
<input id="word" name="word" type="text"
onkeyup="delayLookUp(this.value,true,
document.forms[0].direction.value);"/>
and add this function
function delayLookUp(value, showLexicalInfo, dir) {
cmd = 'lookUp("' + value + '", ' + showLexicalInfo + ', "' + dir + '")';
clearTimeout(timerId);
timerId = setTimeout(cmd, 500);
}
On 25/01/2008, Enrique Benimeli <ebenimeli@...> wrote:
> hi!
>
> I just wanted to tell you that now you can easily look up for dictionary
> entries using DicLookUp. You can test it on the Apertium website:
> http://xixona.dlsi.ua.es/apertium-www/?id=lookup
>
> The service is available for all language pairs developed so far, also for
> Spanish-English (marked as "beta" for now, because I've got it crossing
> Spanish-Catalan and Catalan-English pairs).
>
> Enjoy it!
> Enrique
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Apertium-stuff mailing list
> Apertium-stuff@...
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
|