[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: ispellが動かない



# 乗りかかった船なので。。。

From: Yasushi <paf03637@xxxxxxxxx> さん曰く
Subject: ispellが動かない
Message-ID: <20060114.030444.65737438.paf03637@xxxxxxxxx>
Date: Sat, 14 Jan 2006 03:04:44 +0900 (LMT)

>   Spawning child process: exec format error
> 
> が出ます。

こういうときは
http://www.jpl.org/elips/BUGS-ja.html
を参考に。

# ただし、今回はソフトのバグではなくて、設定ミスの可能性が高いか
# ら必要ないかも。だけど、どの関数でエラーしているかぐらいはわか
# らないと手も足もでないです。
# 大事なところが抜けているので想像力を総動員しないとわからない。。。

> C:/Meadow/lisp/textmodes にispell.el, ispell.elc を置き、
> 
> C:/ispell/ に UK-xlg.hash, US-xlg.hash, american.hash, 
>              buildhash.exe, egrep.exe, english.aff, 
>              english.hash, icombine.exe, ijoin.exe,
>              ispell.exe, look.exe
> 
> を置いてあり、.emacsには、
> 
> (setq ispell-command "c:/ispell/ispell.exe")
> (setq ipsell-look-command "c:/ispell/look.exe")

このあたりのぶつは

http://www.fsci.fuk.kindai.ac.jp/~kakuto/win32-ptex/web2c75.html
http://www.fsci.fuk.kindai.ac.jp/aftp/pub/ptex/utils/ispell-3.3.02-w32.tar.gz

の角藤さんのものですか?

それがわからないとなんともいえませんが、大山さんの設定は上記に同
梱されている readme の設定とも

http://www.bookshelf.jp/soft/meadow_53.html#SEC763

で説明されているものとも違います。

一度設定を見直して、角藤さんの設定か、Meadow memo の設定かに合わ
せた方が良いと思います。

実際に角藤さんのものを使ったわけではありませんが、システムに付属
している elisp を自前の物に置き換えるなら、上書きをせずに

c:/Meadow/site-lisp/ispell/ispell.el
c:/Meadow/site-lisp/ispell/ispell.elc

と load-path の前の方に置いた方が良いです。


以下、補足ですが ispell には International ispell (ver.3)
と (確か)Gnu ispell (ver.4) と二種類ありまして、上記の Meadow
Memo での説明も角藤さんのパッケージも ispell3 です。しかし、大山
さんの

> (setq ispell-command "c:/ispell/ispell.exe")

という設定は ispell 4 向けのものです。昔は違いましたが、今となっ
ては推奨は ispell 3 です。

## もう一丁補足ですが。

# ispell4 は aspell と名前が変わって進化しているという認識で良い
# のかしら? 最近立ち上げた Meadow3 だと Cygwin についていた
# aspell.exe が勝手に動いてくれましたが、「ja_JP なんて LANG 知
# らない」と叱られたので以下のごまかしが必要でした。
# これaspell 側の設定でうまくいくのかしら?

;;  (eval-after-load "ispell"
;;    '(progn
;;       (when (and (boundp 'ispell-program-name)
;;  		(string-match "aspell" ispell-program-name )
;;  		(fboundp 'ispell-init-process))
;;         (defadvice ispell-init-process (around set-lang activate)
;;  	 (let ((process-environment (copy-sequence process-environment)))
;;  	   (setenv "LANGUAGE" "C")
;;  	   (setenv "LC_ALL" "C")
;;  	   (setenv "LANG" "C")
;;  	   ad-do-it)))))

-- 
白井秀行 (mailto:shirai@xxxxxxxxxxx)