2020-08-08 14:44:59 +00:00
|
|
|
#+TITLE: Emacs Lexical Information Viewer
|
2020-07-29 16:26:22 +00:00
|
|
|
#+AUTHOR: tecosaur
|
|
|
|
|
|
|
|
It's nice to know more about the words you're using. Online dictionaries have
|
|
|
|
proliferated and become quite useful, and there are some nice packages available
|
|
|
|
like [[https://github.com/abo-abo/define-word][define-word]] which make use of such online resources.
|
|
|
|
|
|
|
|
However, the quicker I can know more about the words I'm using, the better!
|
|
|
|
Offline dictionaries are obviously the way to go then, and the Console
|
2020-08-08 20:05:16 +00:00
|
|
|
implementation of StarDict already has a package or two for Emacs which I can
|
|
|
|
build off.
|
2020-07-29 16:26:22 +00:00
|
|
|
|
2020-08-08 20:05:16 +00:00
|
|
|
However, I'd like to really focus on the words, and making it easy and intuitive
|
|
|
|
as possible to gain a greater understanding of the words and phrases we use.
|
|
|
|
|
|
|
|
Thus, I wanted the focus here to not be on the specific backend used (though
|
2020-08-30 10:21:01 +00:00
|
|
|
only =sdcv= has been implemented as of yet). A near-term goal is to rewrite the
|
|
|
|
implementation to abstract away the specific tool used, allowing for online
|
|
|
|
tools among other backends (such as any future GoldenDict CLI).
|
|
|
|
From there it could be nice to allow for combination of multiple tools (e.g.
|
|
|
|
=sdcv= + online service).
|
2020-07-29 16:26:22 +00:00
|
|
|
|
|
|
|
This has rich support for the following dictionaries:
|
|
|
|
+ [[http://download.huzheng.org/dict.org/stardict-dictd-web1913-2.4.2.tar.bz2][Webster's Revised Unabridged Dictionary (1913)]]
|
|
|
|
+ [[https://packages.debian.org/sid/dict-gcide][GCIDE]] (with conversion from dict to StarDict)
|
|
|
|
+ [[http://download.huzheng.org/bigdict/stardict-Soule_s_Dictionary_of_English_Synonyms-2.4.2.tar.bz2][Soule's Dictionary of English Synonyms]]
|
|
|
|
+ [[http://download.huzheng.org/dict.org/stardict-dictd_www.dict.org_elements-2.4.2.tar.bz2][Elements Database]]
|
|
|
|
+ [[https://github.com/tuxor1337/dictmaster][Douglas Harper's Online Etymology Dictionary]]
|
|
|
|
|
2020-08-30 10:21:01 +00:00
|
|
|
If there's something you feel is missing, feel free to make an issue --- or even
|
|
|
|
better, a PR!
|
|
|
|
|
2020-10-05 02:33:25 +00:00
|
|
|
* Requirements
|
|
|
|
+ The command line stardict tool =sdcv= (support for other backends is planned)
|
|
|
|
+ (/optional/) ~visual-fill-column-mode~
|
|
|
|
|
|
|
|
* Configuration
|
2020-08-30 10:21:01 +00:00
|
|
|
If you happen to use Doom, you may find [[https://tecosaur.github.io/emacs-config/config.html#lexic][this section]] of my config interesting.
|
2020-07-29 16:26:22 +00:00
|
|
|
|
2020-10-05 02:33:25 +00:00
|
|
|
To set up Lexic to work with your installed dictionaries you want to look at the
|
|
|
|
~lexic-dictionary-specs~ variable which formats results based on the =bookname=
|
|
|
|
parameter of the =sdcv= dictionary's =.ifo= file.
|
|
|
|
|
|
|
|
* Demo
|
2020-08-08 20:05:38 +00:00
|
|
|
[[https://tecosaur.com/lfs/lexic/lexic.gif]]
|