kapi exec whitespace-correct
kapi whitespace-correct [files...]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-correctFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --concurrency, -j | int | 0 | max parallel files (0 = auto) |
| --correct-comma | bool | true | Correct whitespace after commas |
| --correct-exclamation | bool | true | Correct whitespace after exclamation marks |
| --correct-full-stop | bool | true | Correct whitespace after full stops (periods) |
| --correct-question | bool | true | Correct whitespace after question marks |
| --encoding, -e | string | UTF-8 | input file encoding |
| --fail-on-unknown | bool | false | exit with error if any file cannot be processed (default: skip with warning) |
| --format, -f | string | override input format detection | |
| --include-horizontal-w-s | bool | true | Include horizontal tab characters in corrections |
| --include-vertical-w-s | bool | true | Include vertical whitespace (line feeds and carriage returns) in corrections |
| --json | bool | false | output results as JSON |
| --map, -m | stringArray | map glob pattern to format (e.g. '*.docx=okf_openxml:test') | |
| --match-source-whitespace | bool | true | Copy source leading/trailing whitespace to target |
| --no-warn | bool | false | suppress warnings for skipped files |
| --normalize-spaces | bool | true | Collapse multiple spaces to a single space |
| --output, -o | string | output path template (variables: {dir}, {name}, {ext}, {lang}) | |
| --output-dir | string | write outputs under DIR/{lang}/ (default: beside the input, mirroring its locale layout) | |
| --pack | bool | false | when transforming a .kpz, also eject the result to the .kpz (auto-pack) |
| --parallel-blocks | int | 0 | fan out block processing across N goroutines (0 = off) |
| --progress, -p | bool | false | show progress bar |
| --remove-zero-width-chars | bool | true | Remove zero-width spaces and joiners |
| --source-lang | string | en | source language (e.g. en, en-US) |
| --strict | bool | false | alias for --fail-on-unknown |
| --target-lang | string | target language (e.g. fr, de-DE) | |
| --target-locale | string | Target locale for processing | |
| --trace | string | write flow trace JSON to file (for flow visualization) | |
| --trim-leading | bool | false | Remove leading whitespace from target text |
| --trim-trailing | bool | false | Remove trailing whitespace from target text |
← Back to the Command Reference