[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

proofErr (Proofing Error Anchor)

This element specifies the presence of a start or end anchor for a single proofing error within a WordprocessingML document.

When proofing errors are stored in a document, their semantics shall be interpreted as follows:

Each proofing error with a type attribute value of spellStart shall be linked with the next error with a type attribute of spellEnd. If one does not exist, then this error should be ignored.

Each proofing error with a type attribute value of spellEnd which was not preceded by an error with a type attribute value of spellStart (that was not previously matched to an end) should be ignored.

Each proofing error with a type attribute value of gramStart shall be linked with the next error with a type attribute of gramEnd. If one does not exist, then this error should be ignored.

Each proofing error with a type attribute value of gramEnd which was not preceded by an error with a type attribute value of gramStart (that was not previously matched to an end) should be ignored.

[Example: Consider the following sentence with a grammatical error in its subject/verb agreement. If an application recognized this error and wished to persist it to the document, this paragraph would consist of the following WordprocessingML markup:

<w:p>
<w:proofErr w:val="gramStart"/>
<w:r>
<w:t>This are</w:t>
</w:r>
<w:proofErr w:val="gramEnd"/>
<w:r>
<w:t xml:space="preserve"> an error.</w:t>
</w:r>
</w:p>

The proofErr elements, with a val attribute value of gramStart and gramEnd respectively, delimit the start and end the content in this paragraph which is stored as a grammatical error. end example]

Parent Elements

body2.2.2); comment2.13.4.2); customXml2.5.1.3); customXml2.5.1.4); customXml2.5.1.5); customXml2.5.1.6); deg7.1.2.26); del2.13.5.12); den7.1.2.28); docPartBody2.12.6); e7.1.2.32); endnote2.11.2); fldSimple2.16.21); fName7.1.2.37); footnote2.11.10); ftr2.10.3); hdr2.10.4); hyperlink2.16.24); ins2.13.5.20); lim7.1.2.52); moveFrom2.13.5.21); moveTo2.13.5.26); num7.1.2.75); oMath7.1.2.77); p2.3.1.22); rt2.3.3.23); rubyBase2.3.3.26); sdtContent2.5.2.32); sdtContent2.5.2.33); sdtContent2.5.2.34); sdtContent2.5.2.35); smartTag2.5.1.9); sub7.1.2.112); sup7.1.2.114); tbl2.4.36); tc2.4.62); tr2.4.75); txbxContent2.17.1.1)

 

Attributes

Description

type (Proofing Error Anchor Type)

Specifies the type of proofing error anchor at this location in the document. This type implies the necessary semantics for this element as defined by the parent element.

 

[Example: Consider the following sentence with a proofing error, consisting of the following WordprocessingML markup:

 

<w:r>
<w:t>are</w:t>
</w:r>
<w:proofErr w:val="gramEnd"/>
<w:r>
<w:t xml:space="preserve"> an error.</w:t>
</w:r>

 

The val attribute value of gramEnd specifies that the proofing error is the location of the end of content which is stored as a grammatical error. end example]

 

The possible values for this attribute are defined by the ST_ProofErr simple type2.18.77).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_ProofErr">

   <attribute name="type" type="ST_ProofErr" use="required"/>

</complexType>