Moved !!!

I have moved my blog here

Please don't leave any comments here if you want to add some comment you can follow the link above and lave your comment there. History have been moved as well

2008-11-14

ubiquity command dictionary


Another nice command for ubiquity !!!

Well the verb = command is called dictionary and it can handle selection or just typed text and will translate it to languge specified from the language specified. Well almost the vay like built in translate command works. You can ask then why do we need another one ??

Well the thing is that google translate is pretty nice with translation of the text, while it sucks if you want to translation just a one word. You will fill it even more if the word is technical or scientific one. In that case ordinary dictionaries are mutch better llike lingvo stardict etc.. they also suggest several options again unlilke google. At least my sweet angel was having this problem so I decided to make this verb for her.

The second reason is as I am a Georgian and google tarnslate not (hopefully yet) support that languge it makes sence to me, to have a georgian > english, english > georgian dictionaries. Theres really nice georgian web resource translate.ge which is a online dictionary with nice API.

Because of all this reasons I decided to create this verb. Unfortunataly API of http://www.translate.ge and http://www.lingvo.com/. So I had to use different approach acording to the languge text to be translated from and translated to... Even worth while having nice API on the Georgian resource wheer results ar returned as an html containing only the actual translation second site opens a new page with bunch of stuff to be parsed :(

Anyway command is ready for use. There are still some minor issues related to the second page because of API and there also something I'm going to improve in the future. But still current version is quite stabil and does its work so give it a try and post back a feeback

Some Tips

By the default verb translates from english to georgian, but it's possible to change this behavior and set default for example french to russian. If you want to do so you need to type in the address bar of your firefox "about:config" after warning message you should see a sort of grid. That's your firefox preferances. what we whant to do to add two new preferances for defaults of our ubiquity command. to do so hust right click and choose New > String in the popup

and then add

Preferance name : ubiquity.commands.Dictionary.from
value : (can be any from ) georgian, english, russian, german, french, italian, spanish

and then teh same

Preferance name : ubiquity.commands.Dictionary. to
value : (can be any from ) georgian, english, russian, german, french, italian, spanish

P.S.: take in mind that currently you can translate from georgian to english as the other way round and from russian to any from the above or otherway rounf from any of above to russian

0 comments: