<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="definesynonyms" level="style" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
            <cd:resolve name="keyword-plural"/>
            <cd:keywords optional="yes">
                <cd:constant type="cd:csname"/>
            </cd:keywords>
            <cd:keywords optional="yes">
                <cd:constant type="cd:csname"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupsynonyms" level="style" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="expansion">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                    <cd:constant type="xml"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="first"/>
                    <cd:constant type="last"/>
                    <cd:constant type="normal"/>
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="next">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="command">
                    <cd:constant type="cd:threearguments"/>
                </cd:parameter>
                <cd:parameter name="textcommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="synonymcommand">
                    <cd:constant type="cd:oneargument"/>
                </cd:parameter>
                <cd:parameter name="language">
                    <cd:resolve name="value-sortorder"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:resolve name="value-sortmethod"/>
                </cd:parameter>
                <cd:parameter name="criterium">
                    <cd:constant type="current"/>
                    <cd:constant type="previous"/>
                    <cd:constant type="local"/>
                    <cd:constant type="text"/>
                    <cd:constant type="all" default="yes"/>
                    <cd:constant type="cd:section"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="textstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="textcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="synonymstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="synonymcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="left">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="hyphens">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="synonym" generated="yes" variant="instance" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:sequence>
            <cd:instance value="synonym"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-text-optional"/>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-synonym"/>
        </cd:instances>
    </cd:command>

    <cd:command name="definesynonym" level="style" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="yes"/>
                <cd:constant type="no" default="yes"/>
            </cd:keywords>
            <cd:resolve name="keyword-singular"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-text-optional"/>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placelistofsynonyms" generated="yes" variant="instance" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:sequence>
            <cd:string value="placelistof"/>
            <cd:instance value="synonyms"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupsynonyms"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-synonymlist"/>
        </cd:instances>
    </cd:command>

    <cd:command name="completelistofsynonyms" generated="yes" variant="instance" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:sequence>
            <cd:string value="completelistof"/>
            <cd:instance value="synonyms"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupsynonyms"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-synonymlist"/>
        </cd:instances>
    </cd:command>

    <cd:command name="registersynonym" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsecurrentsynonymused" level="system" category="symbols" keywords="conditional" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsecurrentsynonymshown" level="system" category="symbols" keywords="conditional" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetusedsynonyms" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetshownsynonyms" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetlistsynonyms" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetsynonyms" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetsynonymsprogress" level="system" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placelistofsynonyms" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupsynonyms"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="completelistofsynonyms" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-singular"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupsynonyms"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="infull" level="document" category="symbols" file="strc-syn.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
