Rewrite Rulesbase/space-to-tilde

base/space-to-tilde

Collapse space to the explicit nonbreaking space token.

Rewrite patterns#

  1. \space~

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

space before number#

Before

Figure\space 2 shows the result

After this rule

Figure~2 shows the result

Rendering verified with the declared packages.

Same family#

Notes#

Targets a nonbreaking-space special symbol; produces is empty because ~ is not a knowledge command/environment target.

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/space-to-tilde"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/space-to-tilde'] })

Open in Playground