Re: spell checking with html doesn't work

2006-05-28 Thread David Purton
On Sun, May 28, 2006 at 04:13:38AM +1000, Pete Johns wrote:
> >Any suggestions? It kind of looks like a bug, but maybe I'm
> >missing something obvious.
> >
> To me it looks like an omission from the syntax/html.vim file.
> 
> I have no experience with writing/editing Vim's syntax files, but
> the following diff solves the problem for me:
> 
> 155a156,157
> >     20060527paj Check spelling in block
> >   syn region htmlParagraph start="" end=""me=e-5 [EMAIL PROTECTED]
> 
> Hope this helps;
> 

It does indeed. Thanks very much.


cheers

dc


-- 
David Purton
Haese & Harris Publications
Phone: +61 8 8355 9444Email: [EMAIL PROTECTED]
Fax:   +61 8 8355 9471Web:   http://www.haeseandharris.com.au/


Re: spell checking with html doesn't work

2006-05-27 Thread Pete Johns
On Fri, 2006-05-26 at 10:58:49 +0930, David Purton sent:
>Hi all,
>
Hi there.

>Spelling errors are not highlighted in tags, which is
>likely to be where most errors are going to be.
>
I, too, have been experiencing this.

>Any suggestions? It kind of looks like a bug, but maybe I'm
>missing something obvious.
>
To me it looks like an omission from the syntax/html.vim file.

I have no experience with writing/editing Vim's syntax files, but
the following diff solves the problem for me:

155a156,157
>     20060527paj Check spelling in block
>   syn region htmlParagraph start="" end=""me=e-5 [EMAIL PROTECTED]

Hope this helps;

--paj
-- 
Pete Johns   
Tel/Fax numbers and IM information   
Yet Another Blog Entry 


pgp9IV0aKJ2UK.pgp
Description: PGP signature


Re: spell checking with html doesn't work

2006-05-26 Thread Marv Boyes

I'm getting the same behavior under the same conditions on both WinXP
and Linux (Ubuntu 5.10), with "standard" installations of Vim 7 (i.e.,
without compile-time or command-line modifications, or modifications
to .*vimrc's). I've delved a bit deeper (though unsystematically and
unscientifically) and made the following observations:

- "Loose" text (i.e. not contained within or modified by any tags)
doesn't appear to be spellchecked. Granted, there ought not _be_
completely loose text in HTML, ought there not? ;)
- Text both within a  _and_ modified by something like a  or
an  or an  _is_ spellchecked. Unmodified text within a 
isn't. Thus:
This word is spelled incorectly = no marking.
This word is spelled incorectly = marked.
This word is spelled incorectly, and so is this onwe
= 'incorectly' not marked, 'onwe' marked.
- Unmodified text within  or  isn't spellchecked, inside of
or outside of a . Add, say,  or  or , and it suddenly is
(inside or outside of a aragraph.)
- s aren't spellchecked.
- "spellcheck" isn't really a word. ;)

I've probably offered nothing particularly useful or helpful, but at
least I've had fun hearing myself type. :) Thanks.

On 5/26/06, David Purton <[EMAIL PROTECTED]> wrote:

On Fri, May 26, 2006 at 11:30:52AM +0200, Mikolaj Machowski wrote:
> Dnia piątek, 26 maja 2006 03:28, David Purton napisał:
> >
> > Any suggestions? It kind of looks like a bug, but maybe I'm missing
> > something obvious.
>
> Maybe you have some custom highlighting definitions for HTML? Remove
> them and check once more.

mmm, not as far as I know. how can I tell?

Well it *is* related to syntax highlighting.

If I turn syntax higlighting off, it works correctly.

It is not just windows, I can reproduce the probem under linux as well.

Using debian unstable I can do the following to reproduce the problem:

$ gvim -u /etc/vim/vimrc -U /etc/vim/gvimrc# load debian defaults
:set filetype=xhtml
:set spell

Enter the following:

This word is spelt incorectly
This word is spelt incorectly

h1, p and incorectly should be marked as wrong in all places.

Now turn syntax on
:syntax on

Only incorectly within the  tag is marked as wrong. The tag names
are not marked as wrong (good), but incorectly in the  tag is missed
(bad).


cheers

dc

--
David Purton
Haese & Harris Publications
Phone: +61 8 8355 9444Email: [EMAIL PROTECTED]
Fax:   +61 8 8355 9471Web:   http://www.haeseandharris.com.au/



Re: spell checking with html doesn't work

2006-05-26 Thread David Purton
On Fri, May 26, 2006 at 11:30:52AM +0200, Mikolaj Machowski wrote:
> Dnia piątek, 26 maja 2006 03:28, David Purton napisał:
> >
> > Any suggestions? It kind of looks like a bug, but maybe I'm missing
> > something obvious.
> 
> Maybe you have some custom highlighting definitions for HTML? Remove
> them and check once more.

mmm, not as far as I know. how can I tell?

Well it *is* related to syntax highlighting.

If I turn syntax higlighting off, it works correctly.

It is not just windows, I can reproduce the probem under linux as well.

Using debian unstable I can do the following to reproduce the problem:

$ gvim -u /etc/vim/vimrc -U /etc/vim/gvimrc# load debian defaults
:set filetype=xhtml
:set spell

Enter the following:

This word is spelt incorectly
This word is spelt incorectly

h1, p and incorectly should be marked as wrong in all places.

Now turn syntax on
:syntax on

Only incorectly within the  tag is marked as wrong. The tag names
are not marked as wrong (good), but incorectly in the  tag is missed
(bad).


cheers

dc

-- 
David Purton
Haese & Harris Publications
Phone: +61 8 8355 9444Email: [EMAIL PROTECTED]
Fax:   +61 8 8355 9471Web:   http://www.haeseandharris.com.au/


Re: spell checking with html doesn't work

2006-05-26 Thread Mikolaj Machowski
Dnia piątek, 26 maja 2006 03:28, David Purton napisał:
>
> Any suggestions? It kind of looks like a bug, but maybe I'm missing
> something obvious.

Maybe you have some custom highlighting definitions for HTML? Remove
them and check once more.

m.



spell checking with html doesn't work

2006-05-25 Thread David Purton
Hi all,

With Vim 7 under Windows XP, I don't seem to be able to get spell
checking to work with HTML files.

Mostly no words are marked as misspelled.

But inside some tags, e.g., , it seems to work OK.

Spelling errors are not highlighted in  tags, which is likely to
be where most errors are going to be.

Spelling for other types (e.g., plain text and LaTeX) seems fine.

I have a line like this in my _vimrc:

au BufNewFile,BufRead *.html,*.htm,*.asp,*.php set spell spelllang=en_au

I am not using any other spelling plugin for Vim. This is a clean install.

Any suggestions? It kind of looks like a bug, but maybe I'm missing
something obvious.


cheers

dc

-- 
David Purton
Haese & Harris Publications
Phone: +61 8 8355 9444Email: [EMAIL PROTECTED]
Fax:   +61 8 8355 9471Web:   http://www.haeseandharris.com.au/