Native spellchecking now in Aquamacs

View: New views
7 Messages — Rating Filter:   Alert me  

Native spellchecking now in Aquamacs

by Nathaniel Cunningham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All --
Spellchecking is now available in the Aquamacs master branch using the native OS X spellchecker and spelling panel.  The standard Cmd-; and Cmd-: shortcuts work as for other Mac apps.  Native spellchecking is LaTeX-aware (using the existing LaTeX parsing capabilities of flyspell).

The traditional emacs spellchecking interfaces, flyspell and ispell, are still available as well.  Flyspell and ispell modes and functions are now set to use the OS X spellchecker (NSSpellChecker) by default; ispell-program-name can be set to "aspell" or "ispell" to specify one of these more traditional spellcheckers instead.  (The improved cocoAspell integration included in Aquamacs v1.4+ is now also in 2.x)

Please try out spellchecking in the next nightly build.  There is more fine-tuning to be done, and comments and suggestions are welcome.  Are there additional functions or capabilities that should be accessible via the Edit-->Spelling menu?

Cheers,
Nathaniel

_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Parent Message unknown Re: Native spellchecking now in Aquamacs

by Robert Sloan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's great to have the spell checking back.

It's not quite as LaTeX-aware as it might be. I was getting the  
following as unrecognized:

