[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacspeak-its.el



井上です。

itsのハックありがとうございます。
なかなかいいですね。
是非BEP本体に追加したいです。
これってemacspeak-eggに入れてしまうのはまずいのでしょうか。

聴音で死ぬ問題は下のようにdtk-speakの引数をbep-get-cursor-string()に通せ
ば解決します。副作用もないと思いますが、もしあったらきっと
bep-get-cursor-stringの根本的問題です。

以下、最後の方だけ変更したemacspeak-its.elです。

;;; emacspeak-its.el --- Speech enable its -- Fluent spoken access to its(egg4)
;;; This file is not part of GNU Emacs, but the same permissions apply.
;;;
;;; GNU Emacs is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2, or (at your option)
;;; any later version.
;;;
;;; GNU Emacs is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Emacs; see the file COPYING.  If not, write to
;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

(require 'cl)
(declaim  (optimize  (safety 0) (speed 3)))
(require 'emacspeak-speak)

(require 'emacspeak-sounds)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defadvice its-buffer-ins/del-SYL (after   emacspeak pre act )
  "read the  SYL(about what means SYL, please refer to its.el" 
	(if ad-return-value
	    (dtk-speak (bep-get-cursor-string output))))

(provide 'emacspeak-its)