You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
mouse bot 75a118aef8 comment melpa 2 weeks ago
.gitignore Initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md comment melpa 2 weeks ago
emacs-leo-screenshot.png screenshot 2 weeks ago
leo-inspect.el boilerplate leo-inspect 2 weeks ago
leo.el propertize search term: add \\b to regex, and map split-string 2 weeks ago

README.md

leo.el

This package allows you to interact with Leo.de dictionaries from within emacs. It extends emacs-leo.

It provides the commands leo-translate-word and leo-translate-at-point. They translate 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
  • <tab> to a word or phrase then hit <return> to search for it
  • hit t to search again
  • C-u t to search again and choose your language
  • b to view results in external browser
  • and c to search the same term with dictcc.el if it's installed.

Links to forum results are also displayed. It is better to view these externally, which you can do using a prefix argument.

If no results are returned, a list of suggestions is displayed which are also click (or tab/return) to search.

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