Skip to content

Commit

Permalink
trying this small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hubisan committed Jul 24, 2024
1 parent 394d7db commit d06edde
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions woerterbuch.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
;; Maintainer: Daniel Hubmann <[email protected]>
;; URL: https://github.com/hubisan/woerterbuch
;; Version: 0.1.0
;; Package-Requires: ((emacs "28.1"))
;; Package-Requires: ((emacs "29.4"))
;; Keywords: convenience

;; This file is not part of GNU Emacs
Expand Down Expand Up @@ -246,7 +246,10 @@ the text. Gets the definition from URL `https://www.dwds.de.'"
(text (dom-texts
(dom-by-class
leseart
"^dwdswb-definition$"))))
;; So ging es nicht, z. B. mit Wort
;; kirre
;; "^dwdswb-definition$"
"^dwdswb-definitionen$"))))
(when (and (stringp id) (not (string-empty-p text)))
(cons id text))))
lesearten)))
Expand Down Expand Up @@ -681,7 +684,8 @@ openthesaurus."
(synonyms (cdr-safe word-and-synonyms)))
(when woerterbuch-synonyms-add-synonyms-from-wiktionary
(when-let* ((wiki-synonyms
(woerterbuch--synonyms-wiktionary-retrieve-as-string word-used)))
(woerterbuch--synonyms-wiktionary-retrieve-as-string
word-used)))
(setq synonyms (concat synonyms wiki-synonyms))))
(save-excursion
(woerterbuch--org-insert synonyms with-heading))))
Expand Down

0 comments on commit d06edde

Please sign in to comment.