Article Title: Share the StarDict dictionary file between Windows and Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
StarDict (http://stardict.sourceforge.net/download.php) is a very good free dictionary, its main body is actually a dictionary engine. But because there are a lot of enthusiastic people, they have contributed a lot of dictionary files (http://stardict.sourceforge.net/Dictionaries_zh_CN.php), making this free dictionary become very huge, there are a lot of content you can not think.
Back to the topic of this article, because StarDict has Windows and Linux versions (and more versions adapted to different operating system platforms), and their dictionary files are the same, therefore, if you have installed Windows and Linux on your computer, just one dictionary file is enough. The procedure is as follows:
Install corresponding StarDict versions on Windows and Linux, download the StarDict dictionary files from the Internet, and decompress these files to the Dic directory under the StarDict installation directory of Windows. For example, the Chinese and English longways dictionary installed on my machine is located:
D: \ Program Files \ StarDict \ dic \ stardict-langdao-ce-gb-2.4.2
There should be such (or similar) files.
Langdao-ce-gb.dict.dz
Langdao-ce-gb.idx
Langdao-ce-gb.idx.oft
Langdao-ce-gb.ifo
After installing the Windows program, go back to your Linux and find the installation directory of your StarDict dictionary. Here I will take my machine as an example, if your machine also installs StarDict from the Ubuntu source, the dictionary file will be placed in:
/Usr/share/stardict/dic
After confirming the location, run the following statement (modify the installation directory based on your machine)
Ln-s "/media/wind/Program Files/StarDict/dic/stardict-langdao-ce-gb-2.4.2"/usr/share/stardict/dic/stardict-langdao-ce-gb-2.4.2"
(Note:/media/wind is my Linux Windows D: disk mount point .)
In this way, you can establish a soft connection to the directory under Windows in/usr/share/stardict/dic. Through this soft connection, StarDict in Linux can find the desired dictionary file.
However, if you put the dictionary file in linux, there is no way for StarDict in Windows to obtain a shared dictionary.
Cause: first, there is no perfect solution to read Ext2/Ext3 in Windows.
Second, there is no soft connection function in Linux/Unix in Windows.