Tuesday, April 24, 2007

How to implement the Babylon dictionaries in Ubuntu?



Have you missed the Babylon program under windows , with all those good dictionaries?
here I will tell you how to make Babylon dictionaries work under ubuntu .

StarDict works like Babylon it is resident in memory , you select the word and it will show the definition in a small pop-up window fastly, ofcourse you can change the keys . (I changed it so when I press WIN key it show me the definition of the selected word) you can install StarDict using synaptic package manager easily .

How to make the Babylon dictionaries work in ubuntu(stardict)?
they have some dictionaries on StarDict site but compared to Babylon dictionaries they are so few.. first go to Babylon site and download the dictionary which you want to use , (I download Kurdish and Farsi ones)

Now we should convert the downloaded dictionary to StarDict format ,
there is a program named dictconv , to convert dictionary formats to each other (including Babylon to StarDict)

here we go :
1- download dictconv here . you should install it by source (don't loose your pants , it is not hard)

2-Extract the zipped file which you downloaded , somewhere in your desktop .
3-Before we continue , open synaptic package manager and install "libxml2-dev" as it is needed for our program .

then go to the folder on the desktop
cd dictconv
4-then enter this :
sudo ./configure
5- if the previous thing was done without any error continue , if it gave you error , (it usualy tells you , you need to install something) solve the error and continue :
sudo make all install
Now it is installed ! but we still need another program
again go to synaptic package manager and install "dictzip".

now here we go to convert the bayblon dictionary : for example mine is Farsi.BGL
I copy it to the desktop then
cd Desktop
then
dictconv Farsi.BGL -o Farsi.ifo

in this example Farsi.BGL is the one which I downloaded from Babylon site and Farsi.ifo is the name of the output file which I want to make .

if you have done it successfully ,it should generate 3 files !

one of those 3 generated files is Farsi.dict (Farsi in my case)
now we should do this :
dictzip Farsi.dict
this command changes our .dict file to .dz !

now we should have three files
Farsi.dz
Farsi.ifo
Farsi.idx
create a folder on your desktop and move these 3 files to that folder .
and move those generated files to there , in my case I created Farsi in desktop and moved them
to the Farsi folder .

now we should move the whole things to the StarDict folder
sudo mv Farsi /usr/share/stardict/dic

and now I restart the StarDict and click on the "manager dictionaries" (it is in the Right Bottom corner of the window) and Enable the Farsi dictionary.

Thats all folks . I am enjoying Babylon dictionry under ubuntu !
Post a Comment

Related

Labels

computer (48) ubuntu (46) linux (28) tutorial (20) opinion (17) programming (14) software overview (13) terminal (12) troubleshooting (8) life (7) literature (7) poem (7) human languages (6) vim (6) bash (5) google (5) python (5) android (4) cars (4) phpBB (4) suggestion (4) tips (4) 12.04 (3) Chef (3) extension and addons (3) firefox (3) java (3) personal (3) russian (3) shell (3) windows (3) 64bit (2) Calligraphy (2) Chicago (2) Vagrant (2) apple (2) backup (2) bug (2) code (2) eclipse (2) funny (2) google chrome (2) idea (2) monitor (2) php (2) phpBB3 (2) shorter prompt (2) ssh (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) AutoRotate (1) CTRL+ALT+DELETE (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) amazon (1) audio (1) aws (1) background process (1) battery (1) bing (1) blank (1) blogging (1) bmw (1) boot (1) business review (1) car (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) conference (1) cookie (1) cron (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) gimp single window (1) git (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) install (1) iterator (1) links (1) linu (1) linux links (1) list (1) mac os (1) media server (1) microsoft (1) moonlight (1) music (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) parking (1) permission (1) philosophy (1) photo (1) prompt (1) protest (1) ps3mediaserver (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) scala (1) screenshot (1) security (1) selinux (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) suspension (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) weblogic (1) wget (1) with space (1) xorg (1) xrand (1)