7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

emacsでgoogle-translateとmicrosoft-translatorで同時に翻訳する

Last updated at Posted at 2016-06-04

"Emacsで英和辞書や和英辞書をすぐに引けるようにしたい を改良"の設定と"macsでMicrosoft Translatorを作ってみた を改良"の設定を使ってmicrosoft-translatorとgoogle-translateを順番に起動するだけ。

(defun google-microsoft-translate (arg)
  (interactive "p")
  (setq arg (microsoft-translator--get-string arg))
  (microsoft-translator-auto-translate arg)
  (google-translate-enja-or-jaen arg))

(push '("*Google Translate*") popwin:special-display-config)
(push '("*Microsoft Translator*") popwin:special-display-config)

(global-set-key (kbd "C-M-g") 'google-microsoft-translate)

C-M-gで起動。
C-u でパラグラフ
C-u C-u で単語
C-u C-u C-u でキーボードから単語や文を入力
引数なしでセンテンス
リージョンを指定していればそのリージョン

両バッファを同時に表示するのはpopwinに依存。

google-microsoft-translate.png

参考:
http://togetter.com/li/954187

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?