Gå til hovedinnhold

kapi exec whitespace-correct

kapi whitespace-correct [files...]

Hvitrom-korreksjon

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-comma booltrueCorrect whitespace after commas
--correct-exclamation booltrueCorrect whitespace after exclamation marks
--correct-full-stop booltrueCorrect whitespace after full stops (periods)
--correct-question booltrueCorrect whitespace after question marks
--encoding , -estringinput file encoding
--fail-on-unknown boolfalseexit with error if any file cannot be processed (default: skip with warning)
--format , -fstringoverride input format detection
--include-horizontal-w-s booltrueInclude horizontal tab characters in corrections
--include-vertical-w-s booltrueInclude vertical whitespace (line feeds and carriage returns) in corrections
--json boolfalseoutput results as JSON
--map , -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--match-source-whitespace booltrueCopy source leading/trailing whitespace to target
--no-warn boolfalsesuppress warnings for skipped files
--normalize-spaces booltrueCollapse multiple spaces to a single space
--output , -ostringoutput path template (variables: {dir}, {name}, {ext}, {lang})
--output-dir stringwrite outputs under DIR/{lang}/ (default: beside the input, mirroring its locale layout)
--pack boolfalsewhen transforming a .kpz, also eject the result to the .kpz (auto-pack)
--parallel-blocks int0fan out block processing across N goroutines (0 = off)
--progress , -pboolfalseshow progress bar
--remove-zero-width-chars booltrueRemove zero-width spaces and joiners
--source-lang stringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--strict boolfalsealias for --fail-on-unknown
--target-lang stringtarget language (e.g. fr, de-DE)
--target-locale stringTarget locale for processing
--trace stringwrite flow trace JSON to file (for flow visualization)
--trim-leading boolfalseRemove leading whitespace from target text
--trim-trailing boolfalseRemove trailing whitespace from target text

← Back to the Command Reference