decasify(1) General Commands Manual decasify(1)

decasify - Convert prose strings to other cases following locale specific rule sets

decasify [-l|--locale] [-c|--case] [-s|--style] [-O|--overrides] [-h|--help] [INPUT]

Convert prose strings to other cases following locale specific rule sets.

Can convert input in any supported language from any case to any other case.

The locale of the input text

Used to identify what language-specific handling needs to be done. This can affect how individual Unicode characters are coveted to other cases as well as change which style guides are considered.

[possible values: en, tr, es]

The desired output case

What case to convert to. Note the output *can* be affected by the input case, so in some cases (pun intended) you may need to either process twice or avoid doing so depending on the expected result. For example, title-casing in some English styles tries to preserve capitalized acronyms, but lower-casing does not. First converting to lower-case then to title-case would give a different result than directly to title-case.

[possible values: lower, sentence, title, upper]

Proffered style guide

For languages with more than one style guide, this picks which set of guidelines to follow. Each language will have a default (typically the one we have the most robust implementation for or implemented first).

[possible values: ap, cmos, gruber, default, tdk, rae, fundeu]

Override words

Override the output case of specific words regardless of what the casing function or style guide would normally do with them. The case used to specify these words is used in the output regardless of the target style or input case.

Print help (see a summary with '-h')
[INPUT]
The input string or strings (note STDIN also accepted)

Note that all input arguments are processed together joined with a space, and STDIN streams are processed line by line. This can affect the output, for example if using sentence case the input should be on a single line, not broken across several.

Caleb Maclennan <caleb@alerque.com>

decasify