<?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="MPdefinitions" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPextensions" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPinitializations" type="environment" file="meta-ini.mkiv"/>

    <cd:command name="MPinclusions" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="+"/>
            </cd:keywords>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPinclusions" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="+"/>
            </cd:keywords>
            <cd:resolve name="argument-name-optional"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="defineMPinstance" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupMPinstance"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPinstance" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="format">
                    <cd:constant type="metafun" default="yes"/>
                    <cd:constant type="mpost"/>
                </cd:parameter>
                <cd:parameter name="initializations">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </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="extensions">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="binary"/>
                    <cd:constant type="decimal"/>
                    <cd:constant type="double"/>
                    <cd:constant type="scaled"/>
                    <cd:constant type="default" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPinstance" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processMPfigurefile" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPdrawing" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="-"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPdrawing" file="meta-ini.mkiv"/>

    <cd:command name="getMPdrawing" file="meta-ini.mkiv"/>

    <cd:command name="MPdrawing" type="environment" begin="push" end="pop" file="meta-ini.mkiv"/>

    <cd:command name="MPdrawing" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPclip" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPfontsizehskip" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPvariables" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPvariables" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="assignment-userdata-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPvariable" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-userdata"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPrawvar" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPvariable" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPvar" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPvariables" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-key-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPgraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPgraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPgraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPgraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="usableMPgraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reuseMPgraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="reusableMPgraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="reusableMPgraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPpagegraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="uniqueMPpagegraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:assignments delimiters="braces" list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="processMPbuffer" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="runMPbuffer" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPenvironment" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="reset"/>
                <cd:constant type="global"/>
                <cd:constant type="+"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetMPenvironment" file="meta-ini.mkiv"/>

    <cd:command name="useMPenvironmentbuffer" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPcode" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPcode" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPrun" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPrun" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useMPlibrary" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setMPtext" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPtext" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPstring" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPbetex" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseMPgraphic" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifMPgraphicelse" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="staticMPfigure" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="staticMPgraphic" type="environment" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-key-list-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usestaticMPfigure" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupscale"/>
            </cd:assignments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPgraphics" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="color">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                </cd:parameter>
                <cd:parameter name="mpy">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
