« February 2005 | Main | April 2005 »
I received some useful channels for translating words from AcidSearch fan Michael Pack.
{name="AltaVista - Babel Fish Translation French -> English"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=fr_en"; key=""; shortcut=""; UID="345";}
{name="AltaVista - Babel Fish Translation English -> French"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=en_fr"; key=""; shortcut=""; UID="344";}
{name="AltaVista - Babel Fish Translation Japanese -> English"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=jp_en"; key=""; shortcut=""; UID="347";}
{name="AltaVista - Babel Fish Translation English -> Japanese"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=en_jp"; key=""; shortcut=""; UID="346";}
{name="AltaVista - Babel Fish Translation - German -> English"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=de_en"; key=""; shortcut=""; UID="349";}
{name="AltaVista - Babel Fish Translation English -> German"; prefix="http://babelfish.altavista.com/tr?trtext="; suffix="&lp=en_de"; key=""; shortcut=""; UID="350";}
Also, thought I would give a sample channel that demonstrates some of the JavaScript capabilities of AcidSearch. It's a guessing game. However, it will not work quite as expected with the current version of AcidSearch 0.4.
{name="Guessing Game"; prefix="{{if (!r) {r = Math.floor(Math.random()*1000)+1; n=0;} g="; suffix="; n++; if (g<r) return 'My number is bigger!\n\nYou have made '+n+' guesses so far.'; if (g>r) return 'My number is smaller!\n\nYou have made '+n+' guesses so far.'; return 'Nice... you win!\n\nYou got it in '+n+' guesses.\nReload the page to start a new game!';}}"; key=""; shortcut=""; UID="1101";}
To use any of these channels, open the Edit Search Channels window, select the text (including the brackets) of the channel you want to add, and drag the text to the Edit window.