Skip to main content

kapi exec whitespace-correct

kapi whitespace-correct [files...]

Whitespace Correct

Commandexec whitespace-correct
Try it

Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.

kapi exec whitespace-correct
Flags
FlagTypeDefaultDescription
--concurrency, -jint0max parallel files (0 = auto)
--correct-commabooltrueCorrect whitespace after commas
--correct-exclamationbooltrueCorrect whitespace after exclamation marks
--correct-full-stopbooltrueCorrect whitespace after full stops (periods)
--correct-questionbooltrueCorrect whitespace after question marks
--encoding, -estringcharset the input is read in; a byte-order mark in the file wins (default: the project's defaults.encoding, then UTF-8)
--enginestringformat engine for detected files: native or a plugin name (default: native, then plugins)
--fail-on-unknownboolfalseexit with error if any file cannot be processed (default: skip with warning)
--format, -fstringoverride input format detection
--include-horizontal-w-sbooltrueInclude horizontal tab characters in corrections
--include-vertical-w-sbooltrueInclude vertical whitespace (line feeds and carriage returns) in corrections
--jsonboolfalseoutput results as JSON
--map, -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--match-source-whitespacebooltrueCopy source leading/trailing whitespace to target
--no-warnboolfalsesuppress warnings for skipped files
--normalize-spacesbooltrueCollapse multiple spaces to a single space
--output, -ostringoutput path template (variables: {dir}, {name}, {ext}, {lang})
--output-dirstringwrite outputs under DIR/{lang}/ (default: the target-language file beside the input, mirroring its locale layout; with no target language, the input itself)
--packboolfalsewhen transforming a .kpz, also eject the result to the .kpz (auto-pack)
--parallel-blocksint0fan out block processing across N goroutines (0 = off)
--print-opsboolfalsewrite no file and print the change set the run would apply, for kapi apply
--progressboolfalseshow progress bar
--project, -pstringpath to a kapi.yaml project recipe or its directory (auto-discovered from cwd if omitted)
--remove-zero-width-charsbooltrueRemove zero-width spaces and joiners
--source-langstringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--strictboolfalsealias for --fail-on-unknown
--target-langstringtarget language (e.g. fr, de-DE); one per run
--target-localestringTarget locale for processing
--tracestringwrite flow trace JSON to file (for flow visualization)
--trim-leadingboolfalseRemove leading whitespace from target text
--trim-trailingboolfalseRemove trailing whitespace from target text

← Back to the Command Reference