<?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="definelabelclass" level="system" category="language" file="lang-lab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-number-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplabeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:string value="setup"/>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="presetlabeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:string value="preset"/>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="copylabeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:string value="copy"/>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:resolve name="assignment-labeldata-list"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="labeltext" type="environment" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:resolve name="keyword-key"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="labellanguage" generated="yes" variant="instance" level="system" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:instance value="label"/>
            <cd:string value="language"/>
        </cd:sequence>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="labeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labelclass"/>
        </cd:instances>
    </cd:command>

    <cd:command name="labeltexts" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:instance value="label"/>
            <cd:string value="texts"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-key"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labeltext"/>
        </cd:instances>
    </cd:command>

    <cd:command name="leftlabeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:string value="left"/>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labeltext"/>
        </cd:instances>
    </cd:command>

    <cd:command name="rightlabeltext" generated="yes" variant="instance" level="style" category="language" file="lang-lab.mkiv">
        <cd:sequence>
            <cd:string value="right"/>
            <cd:instance value="label"/>
            <cd:string value="text"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-labeltext"/>
        </cd:instances>
    </cd:command>

</cd:interface>
