Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtenders/emacs-leo
Emacs interface for dict.leo.org
https://github.com/mtenders/emacs-leo
emacs
Last synced: 4 months ago
JSON representation
Emacs interface for dict.leo.org
- Host: GitHub
- URL: https://github.com/mtenders/emacs-leo
- Owner: mtenders
- License: gpl-3.0
- Created: 2020-10-21T21:28:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T14:13:38.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T03:43:11.499Z (6 months ago)
- Topics: emacs
- Language: Emacs Lisp
- Homepage:
- Size: 285 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leo.el
[![MELPA](https://melpa.org/packages/leo-badge.svg)](https://melpa.org/#/leo)This package allows you to interact with [Leo.de](https://leo.de) dictionaries from within emacs.
It provides the command `leo-translate-word`. If no other phrase is entered, the word currently under the cursor is used. It translates between German and the language set by the custom variable `leo-language`. The second language can also be specified interactively by invoking the commands with a prefix argument.
Results are sorted by part of speech, and display all additional information about the term such as usage, case markers, linguistic variant, etc. They also include a direct link to conjugation or inflection tables, shown as the icon `▦` (or `#`).
In the results buffer:
- click on a word to search for it
- `` to a word or phrase then hit `` to search for it
- `t` to search again
- `C-u t` to search again and choose your language
- `,` and `.` to go to the previous/next part of speech heading.
- `f` to jump to forum results
- click on a part of speech heading to view more results of only that type.
- `b` to view results in external browser
- and `c` to search the same term with [dictcc.el](https://github.com/martenlienen/dictcc.el) if it's installed.Links to forum results are also displayed. It is better to view these externally, which you can do by `C-u RET` with point on an entry.
If no results are returned, a list of suggestions is displayed which are also click (or tab/return) to search.
For the moment there is no functionality to return to previous result. The easiest way to do this is `t` for a new search, then `M-p` to scroll back through search history.
Available languages: `en`, `es`, `fr`, `it`, `ch`, `pt`, `ru`, `pl`.
The pairs tested while hacking on this are `en` < > `de`, plus a little `fr` < > `de`. Other languages may not work as well. The propertizing of entries isn't perfect, but it's good enough to rely on and is still being improved.
It looks like this:
![emacs-leo-screenshot](./emacs-leo-screenshot.png)