spell checking in LaTeX mode

3 views
Skip to first unread message

Christopher Barker

unread,
Apr 6, 2011, 6:25:24 PM4/6/11
to pepp...@googlegroups.com
Hi Rob,

I just notices something odd.

When in LaTeX mode, mis-spelling are not getting highlighted. If I
right-click on a work, I do get suggested spellings, but there is no
underlining of them.

If I switch to text mode, mis-spellings are highlighted.

A sample file is enclosed for your viewing pleasure.

-Chris

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris....@noaa.gov

spelling_test.tex

Rob McMullen

unread,
Apr 7, 2011, 11:28:17 AM4/7/11
to pepp...@googlegroups.com
Chris,

It only spellchecks character classes that are marked as either
strings or comments, not code. There must be some missing mappings in
LaTeX mode somewhere... I'll have to look.

Rob

Christopher Barker

unread,
Apr 7, 2011, 12:41:24 PM4/7/11
to pepp...@googlegroups.com

Thanks, that would be great, as I have no idea quite what that means.

I expect the trick with LaTeX is that is is mostly text, and only a
little bit of code.

Some spell checkers have a "TeX" mode, that will ignore TeX code. I
don't know if that can be accessed through pyenchant or not.

But a solution that falsely flags all the code as mispellings would be
fine, too. It's not hard to distinguis as a user.

Rob McMullen

unread,
Apr 18, 2011, 12:15:25 PM4/18/11
to pepp...@googlegroups.com
Chris,

On Thu, Apr 7, 2011 at 9:41 AM, Christopher Barker
<Chris....@noaa.gov> wrote:
> Some spell checkers have a "TeX" mode, that will ignore TeX code. I don't
> know if that can be accessed through pyenchant or not.

Got a bit of time during my son's naptime. Try the latest svn. The
StyledTextCtrl doesn't seem to distinguish quite enough bits of the
TeX code so there are some things that are spell checked that
shouldn't be, but at least the stuff you want is now spell checked. :)

Rob

Christopher Barker

unread,
Apr 26, 2011, 7:13:24 PM4/26/11
to pepp...@googlegroups.com
On 4/18/11 9:15 AM, Rob McMullen wrote:
> Got a bit of time during my son's naptime. Try the latest svn. The
> StyledTextCtrl doesn't seem to distinguish quite enough bits of the
> TeX code so there are some things that are spell checked that
> shouldn't be, but at least the stuff you want is now spell checked. :)

I just got back from vacation and gave it a try: very nice, Thanks!

Reply all
Reply to author
Forward
0 new messages