English Dictionary--SDCV under Linux Terminal (ext.)

Source: Internet
Author: User
Tags readline

SDCV is all called StarDict console version, which is the dictionary under the terminal. Why choose this, for the following reasons:
1, StarDict GUI do not good, always out of trouble.
2, there is no other good translation software under Linux.
3, SDCV is also very convenient to use.

My system is Ubuntu 8.10, and other Linux systems should be similar.
First, install:sudo apt-get install SDCV
Then, the dictionary data is installed and only SDCV with no data is installed. Yes: StarDict dictionaries
To download the Tarbal (that is, the tar.bz2) format.
Third, unzip the package to ~/.stardict/dic this directory, of course, can also be placed in other directories, and then let ~/.stardict/dic
Point to this directory.

Now, you can query the word by knocking SDCV at the terminal. But it's not over yet, and I have some improvements. If you are not accustomed to using shortcut keys, you may not need to look at the back.

Four, open in Terminal: Gconf-editor. If not, then install: sudo apt-get install Gconf-editor
Five, in the Gconf-editor, search keybinding, find global_keybindings and Keybinding_commands.
Six, change the global_keybindings in the Run_command_n to a shortcut (n is the serial number),
Like what<control><alt><shift>s
VII, the Keybinding_commands in the Command_n (where N and the sixth step corresponds),
Switchgnome-terminal--window-e SDCV
Indicates a new terminal window (Windows) is opened, and then runs the (execute) SDCV program.

How about now? I just press ctrl+alt+shift+s, it will pop up a terminal window, can be used to query the word. No need to be able to close at any time, the equivalent of Kingsoft PowerWord hotkey. When the original use of stardict, because do not provide hot Qian, let me very disappointed.

=========================================================SDCV can also be used in vim, just add in ~/.VIMRC

Set KEYWORDPRG=SDCV

In this way, in normal mode press the K key (Shift+k), the word that the cursor is located will call SDCV to query.

================================================================================== In addition, if you want SDCV to automatically record the words you've checked, The ReadLine library needs to be supported at SDCV compile time. Package Manager provides the SDCV version does not know support SDCV, if you download the source code compiled installation, the system needs to install a Readline-devel package. The word is saved in the ~/.sdcv_history file by default, and the number of saved words is specified by the system variable Sdcv_histsize, which is 2000 by default. Transferred from: http://blog.chinaunix.net/uid-21202106-id-2406760.html

English Dictionary--SDCV under Linux Terminal (ext.)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.