Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 27 Nov 2007 11:58:02 +0100,    group: microsoft.public.word.spelling.grammar        back       


Custom rules for words to not spell check   
Is there any way that I can tell Word not to
not spell check words starting with $?

Motivation: I'm writing a document in
Word 2003 / Win XP Pro, which document has
PHP computer code interspersed.  Variable
names are uniformly indicated by a dollar
sign ($) prefixing the variable name
(eg. $myVar).  These should be ignored for
purposes of spell checking.

I noticed that under
Tools \ Spelling and Grammar \ Options
there is the possibility to ignore words
in UPPERCASE and words with numbers.  So I'm
asking can I, possibly with VBA, expand upon
this?

Thanks,
Csaba Gabor from Vienna
date: Tue, 27 Nov 2007 11:58:02 +0100   author:   Csaba Gabor

RE: Custom rules for words to not spell check   
Hi Csaba Gabor,

Go to 
Tools-->Options-->Sepllings & Grammer -->Custom Dictionaries-->Modify

Here a list of words will be shown that you already may have added. 
Add an entry as $* in this list, this will enable Word to ignore all the 
words starting from $. The * works as wild char here.

HTH,

use the following option to set this-

-- 
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Csaba Gabor" wrote:

> Is there any way that I can tell Word not to
> not spell check words starting with $?
> 
> Motivation: I'm writing a document in
> Word 2003 / Win XP Pro, which document has
> PHP computer code interspersed.  Variable
> names are uniformly indicated by a dollar
> sign ($) prefixing the variable name
> (eg. $myVar).  These should be ignored for
> purposes of spell checking.
> 
> I noticed that under
> Tools \ Spelling and Grammar \ Options
> there is the possibility to ignore words
> in UPPERCASE and words with numbers.  So I'm
> asking can I, possibly with VBA, expand upon
> this?
> 
> Thanks,
> Csaba Gabor from Vienna
> 
>
date: Tue, 27 Nov 2007 04:10:00 -0800   author:   Pranav Vaidya

Re: Custom rules for words to not spell check   
Pranav Vaidya wrote:
> Hi Csaba Gabor,
> 
> Go to 
> Tools-->Options-->Sepllings & Grammer -->Custom Dictionaries-->Modify
> 
> Here a list of words will be shown that you already may have added. 
> Add an entry as $* in this list, this will enable Word to ignore all the 
> words starting from $. The * works as wild char here.

Wow!  This is fabulous, thanks very much, and worked like a charm
for ignoring spell checking on words starting with a $

I'd like to ask some followup questions:
What wild cards do dictionaries know about and how do they work?

For example, I wanted to ignore auto_prepend_file so I added to
the custom dictionary *_* thinking that all words with an underscore
should be ignored.  Didn't work.  OK, I was too greedy.  I'll try
auto_*.  Still no luck.  Fine.  auto*.  No dice.  Finally putting
in the whole word, auto_prepend_file, took care of it.

Also, suppose I want to ignore all "words" which have a period
in them.  That is, text delimited by white space on either end
and which has a dot (period) amongst the characters.  e.g.
WScript.Shell and file.vbs

Thanks,
Csaba Gabor from Vienna
date: Tue, 27 Nov 2007 13:53:04 +0100   author:   Csaba Gabor

Re: Custom rules for words to not spell check   
"Pranav Vaidya" 

> Go to
> Tools-->Options-->Sepllings & Grammer -->Custom Dictionaries-->Modify
> Here a list of words will be shown that you already may have added.
> Add an entry as $* in this list, this will enable Word to ignore all the
> words starting from $. The * works as wild char here.

I'm not seeing this behavior. (Using Word 2002 in Office XP.)

-- 
Bob
http://www.kanyak.com
date: Tue, 27 Nov 2007 16:17:07 +0200   author:   Opinicus

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us