Linux 开源词典工具及下载链接

"本文介绍了如何在Linux环境下使用开源的SDCV翻译工具,并展示了如何通过配置.vimrc文件将SDCV集成到VIM编辑器中,提供两种快捷方式:按F键调用查词函数和使用'+w'组合键在侧边栏显示翻译。用户只需下载可执行文件、源代码、词典和VIM插件,即可在终端和VIM中便捷地进行翻译操作。"
摘要由CSDN通过智能技术生成

sdcv是开源的 Linux 下翻译用词典工具,可在终端命令行方式使用,也可集成在VIM、GEdit等编辑器中使用,配置简单、使用方便。使用效果如下:

.vimrc配置文件配置如下:

方法一,配置按F键调用查词函数,回车可执行:

 51 "设置终端词典                                                                    
 52 function! Mydict() 
 53     let expl=system('sdcv -n ' . 
 54         \ expand("")) 
 55     windo if                                                                     
 56         \ expand("%")=="diCt-tmp" |
 57         \ q!|endif
 58     25vsp diCt-tmp 
 59     setlocal buftype=nofile bufhidden=hide noswapfile 
 60     1s/^/\=expl/                                                                 
 61     1   
 62 endfunction                                                                      
 63 nmap F :call Mydict()

方法二,按 '\ + w' 组合键查词,直接在左侧打开翻译窗口,配置如下:

773 " Searching word with sdcv at Vim.
774 
775 function! SearchWord()
776     let expl=system('sdcv --utf8-output -n ' .
777                 \  expand("<cword>"))
778     windo if
779                 \ expand("%")=="diCt-tmp" |
780                 \ q!|endif
781     50vsp diCt-tmp
782     setlocal buftype=nofile bufhidden=hide noswapfile
783     1s/^/\=expl/
784     1
785 endfunction
786 
787 nmap <leader>w :call SearchWord()<CR>

以下是词典工具下载链接:

Linux词典工具含源代码(开源命令行词典SDCV,含本地词典,可集成在VIM中使用)-C++代码类资源-CSDN下载

1.可执行文件:bin目录下的sdcv为编译好的可执行文件,可直接使用

2.最新源代码:sdcv-master0.5.2.zip

3.词典:21世纪英汉汉英双向词典

4.VIM插件脚本:sdcv.vim,放在home/user/.vim/plugin目录下即可使用

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Linux 大全; 按照A~Z区分; A a−Linux a−Linux is an x86 floppy−based mini−distribution, where assembly code meets Linux kernel. It contains only programs written in assembly language. It is extemely small, yet functional, and provides HTTP and FTP services out−of−the−box. Initial version 0.17 was released August 17, 2002. A floppy−based distribution. From LWN Distribution List http://www.tldp.org/LDP/Linux−Dictionary/html/index.html a2p Awk to Perl translator From whatis http://www.tldp.org/LDP/Linux−Dictionary/html/index.html a2ps GNU a2ps 'Anything to PostScript' converter and pretty−printer a2ps converts files into PostScript for printing or viewing. It uses a nice default format, usually two pages on each physical page, borders surrounding pages, headers with useful information (page number, printing date, file name or supplied header), line numbering, symbol substitution as well as pretty printing for a wide range of programming languages. Historically, a2ps started as a text to PostScript converter, but thanks to powerful delegations it is able to let you use it for any kind of files, ie it can also digest manual pages, dvi files, texinfo, .... Among the other most noticeable features of a2ps are: − various encodings (all the Latins and others), − various fonts (automatic font down loading), − various medias, − various printer interfaces, − various output styles, − various programming languages, − various helping applications, − and various spoken languages. From Debian 3.0r0 APT http://www.tldp.org/LDP/Linux−Dictionary/html/index.html a2ps The a2ps filter converts text and other types of files to PostScript format. A2ps has pretty−printing capabilities and includes support for a wide number of programming languages, encodings (ISO Latins, Cyrillic, etc.), and media. From Redhat 8.0 RPM http://www.tldp.org/LDP/Linux−Dictionary/html/index.html a52dec Utilities to extract and decode ATCS A/52 streams Utilities to extract and decode ATCS A/52 streams. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC−3. From Debian 3.0r0 APT http://www.tldp.org/LDP/Linux−Dictionary/html/index.html AA Auto Answer (MODEM) From VERA http://www.tldp.org/LDP/Linux−Dictionary/html/index.html aa3d An ASCII art stereogram generator This program generates the well known and popular random dot stereograms in ASCII art. From Debian 3.0r0 APT http://www.tldp.org/LDP/Linux−Dictionary/html/index.html AAA Authentication, Authorization and Accounting From VERA http://www.tldp.org/LDP/Linux−Dictionary/html/index.html AAC Advanced Audio Coding (IIS, MPEG) From VERA http://www.tldp.org/LDP/Linux−Dictionary/html/index.html AAC Authorization and Access Control (IETF) From VERA http://www.tldp.org/LDP/Linux−Dictionary/html/index.html AAD Authorized AutoCAD Dealer (AutoCAD, CAD) From VERA http://www.tldp.org/LDP/Linux−Dictionary/html/index.html A
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

urhero

一切源于您的鼓励与支持,谢谢!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值