Command/replaceword
< Command
Jump to navigation
Jump to search
Revision as of 07:05, 14 September 2022 by Max Chernoff (talk | contribs) (Add discretionary example)
Contents
\replaceword
Summary
The command \replaceword can add replacement words to ligature exception dictionaries. Define different replacement sets and activate them with \setreplacements.
Settings
| \replaceword[...][...][...] | |
| [...] | name |
| [...] | text |
| [...] | text |
| Option | Explanation |
|---|---|
| name | category |
| text | target |
| text | replacement |
Description
Examples
Discretionaries
You can insert discretionaries in the replacement text like this:
\setuppapersize[A6][A6] \replaceword[category][ABCDEFGHIJ][ABCDE{1}{2}{3}FGHIJ] \setreplacements[category] \starttext ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ \stoptext
