Readme clarifications

This commit is contained in:
TEC 2021-01-26 23:14:13 +08:00
parent 9281660c30
commit 1ab631538a
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 13 additions and 4 deletions

View File

@ -35,11 +35,20 @@ better, a PR!
+ (/optional/) ~visual-fill-column-mode~
* Configuration
If you happen to use Doom, you may find [[https://tecosaur.github.io/emacs-config/config.html#lexic][this section]] of my config interesting.
If you happen to use Doom, you may find [[https://tecosaur.github.io/emacs-config/config.html#dictionary][this section]] of my config interesting.
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.
In order to recognise format one of the supported dictionaries, Lexic
matches the =bookname== parameter from the StarDict =.ifo= file against the entries
in ~lexic-dictionary-specs~. Lexic needs to do this, because formatting is
inconsistent, and so must be implemented on a per-dictionary basis.
For example, if I downloaded a copy of /Soule's English Synonyms/, I'd need to
make sure that the =SoulesSynonymns.ifo= file contains the line ~bookname=Soule's
Dictionary of English Synonyms~. Check the value of ~lexic-dictionary-specs~ to see
what it expects for other dictionaries supported by default.
Then, if I open a new Emacs session, and look for a synonym I should see it
formatted nicely 🙂.
* Demo
[[https://tecosaur.com/lfs/lexic/lexic.gif]]