|
Properties
ASPSpellLink.caseSensitive
This Boolean property is used to decide if the spell-check dialog will act in a case sensitive manner.The default value is defined in the settings file.
If checkGrammar is set to true then the spellchecker can pickup irregularities in sentences even if caseSensitive is set to false.
Example
If you wanted to your spellchecker to ignore case mistakes in words:
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World.
</textarea>
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.caseSensitive=false 'not case sensitive
response.write myLink.imageButtonHTML ("","","") 'renders a button
set myLink = nothing 'closes the class
%>
ASPSpellLink.checkGrammar
This Boolean property is used to decide if the spell-check dialog will find basic grammar mistakes such as repeated words, poor sentence casing etc.
The default value is defined in the settings file.
Example
If you wanted to your spellchecker to ignore grammatical mistakes:
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World.
</textarea>
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.checkGrammar= false 'grammar check turned off
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing 'closes the class
%>
ASPSpellLink.dictionary
The dictionary property sets the default dictionary which spellchecker will use.
The value should be the same as the name of any dictionary you have installed in the Dictionaries directory (do not use the ".dic" at the end though).
Examples of possible values of dictionary are:
"Deutsch" - for German
"English (Australia)" - for Australian English
"English (Canada)" - for Canadian English
"English (International)" - for International English
"English (UK)" - for British English
"English (USA)" - for US American English
"Espanol" - for Spanish
"Francais" - for French
"Italiano" - for Italian
"Nederlands" - for Dutch
"Portugues" - for Portuguese
"Svenska" - for Swedish
"Dansk" - For Danish
You may use up to multiple dictionaries at the same time using a comma separated list (see below).
If this method is not used, the Dictionary used will be defined by the settings file.
Examples
If you wanted to your spellchecker to use a German Dictionary:
<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->
<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World. Gutten Tag.
</textarea >
<%
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.dictionary = "Deutsch" 'German Dictionary
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing 'closes the class
%>
»
|