Skip to content

honmaple/emacs-maple-translate

Repository files navigation

emacs-maple-translate

Translate word between chinese and english.

How to use?

(use-package maple-translate
  :quelpa (:fetcher github :repo "honmaple/emacs-maple-translate")
  :commands (maple-translate maple-translate+))

Or alternatively, you can download the repository and install manually by doing:

git clone https://github.com/honmaple/emacs-maple-translate ~/.emacs.d/site-lisp/maple-translate
(use-package maple-translate
  :ensure nil
  :commands (maple-translate maple-translate+))

Customize

(add-to-list 'maple-translate-alist '(custom . custom-translate-function))
(setq maple-translate-engine 'custom)
;; or use multi engines
(setq maple-translate-engine '(youdao dictcn custom))

;; with google translate
(setq maple-translate-google-url "https://translate.googleapis.com/translate_a/single")
(setq maple-translate-google-proxies
      '(("http" . "127.0.0.1:1086")
        ("https" . "127.0.0.1:1086")))

;; with offline sdcv
(setq maple-translate-sdcv-dir "~/.stardict/dicts")
(setq maple-translate-sdcv-dicts
      '(("lazyworm-ec" . "stardict-lazyworm-ec-2.4.2")
        ("lazyworm-ce" . "stardict-lazyworm-ce-2.4.2")))

Offline

  • [X] Sdcv

Long sentence

  • [X] Youdao
  • [X] Google

Supported Engines

  • youdao
  • dictcn
  • iciba
  • bing
  • google
  • sdcv

About

Translate word between chinese and english.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published