* emacs ispell error on windows10 with hunspell
@ 2020-04-30 16:06 Richard LIU
2020-04-30 17:40 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Richard LIU @ 2020-04-30 16:06 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Hello,
I encouted an error when try to use hunspell with emacs 26.3 on windows 10.
Please give me some help.
I installed hunspell on D:/Install , and hunspell.exe was in D:/Install/hunspell/src/tools/.
The dictionary files: en_US.aff and en_US.dic, were put in D:/Install/hunspell/src/tools/.
my config:
(add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
(setq ispell-program-name "hunpell")
;;(setq ispell-program-name (locate-file "hunspell"
;; exec-path exec-suffixes 'file-executable-p))
(use-package ispell
:config
(setq ispell-program-name
"D:/Install/hunspell/src/tools/hunspell.exe"))
(setq ispell-hunspell-dict-paths-alist
'(("en_US" "D:/Install/hunspell/src/tools/en_US.aff")))
(setq ispell-dictionary "en_US")
(setq ispell-personal-dictionary "D:/Install/hunspell/src/tools/en_US.aff")
run command [M-x ispell] got error:
Debugger entered--Lisp error: (error "Can't open affix or dictionary files for dictionary named \"en_US\".")
signal(error ("Can't open affix or dictionary files for dictionary named \"en_US\"."))
error("%s" "Can't open affix or dictionary files for dictionary named \"en_US\".")
ispell-init-process()
ispell-buffer-local-words()
ispell-accept-buffer-local-defs()
ispell-region(1 6738)
ispell-buffer()
ispell()
funcall-interactively(ispell)
call-interactively(ispell record nil)
command-execute(ispell record)
counsel-M-x-action("ispell")
ivy-call()
ivy-read("M-x " [eww-buffer-select soap-bound-operation-soap-headers origami-hide-node-overlay epg-context-signers org-babel-C-utility-header-to-C tex-chktex-program package-lint--sane-prefixes vc-git-stash-snapshot TeX-command-Biber avy-words epg--status-VALIDSIG org-publish--store-crossrefs help-variable gnus-sync org-emphasis-regexp-components mml-secure-smime-sign-with-sender gnus-delete-overlay vc-hg--read-u8 viper-deactivate-input-method-action vc-src-log-switches js--expression-in-sgml-indent-line sgml-syntax-propertize web-mode-warning-face delphi-column-of cl-print--preprocess org-publish-sanitize-plist eieio-class-tag--ede-target edebug-clear-frequency-count org-agenda-regexp-filter-preset Franklin\ Gothic\ Demi\ Cond 0 tramp-cleanup checkdoc-package-keywords-flag shr-parse-image-data soap-element-namespace-tag--cmacro org-man-fixed-width Edebug\ All\ Defs org-duration-format & \' :name-match osx-org-clock-menubar tramp-cache-data rx-trans-forms ebrowse-ms-definition-pattern--cmacro sgml-tag-name--cmacro todo-categories-mode log-edit-set-header expired tramp-gw-open-connection ...] :predicate #f(compiled-function (sym) #<bytecode 0x2139921>) :require-match t :history counsel-M-x-history :action counsel-M-x-action :sort t :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
Thanks a lot!
Yours,
Richard LIU
发送自 Windows 10 版邮件应用
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell error on windows10 with hunspell
2020-04-30 16:06 emacs ispell error on windows10 with hunspell Richard LIU
@ 2020-04-30 17:40 ` Eli Zaretskii
0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-04-30 17:40 UTC (permalink / raw)
To: help-gnu-emacs
> From: Richard LIU <richardliu1987@163.com>
> Date: Fri, 1 May 2020 00:06:57 +0800
>
> I installed hunspell on D:/Install , and hunspell.exe was in D:/Install/hunspell/src/tools/.
> The dictionary files: en_US.aff and en_US.dic, were put in D:/Install/hunspell/src/tools/.
> my config:
>
> (add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
> (setq ispell-program-name "hunpell")
> ;;(setq ispell-program-name (locate-file "hunspell"
> ;; exec-path exec-suffixes 'file-executable-p))
> (use-package ispell
> :config
> (setq ispell-program-name
> "D:/Install/hunspell/src/tools/hunspell.exe"))
>
> (setq ispell-hunspell-dict-paths-alist
> '(("en_US" "D:/Install/hunspell/src/tools/en_US.aff")))
> (setq ispell-dictionary "en_US")
> (setq ispell-personal-dictionary "D:/Install/hunspell/src/tools/en_US.aff")
>
>
> run command [M-x ispell] got error:
>
> Debugger entered--Lisp error: (error "Can't open affix or dictionary files for dictionary named \"en_US\".")
> signal(error ("Can't open affix or dictionary files for dictionary named \"en_US\"."))
> error("%s" "Can't open affix or dictionary files for dictionary named \"en_US\".")
What does Hunspell display if you run it from the cmd.exe shell's
prompt like this:
hunspell -D
^ permalink raw reply [flat|nested] 7+ messages in thread
* emacs ispell error on windows10 with hunspell
@ 2020-05-03 4:07 刘虎
2020-05-03 15:05 ` Eli Zaretskii
2020-05-04 0:23 ` Robert Thorpe
0 siblings, 2 replies; 7+ messages in thread
From: 刘虎 @ 2020-05-03 4:07 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 6625 bytes --]
hello, I am the one who sent email from "richardliu1987@163.com" for help,
I realize today that I can not receive a reply with my 163 mail. I heard
from my friend about your kind reply. Thank you very much!
Inspired by your answer,I think my problem may be caused by the wrong
placement of hunspell dictionary files, so I copied the dictionary
files " en_US.aff"
and "en_US.dic " to the dictionary C:/Hunspell. And I retyped hunspell -D
in cmd and get the following reply:
[image: image.png]
then I correct the init.el file as the following:
(add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
(setq ispell-program-name "hunpell")
(use-package ispell
:config
(setq ispell-program-name
"D:/Install/hunspell/src/tools/hunspell.exe"))
(setq ispell-hunspell-dict-paths-alist
'(("en_US" "C:/hunspell/en_US.aff")))
(setq ispell-dictionary "en_US")
(setq ispell-personal-dictionary "C:/hunspell/en_US.aff")
then I opened emacs and typed " M-x ispell " and get the following error:
Debugger entered--Lisp error: (error
"D:/Install/hunspell/src/tools/hunspell.exe did not output version line")
signal(error ("D:/Install/hunspell/src/tools/hunspell.exe did not output
version line"))
error("%s did not output version line"
"D:/Install/hunspell/src/tools/hunspell.exe")
ispell-init-process()
ispell-buffer-local-words()
ispell-accept-buffer-local-defs()
ispell-region(1 42762)
ispell-buffer()
ispell()
funcall-interactively(ispell)
call-interactively(ispell record nil)
command-execute(ispell record)
counsel-M-x-action("ispell")
ivy-call()
ivy-read("M-x " [eww-buffer-select soap-bound-operation-soap-headers
origami-hide-node-overlay epg-context-signers
reftex-untie-multifile-symbols tex-chktex-program
package-lint--sane-prefixes eww-handle-link TeX-command-Biber
reftex-default-bibliography epg--status-VALIDSIG
org-publish--store-crossrefs help-variable gnus-sync
org-emphasis-regexp-components mml-secure-smime-sign-with-sender
gnus-delete-overlay vc-hg--read-u8 viper-deactivate-input-method-action
vc-src-log-switches js--expression-in-sgml-indent-line
sgml-syntax-propertize web-mode-warning-face delphi-column-of
cl-print--preprocess org-publish-sanitize-plist eieio-class-tag--ede-target
ellipses org-agenda-regexp-filter-preset vc-git-conflicted-files 0
tramp-cleanup checkdoc-package-keywords-flag shr-parse-image-data
soap-element-namespace-tag--cmacro org-man-fixed-width :current-file
org-duration-format scale \' :name-match osx-org-clock-menubar for\
environment rx-trans-forms ebrowse-ms-definition-pattern--cmacro
sgml-tag-name--cmacro todo-categories-mode desktop-buffer-name expired
tramp-gw-open-connection ...] :predicate #f(compiled-function (sym)
#<bytecode 0x245c909>) :require-match t :history counsel-M-x-history
:action counsel-M-x-action :sort t :keymap (keymap (67108908 .
counsel--info-lookup-symbol) (67108910 . counsel-find-symbol))
:initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
Thank you very much for your help!
Best wishes!
Yours ,
Richard
The following is my former email:
------------------------------------------------------------------------------------------------------
Hello,
I encouted an error when try to use hunspell with emacs 26.3 on windows 10.
Please give me some help.
I installed hunspell on D:/Install , and hunspell.exe was in
D:/Install/hunspell/src/tools/.
The dictionary files: en_US.aff and en_US.dic, were put in
D:/Install/hunspell/src/tools/.
my config:
(add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
(setq ispell-program-name "hunpell")
;;(setq ispell-program-name (locate-file "hunspell"
;; exec-path exec-suffixes 'file-executable-p))
(use-package ispell
:config
(setq ispell-program-name
"D:/Install/hunspell/src/tools/hunspell.exe"))
(setq ispell-hunspell-dict-paths-alist
'(("en_US" "D:/Install/hunspell/src/tools/en_US.aff")))
(setq ispell-dictionary "en_US")
(setq ispell-personal-dictionary "D:/Install/hunspell/src/tools/en_US.aff")
run command [M-x ispell] got error:
Debugger entered--Lisp error: (error "Can't open affix or dictionary files
for dictionary named \"en_US\".")
signal(error ("Can't open affix or dictionary files for dictionary named
\"en_US\"."))
error("%s" "Can't open affix or dictionary files for dictionary named
\"en_US\".")
ispell-init-process()
ispell-buffer-local-words()
ispell-accept-buffer-local-defs()
ispell-region(1 6738)
ispell-buffer()
ispell()
funcall-interactively(ispell)
call-interactively(ispell record nil)
command-execute(ispell record)
counsel-M-x-action("ispell")
ivy-call()
ivy-read("M-x " [eww-buffer-select soap-bound-operation-soap-headers
origami-hide-node-overlay epg-context-signers
org-babel-C-utility-header-to-C tex-chktex-program
package-lint--sane-prefixes vc-git-stash-snapshot TeX-command-Biber
avy-words epg--status-VALIDSIG org-publish--store-crossrefs help-variable
gnus-sync org-emphasis-regexp-components mml-secure-smime-sign-with-sender
gnus-delete-overlay vc-hg--read-u8 viper-deactivate-input-method-action
vc-src-log-switches js--expression-in-sgml-indent-line
sgml-syntax-propertize web-mode-warning-face delphi-column-of
cl-print--preprocess org-publish-sanitize-plist eieio-class-tag--ede-target
edebug-clear-frequency-count org-agenda-regexp-filter-preset Franklin\
Gothic\ Demi\ Cond 0 tramp-cleanup checkdoc-package-keywords-flag
shr-parse-image-data soap-element-namespace-tag--cmacro org-man-fixed-width
Edebug\ All\ Defs org-duration-format & \' :name-match
osx-org-clock-menubar tramp-cache-data rx-trans-forms
ebrowse-ms-definition-pattern--cmacro sgml-tag-name--cmacro
todo-categories-mode log-edit-set-header expired tramp-gw-open-connection
...] :predicate #f(compiled-function (sym) #<bytecode 0x2139921>)
:require-match t :history counsel-M-x-history :action counsel-M-x-action
:sort t :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910
. counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
Thanks a lot!
Yours,
Richard LIU
发送自 Windows 10 版邮件 <https://go.microsoft.com/fwlink/?LinkId=550986>应用
[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 18509 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell error on windows10 with hunspell
2020-05-03 4:07 刘虎
@ 2020-05-03 15:05 ` Eli Zaretskii
[not found] ` <CAE5V+8EQWZPCz2-r1h=-Jj+fd0_ap7Xb51jyLWUmvx759Up5PA@mail.gmail.com>
2020-05-04 0:23 ` Robert Thorpe
1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-05-03 15:05 UTC (permalink / raw)
To: help-gnu-emacs
> From: 刘虎 <richardliu.sdlw@gmail.com>
> Date: Sun, 3 May 2020 12:07:52 +0800
>
> Inspired by your answer,I think my problem may be caused by the wrong
> placement of hunspell dictionary files, so I copied the dictionary
> files " en_US.aff"
> and "en_US.dic " to the dictionary C:/Hunspell. And I retyped hunspell -D
> in cmd and get the following reply:
> [image: image.png]
If you read the error message carefully, you will see that Hunspell
complains about the "default" dictionary, not about the en_US
dictionary. So you should copy en_US.dic to default.dic and en_US.aff
to default.aff in the same C:\Hunspell directory, and your problem
should be solved.
> Debugger entered--Lisp error: (error
> "D:/Install/hunspell/src/tools/hunspell.exe did not output version line")
> signal(error ("D:/Install/hunspell/src/tools/hunspell.exe did not output
> version line"))
What does the following display, if you type the command from the
Windows cmd.exe shell prompt?
D:\Install\hunspell\src\tools\hunspell.exe -vv
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell error on windows10 with hunspell
2020-05-03 4:07 刘虎
2020-05-03 15:05 ` Eli Zaretskii
@ 2020-05-04 0:23 ` Robert Thorpe
1 sibling, 0 replies; 7+ messages in thread
From: Robert Thorpe @ 2020-05-04 0:23 UTC (permalink / raw)
To: 刘虎; +Cc: help-gnu-emacs
I've just installed Hunspell on Windows myself. It worked fine for me.
I think that Eli Zaretski is right about your problem. I'll mention a
couple of things though.
In the code you quote you have mispelled Hunspell
> (setq ispell-program-name "hunpell")
I don't think that makes any difference though because of the
use-package line that follows it.
I found I didn't need much complexity. I just put the following in my
init file and it spelled using the UK dictionary as I wanted.
(setq ispell-program-name "hunspell")
(setq ispell-local-dictionary "en_GB")
I notice that you have set your personal dictionary like this:
> (setq ispell-personal-dictionary "C:/hunspell/en_US.aff")
As I understand it, the personal dictionary is used for words that are
personal to the user. It's there if you want to permit yourself to use
a word that's not in the normal dictionary. I'm not sure you can use it
like this.
BR,
Robert Thorpe
刘虎 <richardliu.sdlw@gmail.com> writes:
> [1:text/plain Hide]
>
> hello, I am the one who sent email from "richardliu1987@163.com" for help,
> I realize today that I can not receive a reply with my 163 mail. I heard
> from my friend about your kind reply. Thank you very much!
> Inspired by your answer,I think my problem may be caused by the wrong
> placement of hunspell dictionary files, so I copied the dictionary
> files " en_US.aff"
> and "en_US.dic " to the dictionary C:/Hunspell. And I retyped hunspell -D
> in cmd and get the following reply:
> [image: image.png]
> then I correct the init.el file as the following:
> (add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
> (setq ispell-program-name "hunpell")
> (use-package ispell
> :config
> (setq ispell-program-name
> "D:/Install/hunspell/src/tools/hunspell.exe"))
> (setq ispell-hunspell-dict-paths-alist
> '(("en_US" "C:/hunspell/en_US.aff")))
> (setq ispell-dictionary "en_US")
> (setq ispell-personal-dictionary "C:/hunspell/en_US.aff")
>
> then I opened emacs and typed " M-x ispell " and get the following error:
>
> Debugger entered--Lisp error: (error
> "D:/Install/hunspell/src/tools/hunspell.exe did not output version line")
> signal(error ("D:/Install/hunspell/src/tools/hunspell.exe did not output
> version line"))
> error("%s did not output version line"
> "D:/Install/hunspell/src/tools/hunspell.exe")
> ispell-init-process()
> ispell-buffer-local-words()
> ispell-accept-buffer-local-defs()
> ispell-region(1 42762)
> ispell-buffer()
> ispell()
> funcall-interactively(ispell)
> call-interactively(ispell record nil)
> command-execute(ispell record)
> counsel-M-x-action("ispell")
> ivy-call()
> ivy-read("M-x " [eww-buffer-select soap-bound-operation-soap-headers
> origami-hide-node-overlay epg-context-signers
> reftex-untie-multifile-symbols tex-chktex-program
> package-lint--sane-prefixes eww-handle-link TeX-command-Biber
> reftex-default-bibliography epg--status-VALIDSIG
> org-publish--store-crossrefs help-variable gnus-sync
> org-emphasis-regexp-components mml-secure-smime-sign-with-sender
> gnus-delete-overlay vc-hg--read-u8 viper-deactivate-input-method-action
> vc-src-log-switches js--expression-in-sgml-indent-line
> sgml-syntax-propertize web-mode-warning-face delphi-column-of
> cl-print--preprocess org-publish-sanitize-plist eieio-class-tag--ede-target
> ellipses org-agenda-regexp-filter-preset vc-git-conflicted-files 0
> tramp-cleanup checkdoc-package-keywords-flag shr-parse-image-data
> soap-element-namespace-tag--cmacro org-man-fixed-width :current-file
> org-duration-format scale \' :name-match osx-org-clock-menubar for\
> environment rx-trans-forms ebrowse-ms-definition-pattern--cmacro
> sgml-tag-name--cmacro todo-categories-mode desktop-buffer-name expired
> tramp-gw-open-connection ...] :predicate #f(compiled-function (sym)
> #<bytecode 0x245c909>) :require-match t :history counsel-M-x-history
> :action counsel-M-x-action :sort t :keymap (keymap (67108908 .
> counsel--info-lookup-symbol) (67108910 . counsel-find-symbol))
> :initial-input nil :caller counsel-M-x)
> counsel-M-x()
> funcall-interactively(counsel-M-x)
> call-interactively(counsel-M-x nil nil)
> command-execute(counsel-M-x)
>
>
> Thank you very much for your help!
>
> Best wishes!
>
> Yours ,
> Richard
>
> The following is my former email:
> ------------------------------------------------------------------------------------------------------
>
> Hello,
> I encouted an error when try to use hunspell with emacs 26.3 on windows 10.
>
> Please give me some help.
>
> I installed hunspell on D:/Install , and hunspell.exe was in
> D:/Install/hunspell/src/tools/.
>
> The dictionary files: en_US.aff and en_US.dic, were put in
> D:/Install/hunspell/src/tools/.
>
> my config:
>
>
>
> (add-to-list 'exec-path "D:/Install/hunspell/src/tools/")
>
> (setq ispell-program-name "hunpell")
>
> ;;(setq ispell-program-name (locate-file "hunspell"
>
> ;; exec-path exec-suffixes 'file-executable-p))
>
> (use-package ispell
>
> :config
>
> (setq ispell-program-name
>
> "D:/Install/hunspell/src/tools/hunspell.exe"))
>
>
>
> (setq ispell-hunspell-dict-paths-alist
>
> '(("en_US" "D:/Install/hunspell/src/tools/en_US.aff")))
>
> (setq ispell-dictionary "en_US")
>
> (setq ispell-personal-dictionary "D:/Install/hunspell/src/tools/en_US.aff")
>
>
>
>
>
> run command [M-x ispell] got error:
>
>
>
> Debugger entered--Lisp error: (error "Can't open affix or dictionary files
> for dictionary named "en_US".")
>
> signal(error ("Can't open affix or dictionary files for dictionary named
> "en_US"."))
>
> error("%s" "Can't open affix or dictionary files for dictionary named
> "en_US".")
>
> ispell-init-process()
>
> ispell-buffer-local-words()
>
> ispell-accept-buffer-local-defs()
>
> ispell-region(1 6738)
>
> ispell-buffer()
>
> ispell()
>
> funcall-interactively(ispell)
>
> call-interactively(ispell record nil)
>
> command-execute(ispell record)
>
> counsel-M-x-action("ispell")
>
> ivy-call()
>
> ivy-read("M-x " [eww-buffer-select soap-bound-operation-soap-headers
> origami-hide-node-overlay epg-context-signers
> org-babel-C-utility-header-to-C tex-chktex-program
> package-lint--sane-prefixes vc-git-stash-snapshot TeX-command-Biber
> avy-words epg--status-VALIDSIG org-publish--store-crossrefs help-variable
> gnus-sync org-emphasis-regexp-components mml-secure-smime-sign-with-sender
> gnus-delete-overlay vc-hg--read-u8 viper-deactivate-input-method-action
> vc-src-log-switches js--expression-in-sgml-indent-line
> sgml-syntax-propertize web-mode-warning-face delphi-column-of
> cl-print--preprocess org-publish-sanitize-plist eieio-class-tag--ede-target
> edebug-clear-frequency-count org-agenda-regexp-filter-preset Franklin\
> Gothic\ Demi\ Cond 0 tramp-cleanup checkdoc-package-keywords-flag
> shr-parse-image-data soap-element-namespace-tag--cmacro org-man-fixed-width
> Edebug\ All\ Defs org-duration-format & \' :name-match
> osx-org-clock-menubar tramp-cache-data rx-trans-forms
> ebrowse-ms-definition-pattern--cmacro sgml-tag-name--cmacro
> todo-categories-mode log-edit-set-header expired tramp-gw-open-connection
> ...] :predicate #f(compiled-function (sym) #<bytecode 0x2139921>)
> :require-match t :history counsel-M-x-history :action counsel-M-x-action
> :sort t :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910
> . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
>
> counsel-M-x()
>
> funcall-interactively(counsel-M-x)
>
> call-interactively(counsel-M-x nil nil)
>
> command-execute(counsel-M-x)
>
>
>
>
>
> Thanks a lot!
>
>
>
> Yours,
>
> Richard LIU
>
>
>
> 发送自 Windows 10 版邮件 <https://go.microsoft.com/fwlink/?LinkId=550986>应用
>
> [2:image/png Hide Save:image.png (18kB)]
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-05-05 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-30 16:06 emacs ispell error on windows10 with hunspell Richard LIU
2020-04-30 17:40 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2020-05-03 4:07 刘虎
2020-05-03 15:05 ` Eli Zaretskii
[not found] ` <CAE5V+8EQWZPCz2-r1h=-Jj+fd0_ap7Xb51jyLWUmvx759Up5PA@mail.gmail.com>
2020-05-04 14:48 ` Eli Zaretskii
[not found] ` <CAE5V+8FF7YWRR1LT3y9XZnpu2aHZc1kKbfoqLgpxoT-64uSO9A@mail.gmail.com>
2020-05-05 14:19 ` Eli Zaretskii
2020-05-04 0:23 ` Robert Thorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).