* emacs ispell
@ 2012-02-11 1:05 Shiyuan
2012-02-11 9:40 ` Peter Dyballa
2012-02-15 20:22 ` Shiyuan
0 siblings, 2 replies; 7+ messages in thread
From: Shiyuan @ 2012-02-11 1:05 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 458 bytes --]
Hi,
1. I encounter a strange problem regarding to spelling in my emacs. When I
do spell-check-buffer(from menu), it will miss some mis-spelled words. But
if I apply spell-check word to the same mis-spelled word, it can detect the
mis-spelling. What could be the problem?
2. What is the path of the private dictionary of ispell used by emacs? I
want to delete some words which were inserted in my private dictionary (by
i in the speck check mode).
Thanks.
[-- Attachment #2: Type: text/html, Size: 525 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
2012-02-11 1:05 emacs ispell Shiyuan
@ 2012-02-11 9:40 ` Peter Dyballa
2012-02-11 10:21 ` Eli Zaretskii
2012-02-15 19:47 ` Shiyuan
2012-02-15 20:22 ` Shiyuan
1 sibling, 2 replies; 7+ messages in thread
From: Peter Dyballa @ 2012-02-11 9:40 UTC (permalink / raw)
To: Shiyuan; +Cc: help-gnu-emacs
Am 11.2.2012 um 02:05 schrieb Shiyuan:
> 2. What is the path of the private dictionary of ispell used by emacs?
Presumingly ~/.ispell_<language>. This name is also mentioned when ispell has finished and learned at least one new word.
WRT your first problem: when ispell has started to check the buffer and stopped at a misspelled word, change to *shell* buffer and try to find out (with pstree, ps) what are the arguments and what is the environment in which ispell runs. (With lsof you could also check which files it has opened.) Record these findings, save them in a file. Now try it also when you invoke ispell the other way. After having saved the new findings, perform a comparison. Some difference should exist...
--
Greetings
Pete
There is no national science just as there is no national multiplication table; what is national is no longer science.
– Anton Checov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
2012-02-11 9:40 ` Peter Dyballa
@ 2012-02-11 10:21 ` Eli Zaretskii
2012-02-15 19:47 ` Shiyuan
1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2012-02-11 10:21 UTC (permalink / raw)
To: help-gnu-emacs
> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> Date: Sat, 11 Feb 2012 10:40:36 +0100
> Cc: help-gnu-emacs@gnu.org
>
> > 2. What is the path of the private dictionary of ispell used by emacs?
>
> Presumingly ~/.ispell_<language>.
Not <language>, but <dictioinary>. If the dictionary is
`americanmed.hash', the personal dictionary for it will be
`.ispell_americanmed'. The dictionary in use is the one specified by
the -d option from the shell command line, or by ispell-dictionary
variable or ispell-change-dictionary command from within Emacs.
The name of the default dictionary is displayed by
ispell -vv | fgrep DEFHASH
Also, the .ispell_<dictionary> file is searched for both in the
current directory and in home directory (creating one in the latter if
none exists).
See the Ispell man page for all this info.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
2012-02-11 9:40 ` Peter Dyballa
2012-02-11 10:21 ` Eli Zaretskii
@ 2012-02-15 19:47 ` Shiyuan
1 sibling, 0 replies; 7+ messages in thread
From: Shiyuan @ 2012-02-15 19:47 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
Thanks for replying.
However, I cannot change to *shell* buffer when ispell is running. It
seems that ispell operates under special mode where the keys are redefined
and the command C-x b to switch to other buffers doesn't work.
On Sat, Feb 11, 2012 at 3:40 AM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 11.2.2012 um 02:05 schrieb Shiyuan:
>
> > 2. What is the path of the private dictionary of ispell used by emacs?
>
> Presumingly ~/.ispell_<language>. This name is also mentioned when ispell
> has finished and learned at least one new word.
>
>
> WRT your first problem: when ispell has started to check the buffer and
> stopped at a misspelled word, change to *shell* buffer and try to find out
> (with pstree, ps) what are the arguments and what is the environment in
> which ispell runs. (With lsof you could also check which files it has
> opened.) Record these findings, save them in a file. Now try it also when
> you invoke ispell the other way. After having saved the new findings,
> perform a comparison. Some difference should exist...
>
> --
> Greetings
>
> Pete
>
> There is no national science just as there is no national multiplication
> table; what is national is no longer science.
> – Anton Checov
>
>
[-- Attachment #2: Type: text/html, Size: 1617 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
2012-02-11 1:05 emacs ispell Shiyuan
2012-02-11 9:40 ` Peter Dyballa
@ 2012-02-15 20:22 ` Shiyuan
2012-02-15 21:59 ` Peter Dyballa
1 sibling, 1 reply; 7+ messages in thread
From: Shiyuan @ 2012-02-15 20:22 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 902 bytes --]
With respect to my first question, I tried the pstree -a command as
suggested by Peter
to find out the command arguments for ispell. But spell-check-buffer and
spell-check-word
are involved with the same argument, which is , ispell -a -m -B -d
american. In that case,
why spell-check-buffer misses some mispelled words but spell-check-word
doesn't?
On Fri, Feb 10, 2012 at 7:05 PM, Shiyuan <gshy2014@gmail.com> wrote:
> Hi,
> 1. I encounter a strange problem regarding to spelling in my emacs. When I
> do spell-check-buffer(from menu), it will miss some mis-spelled words. But
> if I apply spell-check word to the same mis-spelled word, it can detect the
> mis-spelling. What could be the problem?
>
> 2. What is the path of the private dictionary of ispell used by emacs? I
> want to delete some words which were inserted in my private dictionary (by
> i in the speck check mode).
>
> Thanks.
>
[-- Attachment #2: Type: text/html, Size: 1983 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
2012-02-15 20:22 ` Shiyuan
@ 2012-02-15 21:59 ` Peter Dyballa
0 siblings, 0 replies; 7+ messages in thread
From: Peter Dyballa @ 2012-02-15 21:59 UTC (permalink / raw)
To: Shiyuan; +Cc: help-gnu-emacs
Am 15.2.2012 um 21:22 schrieb Shiyuan:
> In that case, why spell-check-buffer misses some mispelled words but spell-check-word doesn't?
Me, I have no idea. It might help if you could give examples. And with examples I mean a complete but minimal example of a whole buffer of text. With minimal I mean less than 1 kB of data, with complete I mean that possible file header and footer, containing any file-local variables, are also given.
The best test case of course would be when GNU Emacs is launched as
emacs -Q -l .emacs-minimal.el <the file to (i)spell check>
and you also give us that .emacs-minimal.el file with, say, less than 20 or 30 lines of customisation (mostly ispell setup). The (text) file could consist of an exact description of your tries and also name the words that are handled so differently. So we can read what you did, which commands you invoked in which manner, and what the words are and which is found in this and which is not found in that mode of ispell. It should be OK when some of these words appear repeatedly. Give us the versions of GNU Emacs and ispell and OS as well in that text file and also the dictionaries ispell uses.
One explanation can be that M-$, i.e., ispell-word or from the menu <menu-bar> <tools> <spell> <ispell-word>, does not choose the word you want to be checked. This function either checks the word in which the text cursor is (at the beginning OR at the end OR somewhere between these extremes) or the word to the left of the space between the words in an LTR (left-to-right written) script – the latter behaviour can be changed by an optional argument.
When you set transient-mark-mode active (to t or such) and then mark a region of words around the mis-spelled word and then invoke M-$, does it still fail?
--
Greetings
Pete
Theory and practice are the same, in theory, but, in practice, they are different.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: emacs ispell
[not found] <mailman.3655.1328922339.15002.help-gnu-emacs@gnu.org>
@ 2014-03-03 20:10 ` ayuffa
0 siblings, 0 replies; 7+ messages in thread
From: ayuffa @ 2014-03-03 20:10 UTC (permalink / raw)
To: help-gnu-emacs
I had the same problem. Starting emacs via emacs -Q fixes it but then config files are not loaded. Possible related bug is
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14419
The following work around did the trick for me.
Make sure the first line in your .tex file is NOT a comment line.
On Friday, February 10, 2012 8:05:34 PM UTC-5, Shiyuan wrote:
> Hi,
> 1. I encounter a strange problem regarding to spelling in my emacs. When I do spell-check-buffer(from menu), it will miss some mis-spelled words. But if I apply spell-check word to the same mis-spelled word, it can detect the mis-spelling. What could be the problem?
>
>
>
> 2. What is the path of the private dictionary of ispell used by emacs? I want to delete some words which were inserted in my private dictionary (by i in the speck check mode).
>
>
>
> Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-03-03 20:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-11 1:05 emacs ispell Shiyuan
2012-02-11 9:40 ` Peter Dyballa
2012-02-11 10:21 ` Eli Zaretskii
2012-02-15 19:47 ` Shiyuan
2012-02-15 20:22 ` Shiyuan
2012-02-15 21:59 ` Peter Dyballa
[not found] <mailman.3655.1328922339.15002.help-gnu-emacs@gnu.org>
2014-03-03 20:10 ` ayuffa
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).