<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Win,</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
A quick check: have you rebooted since uninstalling cocoAspell? Since it installs with a preference pane, it’s possible that a reboot would clean up some more after uninstalling it. If that works, great!<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">I had done that, but it didn't help. I think uninstalling cocoAspell took away some of the settings of Aquamacs that I had. Here is what I did, thanks to your explanations, and solved the major problem for spelling English, and Swedish, to some degree.</div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
By default, Aquamacs uses the Mac OS spelling software, and it does so through the usual “ispell” interface code in Emacs. <br>
<br>
You can verify that you are using the Mac spelling system by looking at the value of ispell-program-name, which should be “NSSpellChecker”.  One way to see it through the menus is Edit->Spelling->Customize, and then looking for “Ispell Program Name” in the buffer that pops up.<br></blockquote><div><br></div>Yes, it is NSSpellChecker. Thanks! Without telling me this, I was confused about it, because I had expected <span class="gmail_default" style="font-size:small"></span><span class="gmail_default" style="font-size:small">A</span>spell.<div class="gmail_default" style="font-size:small"><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
>From what you described, that may not be the problem. As far as I know, the cocoAspell distribution is a bit old, and may not work correctly on Catalina. A quick google search didn’t find anyone talking about that. The problem you mentioned was installing dictionaries, and it seems likely that Catalina made it harder to do things like that.<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Yes, indeed.</div><div class="gmail_default" style="font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
If rebooting doesn’t help, and Aquamacs is set properly, then you could try typing in TextEdit to see if you see the same problem with bad suggestions. </blockquote><div><br></div><div class="gmail_default" style="font-size:small">This is a good test, which I had tried, but it didn't help me with what Aquamacs.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
The languages use for the checking are set for the Mac (which then apply to Aquamacs) in the System Preferences->Keyboard->Text pane.<br></blockquote><div><br></div>Now, after already knowing that NSSpellChecker is the right ispell-program-name, I've solved the major problem for spelling English text with it. But there are issues that puzzle me. Here is what I did:<br> <br>In System Preferences->Keyboard->Text pane:<br>I had in the pull-down menu:<br> Spelling: Automatic by Language<br><div class="gmail_default" style="font-size:small">But, by opening any file in Aquamacs, even only with English text and with misspelled words for tests, I had:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">- misspelled words underlined</div><div class="gmail_default" style="font-size:small">- "Esc $" didn't give good suggestions, and, often, gave no suggestions</div><div class="gmail_default" style="font-size:small"> </div>That was because despite selecting Spelling: Automatic by Language,  the default language was all the time with Swedish, by looking at the top bar of Aquamacs:<div class="gmail_default"><font color="#000000" face="-webkit-standard" size="3"><span style="caret-color: rgb(0, 0, 0);">... dict: sv -- prog: NSSpellChecker</span></font></div><div class="gmail_default"><font color="#000000" face="-webkit-standard" size="3"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div class="gmail_default">Now, after your explanations, by knowing that NSSpellChecker is the correct program, I focussed on fixing the value <font color="#000000" face="-webkit-standard" size="3"><span style="caret-color: rgb(0, 0, 0);">dict: sv to en_GB, by:</span></font></div><div class="gmail_default"><br></div>(1) selecting en_GB, from Aquamacs' menu:<br>Edit > Spelling > Change Dictionary...<br>but that set only the local dictionary to en_GB, and in a next session with Aquamacs, it still was dict: sv.<br><br>(2) System Preferences->Keyboard->Text pane:<br>in the pull-down menu, I selected:<br> Spelling: British English<br><br>I quit<span class="gmail_default" style="font-size:small">ted</span> Aquamacs, rebooted the Mac, opened the same file with <span class="gmail_default" style="font-size:small">text</span> in English and misspelled words, and spelling was fine, to my great relief<span class="gmail_default" style="font-size:small">!</span></div><div class="gmail_quote"><br></div><div class="gmail_quote"><span class="gmail_default" style="font-size:small">After that, I</span> set:<br> <br>(3) System Preferences->Keyboard->Text pane:<br> Spelling: Automatic by Language<br><br>The dictionary is globally set to British Language.<br></div>I<span class="gmail_default" style="font-size:small"> open</span> a file having portions of English and Swedish texts, and misspelled words in both languages<span class="gmail_default" style="font-size:small">. A</span>ll <span class="gmail_default" style="font-size:small">words</span> get spell checked for British English. When I get to a misspelled word, and know that it's in Swedish, I can get it spelled by changing to Swedish dictionary sv, in two <span class="gmail_default" style="font-size:small">alternative </span>ways:<br></div><br>(a)<br>Edit > Spelling > Change Dictionary...<br>(b)<br>Edit > Spelling > Sho<span class="gmail_default" style="font-size:small">w</span> Spelling Panel<br><div dir="ltr"><br></div><span class="gmail_default" style="font-size:small">Each of these alternatives </span>changes the spelling to <span class="gmail_default" style="font-size:small">Swedish, </span>sv, or what I select, for the entire session, in case I do not change it again. But, at least, after Quit, Aquamacs keeps the en_GB, as the global dictionary, and it also keeps:<br><br>System Preferences->Keyboard->Text pane:</div><div dir="ltr">Spelling: Automatic by Language</div><div dir="ltr"><br></div><div dir="ltr">For Automatic by Language, I'd expect that the program would recognise language dictionaries by words. There should be a pane to select several languages, i.e., dictionaries, for automatic look up through their dictionaries (at least, for the selected languages). Apple has the option Spelling: Automatic by Language.<div dir="ltr"><div class="gmail_quote"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">At least, this is my wish for a future Aquamacs. (This works very well in Gmail!)</div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
Finally, you could install the command line aspell program with Homebrew, and then customize ispell-program-name to use that. <br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I'll see if I can dare that, because it seems more adventurous to me, and I do not want to get Aquamacs messed up, again, while I have work.</div><div class="gmail_default" style="font-size:small"> </div></div>It would be great if future Aquamacs has Aspell as an option, by some selections. So, for now, I have two wishes for Aquamacs. <br><br>If you have some suggestions, esp. for Automatic by Language, it would be great. It's<span class="gmail_default" style="font-size:small"> already </span>great that you've helped with <span class="gmail_default" style="font-size:small">NSSpellChecker</span>.<br> <br>Thank you very much!<br>Best Regards,<br>Roussanka<div><span style="color:rgb(0,0,0);font-family:-webkit-standard;font-size:medium"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">- Win<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
> On Jul 12, 2020, at 8:25 PM, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank">rl.stpuu@gmail.com</a>> wrote:<br>
> <br>
> Dear Win, Dear All,<br>
> <br>
> I hope you can help me to fix the Check Spelling in Aquamacs. Up to recent, it used to work excellently for English: with LaTeX, in plain text (.txt files), with html. I think I had it with Aspell, or with what it was by downloading and installing Aquamacs. I only set Fly mode, and few other things.  <br>
> <br>
> I'm with:<br>
> <br>
> MacBook Air, 13" (2017)<br>
> macOS Catalina, v.10.15.5<br>
> <br>
> Aquamacs 3.5<br>
> <br>
> The spell checking in Aquamacs has become messed up, i.e., worsened, after my attempts to get spelling for Bulgarian and Swedish, and in particular, by attempts to get that by cocoAspell.<br>
> <br>
> I downloaded, unpacked, and installed cocoAspell (by giving it permissions). But then the Spelling pane in System Preferences couldn't install any dictionaries, not even for English. I uninstalled cocoAspell, by the instructions on its website. After that Spell Checking has worsened in Aquamacs.<br>
> <br>
> Now, by random tests, I get misspelled words, underlined as misspelled, but with inappropriate suggestions, or without any choices. E.g., for "unsucsessful", with "Esc-$", the list of offered corrections is empty. I only get "C-h or ? for more options: ..."<br>
> <br>
> Before these attempts, I used to get good optional choices for misspelled words of English, with Fly Spell.<br>
> <br>
> Now, my questions are:<br>
> <br>
> (1) How to fix the spell checking for English?<br>
> Perhaps Aquamacs came with GNU Aspell, and now it's with something else. The dictionary for EN is STANDARD:<br>
> Edit > Spelling > Customize...<br>
> Subgroups: FliSpell<br>
> Flyspell Default Dictionary: Value Menu Default<br>
>     State : STANDARD.<br>
> <br>
> (2) How to get Spell Checking for Bulgarian in Aquamacs?<br>
> <br>
> Here is what I've tried, without cocoAspell:<br>
> <br>
> I downloaded aspell6-bg-4.1-0.tar.bz2 from:<br>
> <a href="https://ftp.gnu.org/gnu/aspell/dict/0index.html" rel="noreferrer" target="_blank">https://ftp.gnu.org/gnu/aspell/dict/0index.html</a><br>
> <br>
> I unzipped and tried installation of the dictionary (aspell6-bg-4.1-0) from the Terminal:<br>
> <br>
> - by instructions inside aspell6-bg-4.1-0/README:<br>
> <br>
> $ ./configure   <br>
> Finding Dictionary file location ... /usr/local/lib/aspell-0.60<br>
> Finding Data file location ... /usr/local/lib/aspell-0.60<br>
> <br>
> After that, I get the following error, which I do not know how to fix:<br>
> <br>
> $ make<br>
> xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun<br>
> <br>
> Spell Checking and Grammar works in some of the applications:<br>
> <br>
> - Gmail (I'm especially pleased, as of now)<br>
> - MS Word: even if I have very limited experence  with MS, I could easily check the Help menue how to do it.<br>
> <br>
> (3) After I fix (1)-(2), I would like to have Aquamacs with spell checking Swedish (Svenska).<br>
> <br>
> Best Regards,<br>
> Roussanka<br>
> <br>
> <br>
> <br>
> _____________________________________________________________<br>
> MacOSX-Emacs mailing list<br>
> <a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank">MacOSX-Emacs@email.esm.psu.edu</a><br>
> <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
> List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
<br>
<br>
_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
</blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>