Consistency – Typography Corrector for Gutenberg Consistency – Typography Corrector for Gutenberg

Consistency – Typography Corrector for Gutenberg

Created by: Loïc Antignac

Rating:
Downloaded: 2k times

Have you seen the typographic corrector in your word processor that formats what you type in real time? Well, it’s the same idea but with Gutenberg.

This WordPress plugin ensures consistent typography and punctuation on your site.
Corrections are applied automatically both during text entry and when pasting text.

All users can choose to enable or disable corrections, but only administrators can configure the correction rules.
Autocorrect is available for pages, posts, and custom post types (if they are configured to use the Rest API).
The available automatic corrections are listed on the plugin repository on github and are categorized as follows: Apostrophes, Quotation Marks, Dashes, Suffixes, Spaces, Case, Ellipsis, Symbols.

Pressing Ctrl+Z or Cmd+Z immediately after a correction disables the correction for the next keystroke.

Technical Informations

Data Storage: Rules are saved in the wp_options table, while active/inactive states are saved as user meta data.
This data is deleted when the plugin is uninstalled.

Settings Location: Settings are directly in a plugin sidebar under the Block Editor: no more searching for an options page, always available and discreet.

Supported Locales: The locales supported by this plugin are:
fr_FR, fr_BE, en_US, en_AU, en_CA, en_NZ, en_ZA, en_GB, de_DE, de_AT, de_CH, ro_RO

If your locale is not supported by Consistency but you still want to access all available rules, you can disable the localization of rules via a filter. Add this to your theme’s functions.php file:

add_filter( 'Consistency\only_show_locale_correction_rules', '__return_false' );

All correction rules will then appear, with automatic management of rule incompatibilities (if rule A is enabled and it is incompatible with rule B, rule B will be grayed out).

Screenshots

  • Actions Settings: These settings can be seen and modified by all user roles, unlike the following ones relating to correction rules which can only be seen and modified by an administrator role.
  • Apostrophes
  • Quotation marks
  • Dashes
  • Suffixes
  • Spaces
  • Case
  • Ellipsis
  • Symbols

Categories

Get New Themes & Resources