Gå til hovedinnhold

Inline Codes Remove tool

The Inline Codes Remove tool removes inline-code runs — placeholders and paired open/close codes — from segment content, leaving the surrounding plain text. It is useful when a downstream consumer wants the textual content without markup, for example to build a plain-text reference or to feed a tool that cannot handle coded text.

Removal recurses into structured plural and select constructs so inline codes inside them are also stripped. By default it applies to the target (a target locale is required) and includes non-translatable blocks. Line-break codes can optionally be replaced with a space so adjacent words do not run together.

IDinline-codes-remove
SourceBuilt-in
Categorytext-processing
Cardinalitymonolingual
Tagstext-processing

Parameters

ParameterTypeDefaultDescription
applySourcebooleanfalseApply to the source text
applyTargetbooleantrueApply to the target text
includeNonTranslatablebooleantrueApply the removal action even to text units marked as non-translatable
replaceWithSpacebooleanfalseReplace line-break inline codes with spaces instead of removing them entirely
targetLocalestringTarget locale for processing

Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.

Examples

Strip codes from the target

Produce plain target text for a locale.

applyTarget: true
targetLocale: fr-FR

Keep word boundaries at line breaks

Replace line-break codes with a space when stripping.

applyTarget: true
targetLocale: fr-FR
replaceWithSpace: true

Processing notes

  • Removal recurses into plural and select constructs so codes inside them are stripped as well.

  • Paired open/close codes are dropped while their inner text content is retained.

Limitations

  • At least one of applySource or applyTarget must be enabled.

← Back to the Tool Reference