Automatic text transformation (autocorrect)

Table of contents

The TextTransformation feature brings support for implementing autocorrection options, i.e. automatically turning predefined snippets into their improved forms. Here are some examples that will be transformed in your WYSIWYG editor:

From

To

(tm)

™

1/2

½

->

→

--

–

"foo"

“foo”

This feature comes pre-configured with a set of the most popular transformations. You can, however, disable existing ones or add your own autocorrect entries.

While most often this feature is used to easily insert special characters that are not present on your keyboard, it can also be used to achieve other goals. For instance, you can improve the users’ productivity by configuring it to expand some abbreviations (e.g. team or company names) into their full forms.

Type snippets such as (c), 3/4, !=, ---, "foo" into the rich-text editor below and see how they get transformed into their typographically nicer forms. You can see the complete list of predefined transformations in the TextTransformationConfig documentation.

This feature comes pre-configured with a set of transformations. You can find the list of them in the TextTransformationConfig documentation.

By using the options defined below you can extend, limit or override this list:

typing.transformations.include – Overrides the default configuration. When overriding the default configuration you can reuse the predefined transformations (by using their names that can be found in the TextTransformationConfig documentation) and write your own transformations.