Introduction to punctuation checker

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Oct/2014, at 13:27

The punctuation checker is based on rules specifying which characters or punctuation marks can follow a given punctuation mark. E.g. 'a comma must be followed by a space', or 'a period must be followed by an end of line, another period, a space or a comma'.

    <SpellConfig Alpha="abcdefghilmnopqrstuvz01234567890" Spaces="--" NSuggestions="10" SuggestDepth="10" FromChars="" ToChars="">

      <SpellConfigKey Name="!" Value="\o\s?\n" />

      <SpellConfigKey Name="(" Value="\o" />

      <SpellConfigKey Name=")" Value="\s.,;:!?" />

      <SpellConfigKey Name="+" Value="\s.,;:!?" />

      <SpellConfigKey Name="," Value="\s" />

      <SpellConfigKey Name="." Value=",\s.\n" />

      <SpellConfigKey Name=":" Value="\s" />

      <SpellConfigKey Name=";" Value="½{[(\o\s-0123456789" />

      <SpellConfigKey Name=";\s" Value="½{[(\o\s-0123456789" />

      <SpellConfigKey Name="?" Value="\o\s?\n" />

      <SpellConfigKey Name="\b" Value="\o" />

      <SpellConfigKey Name="\n" Value="\o\n\s0123456789" />

      <SpellConfigKey Name="\p" Value="\s" />

      <SpellConfigKey Name="]" Value="\s.,;:!?" />

      <SpellConfigKey Name="{" Value="\o" />

      <SpellConfigKey Name="}" Value="\s.,;:!?" />

      <SpellConfigKey Name="«" Value="\o" />

      <SpellConfigKey Name="»" Value="\s.,;:!?" />

      <SpellConfigKey Name="½" Value="\o" />

      <SpellConfigKey Name="“" Value="\o" />

    </SpellConfig>

These rules are stored as entries in the SpellConfigKey in the SpellConfig node in the GlobalConfig. Each entry specifies a certain character - as the entry name - and the list of characters that may follow it - as the entry value.  Punctuation characters that have no corresponding entry section are ignored by the check, i.e. they are always considered correct regardless of the character that follows them.

Characters that are not in the Spaces nor in the Alpha lists are considered punctuation, and checked as such

If there are no entries in the SpellConfigKey, the punctuation check is disabled.

A number of special sequences starting with \ can be used to specify particular characters.

IMPORTANT: To make these changes available to the GN4 users, after you saved the GLOBALCONFIG.XML file and imported it into the database, or after you modified it in EdAdmin4 and saved, recycle the GN4 application pools on all IIS servers and then make all users log out and log back in.