Changes

Jump to navigation Jump to search
433 bytes added ,  07:05, 14 September 2022
Add discretionary example
<cd:commandgroup name="replaceword" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\replaceword</tt> can add replacement words to ligature exception dictionaries. Define different replacement sets and activate them with {{cmd|setreplacements}}.</cd:shortdesc>
<cd:variants>
<cd:command category="language" file="lang-rep.mkiv" interfacedate="2021-03-02T11:08" interfacefile="i-replacement.xml" level="style" name="replaceword" variantnumber="1">
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name">category</cd:constant>
</cd:keywords>
<cd:keywords optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text">target</cd:constant>
</cd:keywords>
<cd:keywords ordinal="3">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text">replacement</cd:constant>
</cd:keywords>
</cd:arguments>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title="Discretionaries">You can insert discretionaries in the replacement text like this: <context source="yes" >\setuppapersize[A6][A6] \replaceword[category][ABCDEFGHIJ][ABCDE{1}{2}{3}FGHIJ]\setreplacements[category] \starttext ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ \stoptext</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>

Navigation menu