[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_ProofErr (Proofing Error Type)

This simple type specifies the possible values for the types of proofing error markers which can appear in the contents of a WordprocessingML document to indicate the last known state of any spell- and grammar-checking performed on the contents of this document.

[Example: Consider the following paragraph consisting of two misspelled words, where the second word has been explicitly flagged as not being a spelling error. This paragraph would consist of the following WordprocessingML markup:

<w:p>
<w:proofErr w:val="spellStart"/>
<w:r>
<w:t>erqwt</w:t>
</w:r>
<w:proofErr w:val="spellEnd"/>
<w:r>
<w:t xml:space="preserve"> werewr</w:t>
</w:r>
</w:p>

The proofErr elements with a val attribute value of spellStart and spellEnd, respectively delimit the start and end the content in this paragraph which is stored as a spelling error. Since the second word is not included in that range, it is not stored as a spelling error. end example]

This simple type's contents are a restriction of the XML Schema string datatype.

The following are possible enumeration values for this type:

Enumeration Value

Description

gramEnd (End of Region Marked as Grammatical Error)

Specifies that this proofing error marker shall indicate the start of a region to be marked as a grammatical error in the document.

gramStart (Start of Region Marked as Grammatical Error)

Specifies that this proofing error marker shall indicate the end of a region to be marked as a grammatical error in the document.

spellEnd (End of Region Marked as Spelling Error)

Specifies that this proofing error marker shall indicate the end of a region to be marked as a spelling error in the document.

spellStart (Start of Region Marked as Spelling Error)

Specifies that this proofing error marker shall indicate the start of a region to be marked as a spelling error in the document.

 

Referenced By

proofErr@type2.13.8.1)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_ProofErr">

   <restriction base="xsd:string">

   <enumeration value="spellStart"/>

   <enumeration value="spellEnd"/>

   <enumeration value="gramStart"/>

   <enumeration value="gramEnd"/>

   </restriction>

</simpleType>