find aspell like ispell
svn: r3072
This commit is contained in:
parent
4a0d8018b1
commit
684e4baf24
|
@ -94,8 +94,9 @@
|
|||
|
||||
(define (clean-up to-send)
|
||||
;; Drop characters that ispell or aspell may treat as word
|
||||
;; delimiters. We can to keep ' in a word, but double
|
||||
;; delimiters. We can to keep ' in a word, but double or leading
|
||||
;; '' counts as a delimiter, so end by replacing those.
|
||||
(regexp-replace* #rx"^'"
|
||||
(regexp-replace* #rx"''+"
|
||||
(list->string
|
||||
(map (lambda (b)
|
||||
|
@ -106,7 +107,8 @@
|
|||
b
|
||||
#\x))
|
||||
(string->list to-send)))
|
||||
"x"))
|
||||
"x")
|
||||
""))
|
||||
|
||||
(define has-ispell? 'dontknow)
|
||||
(define ispell-prog #f)
|
||||
|
@ -119,11 +121,15 @@
|
|||
"ispell.exe"
|
||||
"ispell")
|
||||
#f)
|
||||
(ormap (lambda (x) (and (file-exists? x) x))
|
||||
'("/sw/bin/ispell"
|
||||
"/usr/bin/ispell"
|
||||
"/bin/ispell"
|
||||
"/usr/local/bin/ispell"))
|
||||
(ormap (lambda (ispell)
|
||||
(ormap (lambda (x)
|
||||
(let ([x (build-path x ispell)])
|
||||
(and (file-exists? x) x)))
|
||||
'("/sw/bin"
|
||||
"/usr/bin"
|
||||
"/bin"
|
||||
"/usr/local/bin")))
|
||||
'("ispell" "aspell"))
|
||||
(find-executable-path (if (eq? (system-type) 'windows)
|
||||
"aspell.exe"
|
||||
"aspell")
|
||||
|
|
Loading…
Reference in New Issue
Block a user