<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>H<span class="gmail_default" style="font-size:small">i Stephen,</span></div><div><br></div></div></div></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 8, 2021 at 10:56 PM Stephen Anderson <<a href="mailto:sra@yale.edu">sra@yale.edu</a>> wrote:<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">Different (key)strokes for different folks, I guess. I’ve been using various versions of emacs for nearly 40 years, and I rather like the flyspell interface. What I found was that it didn’t play nicely (for me) with NSSpellChecker as the engine. I got it to work with aspell by (a) downloading, configuring and installing current versions of aspell and the dictionaries for languages that concern me (English, French and German: there are many, many others); and (b) adding the following lines to my .emacs:<br>
<br>
(setq ispell-program-name "aspell")<br>
(setq ispell-is-really-aspell t)<br>
<br>
It’s pretty good about not flagging LaTeX commands (although it does spell-check cite-keys, labels and references).<span style="caret-color: rgb(0, 0, 0);"> </span></blockquote><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">
I haven’t gotten flyspell-babel to do what I think it should (change dictionaries locally on the basis of a guess about the language in a section of text), but flyspell itself works as it should, and I can change the dictionary manually (with M-x ispell-change-dictonary or the Menubar Edit>Spelling>Change Dictionary). Probably I’m overly optimistic about what it’s capable of.<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">To have several languages in one .tex file, and  spell these languages, without having to change the spelling dictionary in preferences. It looks to me, that Apple has put in macOS such a possibility, but it doesn't work well with NSSpellChecker & ispell:</div><div class="gmail_default" style="color:rgb(0,0,0)"> </div><div class="gmail_default" style="color:rgb(0,0,0)">System Preferences > Keyboard > Text > Spelling > Automatic by Language</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div><span style="color:rgb(0,0,0)">The idea is that the spell checker would guess words based on searching through the lists of the dictionaries. Indeed the dictionaries are a lot, and large. That is for the programs, and programmers, to handle effective algorithms. I can't get this even for a single language: Bulgarian.</span></div><div class="gmail_default" style="font-size:small">I do not know how to get aspell together with NSSpellChecker. For many years, I was very happy with cocoAspell on the macs that I've had. About a year ago, I saw on Leuski's website for cocoAspell, who developed and maintained cocoAspell, that there was an update. I followed the instructions on how to do that, the first one being to uninstall the previous version (probably, v.2.5), I did that, and then the update disappeared.  Now, he has some files of cocoAspell-master on GitHub. I've been trying for the last days to install that, and haven't managed.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Now, I use the default NSSpellChecking & ispell. It works quite well for en and en_GB and correctly recognises LaTeX commands, in Aquamacs. But there are the occasional misspelled words, that ispell can't recognise as such.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I would like to get aspell, and it seems that the onlybway for now is to try to install cocoAspell v.2.5, which is inthe TeX directory. Is there another way to use aspell on Macs?</div><div class="gmail_default" style="font-size:small">Regards,</div><div class="gmail_default" style="font-size:small">Roussanka</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">
<br>
— <br>
Steve<br>
<br>
> On 8 Jun, 2021, at 1:43 PM, Mark Bestley <<a href="mailto:gnus@bestley.co.uk" target="_blank">gnus@bestley.co.uk</a>> wrote:<br>
> <br>
> Stephen Anderson <<a href="mailto:sra@yale.edu" target="_blank">sra@yale.edu</a>> writes:<br>
> <br>
>> For some time I have been having a good deal of frustration with flyspell in Aquamacs. I’m a poor typist, and I rely on having dynamic spell correction to avoid masses of hard-to-recover typos. When I type text in Aquamacs (3.5), the mode line identifies modes “LaTeX/FPS Fly (Default) BCite Ref Abbrev Fill”, but typing things that shouldn’t appear in the default dictionary (“en”) almost never results in a flag (underlining). Frustratingly, this does very occasionally happen, but I have no idea of what’s going on.<br>
> I don't use LaTex, and I only write in English  so don't know the details.<br>
> <br>
> But a main reason I use Aquamacs is that it integrates with Apple's<br>
> spell checking infrastructure at the C level and that is turned on in Aquamacs<br>
> <br>
> So for a first attempt I would remove all references to flyspell in your init.<br>
> <br>
> The look at the Menu and under Edit there is a submenu Spelling. Choosing things there should set things up.<br>
> <br>
> -- <br>
> Mark<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>