\textbf{
\medskip
\newpage


On Oct 23, 2009, at 2:51 PM, aquamacs-devel-request@... wrote:

> Date: Fri, 23 Oct 2009 08:54:27 -0500
> From: Nathaniel Cunningham <nathaniel.cunningham@...>
> To: Development of Aquamacs Emacs <aquamacs-devel@...>
> Subject: [Aquamacs-devel] Native spellchecking now in Aquamacs
> Message-ID:
> <20ecf6c70910230654t66830648wd10733d03db8c0b5@...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> All --
> Spellchecking is now available in the Aquamacs master branch using the
> native OS X spellchecker and spelling panel.  The standard Cmd-; and  
> Cmd-:
> shortcuts work as for other Mac apps.  Native spellchecking is LaTeX-
> aware
> (using the existing LaTeX parsing capabilities of flyspell).
>
> The traditional emacs spellchecking interfaces, flyspell and ispell,  
> are
> still available as well.  Flyspell and ispell modes and functions  
> are now
> set to use the OS X spellchecker (NSSpellChecker) by default;
> ispell-program-name can be set to "aspell" or "ispell" to specify  
> one of
> these more traditional spellcheckers instead.  (The improved  
> cocoAspell
> integration included in Aquamacs v1.4+ is now also in 2.x)
>
> Please try out spellchecking in the next nightly build.  There is more
> fine-tuning to be done, and comments and suggestions are welcome.  
> Are there
> additional functions or capabilities that should be accessible via the
> Edit-->Spelling menu?
>
> Cheers,
> Nathaniel



Robert H. Sloan            http://www.cs.uic.edu/Sloan
Professor and Head
Dept. of Computer Science
University of Illinois at Chicago

312-996-2369 (office)
312-413-0024 (fax)
312-413-2911 (my assistant Ms. Imelda Baker)





_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Parent Message unknown Re: Native spellchecking now in Aquamacs

by Nathaniel Cunningham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Konrad,
Thanks for the feedback.

On Mon, Oct 26, 2009 at 6:16 PM, Konrad Podczeck <konrad.podczeck@...> wrote:

(a) In Aquamacs 1.9 and before, flyspell-buffer and flyspell-region also found and marked repeated words. Unfortunately, this is not the case anymore. Could you reimplement this?

This (and more) will come down the road with the incorporation of OS X native grammar checking.
 
(b) The handling of Tex-commands is not as goods as earlier: E. g. if I have text like \citep[See e.g. the first paragraph of the proof of Proposition~1.b.15 in][p. 25]{lintza} in a buffer, now the word in the last pair of braces is not ignored anymore

You're running into the capabilities of the underlying spellchecker, not of Aquamacs.  The aspell and ispell programs can parse TeX and not report these as misspellings to Aquamacs; the native spellchecker is unfortunately not TeX-aware.  You can add items to `ispell-tex-skip-alists' in order to skip arguments, but I'm not sure whether you can e.g. check some arguments and not others, as you would want to for the given example.

and the status line reports the following

     cite: info not available, use `^C &´to get it

that has do do with reftex crossrefs, not spelling, as far as I can tell. 
 
(c) In this regard, could the handling of tex-commands by the spell checking be made user customizable?

ispell-tex-skip-alists offers some of this capability.  What exactly do you have in mind?
 
(d) Commented text, i.e. text in a line after % is also checked.

Again, that's aspell/ispell--not Aquamacs--parsing the TeX for you and deciding what not to mark.  If you want a fully TeX-aware spellchecker, you may want to stick to aspell.  (You could still use it via the OS X spelling panel if you installed cocoAspell, and cocoAspell's prefpane makes it very easy to customize the list of TeX command to ignore, which arguments to spellcheck, comments or not, etc.)

--Nathaniel


_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Re: Native spellchecking now in Aquamacs

by Nathaniel Cunningham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, Oct 26, 2009 at 10:59 PM, Nathaniel Cunningham <nathaniel.cunningham@...> wrote:

You're running into the capabilities of the underlying spellchecker, not of Aquamacs.  The aspell and ispell programs can parse TeX and not report these as misspellings to Aquamacs; the native spellchecker is unfortunately not TeX-aware. 

It's possible that we could adapt e.g. the TeX-filtering source code from aspell and implement it in Aquamacs.  We could then adopt the same approach to customizing the filter.  That would be waaay down on the to-do list, though (unless anyone is interested in taking it on now :) )

--Nathaniel

_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Re: Native spellchecking now in Aquamacs

by Pete Siemsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Seems to work great!  Thanks, Nathaniel!

-- Pete


On Oct 23, 2009, at 7:54 AM, Nathaniel Cunningham wrote:

> All --
> Spellchecking is now available in the Aquamacs master branch using  
> the native OS X spellchecker and spelling panel.  The standard Cmd-;  
> and Cmd-: shortcuts work as for other Mac apps.  Native  
> spellchecking is LaTeX-aware (using the existing LaTeX parsing  
> capabilities of flyspell).
>
> The traditional emacs spellchecking interfaces, flyspell and ispell,  
> are still available as well.  Flyspell and ispell modes and  
> functions are now set to use the OS X spellchecker (NSSpellChecker)  
> by default; ispell-program-name can be set to "aspell" or "ispell"  
> to specify one of these more traditional spellcheckers instead.  
> (The improved cocoAspell integration included in Aquamacs v1.4+ is  
> now also in 2.x)
>
> Please try out spellchecking in the next nightly build.  There is  
> more fine-tuning to be done, and comments and suggestions are  
> welcome.  Are there additional functions or capabilities that should  
> be accessible via the Edit-->Spelling menu?
>
> Cheers,
> Nathaniel
> _______________________________________________
> Aquamacs-devel mailing list
> Aquamacs-devel@...
> http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Parent Message unknown Re: Native spellchecking now in Aquamacs

by Robert Sloan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This wasn't my comment, but I'll answer the "what do you have in  
mind?" question.

I'd like directions on how to get the arguments to \cite{...} and  
\citep{...} ignored, and in a way that would allow me to add something  
else, such as \url{....} when I realized I needed that too.

Most helpful but probably not worth the time for volunteer to add: way  
to add this from Aquamacs menus.

What seems reasonable: on Aquamacs website, under LaTeX and/or spell  
checking: directions "Add these lines to this file" (presumably  
something adding entries to ispell-tex-skip-alists in the  
Preferences.el file).

Not enough for most users: "Do ctrl-h v on ispell-tex-skip-alists to  
see what it looks like and then write yourself a simple elisp  
expression to add whatever you need.


On Oct 28, 2009, at 2:02 AM, aquamacs-devel-request@... wrote:

>>
>> (c) In this regard, could the handling of tex-commands by the spell
>> checking be made user customizable?
>>
>> ispell-tex-skip-alists offers some of this capability.  What  
>> exactly do you
> have in mind?


                Cheers,
                Bob





_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel

Re: Native spellchecking now in Aquamacs

by Nathaniel Cunningham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, understood.  I'll take a look and do some testing.

One good capability would be to ignore commands listed one-per-line in a plain text file in ~/Library/Application Support/Aquamacs Emacs/ .  That would be a straightforward approach requiring no lisp at all.  A standard list could be included within the Aquamacs app package.

--Nathaniel

On Wed, Oct 28, 2009 at 10:24 AM, Robert Sloan <sloan@...> wrote:
This wasn't my comment, but I'll answer the "what do you have in mind?" question.

I'd like directions on how to get the arguments to \cite{...} and \citep{...} ignored, and in a way that would allow me to add something else, such as \url{....} when I realized I needed that too.

Most helpful but probably not worth the time for volunteer to add: way to add this from Aquamacs menus.

What seems reasonable: on Aquamacs website, under LaTeX and/or spell checking: directions "Add these lines to this file" (presumably something adding entries to ispell-tex-skip-alists in the Preferences.el file).

Not enough for most users: "Do ctrl-h v on ispell-tex-skip-alists to see what it looks like and then write yourself a simple elisp expression to add whatever you need.


On Oct 28, 2009, at 2:02 AM, aquamacs-devel-request@... wrote:


(c) In this regard, could the handling of tex-commands by the spell
checking be made user customizable?

ispell-tex-skip-alists offers some of this capability.  What exactly do you
have in mind?


               Cheers,
               Bob






_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel


_______________________________________________
Aquamacs-devel mailing list
Aquamacs-devel@...
http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-devel