<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:
<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. ]

Parent Elements

<body>2.2.2); <comment>2.13.4.2); <customXml>2.5.1.3); <customXml>2.5.1.4); <customXml>2.5.1.5); <customXml>2.5.1.6); <deg>7.1.2.26); <del>2.13.5.12); <den>7.1.2.28); <docPartBody>2.12.6); <e>7.1.2.32); <endnote>2.11.2); <fldSimple>2.16.21); <fName>7.1.2.37); <footnote>2.11.10); <ftr>2.10.3); <hdr>2.10.4); <hyperlink>2.16.24); <ins>2.13.5.20); <lim>7.1.2.52); <moveFrom>2.13.5.21); <moveTo>2.13.5.26); <num>7.1.2.75); <oMath>7.1.2.77); <p>2.3.1.22); <rt>2.3.3.23); <rubyBase>2.3.3.26); <sdtContent>2.5.2.32); <sdtContent>2.5.2.33); <sdtContent>2.5.2.34); <sdtContent>2.5.2.35); <smartTag>2.5.1.9); <sub>7.1.2.112); <sup>7.1.2.114); <tbl>2.4.36); <tc>2.4.62); <tr>2.4.75); <txbxContent>2.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.

<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. ]

The possible values for this attribute are defined by the ST_ProofErr simple type (§2.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>