<?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="definescript" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupscript"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupscript" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="method">
                    <cd:constant type="hangul"/>
                    <cd:constant type="hanzi"/>
                    <cd:constant type="nihongo"/>
                    <cd:constant type="ethiopic"/>
                    <cd:constant type="thai"/>
                    <cd:constant type="tibetan"/>
                    <cd:constant type="test"/>
                </cd:parameter>
                <cd:parameter name="preset">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="features">
                    <cd:constant type="auto"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupscripts" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupscript"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setscript" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-script"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlocalscript" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-script"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setglobalscript" level="style" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:resolve name="keyword-script"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetscript" level="system" category="language" file="scrp-ini.mkxl"/>

    <cd:command name="script" type="environment" level="document" category="language" file="scrp-ini.mkxl">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="hangul"/>
                <cd:constant type="hanzi"/>
                <cd:constant type="nihongo"/>
                <cd:constant type="ethiopic"/>
                <cd:constant type="thai"/>
                <cd:constant type="tibetan"/>
                <cd:constant type="test"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="script" generated="yes" variant="instance" level="document" category="language" file="scrp-ini.mkxl">
        <cd:sequence>
            <cd:instance value="script"/>
        </cd:sequence>
        <cd:instances>
            <cd:resolve name="instance-script"/>
        </cd:instances>
    </cd:command>

</cd:interface>
