<?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" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-optional"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="MPinitializations" type="environment" level="style" category="graphics metapost" file="meta-ini.mkiv"/>

    <cd:command name="MPinclusions" type="environment" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="system" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processMPfigurefile" level="document" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="resetMPdrawing" level="document" category="graphics metapost" file="meta-ini.mkiv"/>

    <cd:command name="getMPdrawing" level="document" category="graphics metapost" file="meta-ini.mkiv"/>

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

    <cd:command name="MPdrawing" level="document" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="MPfontsizehskip" level="system" category="graphics metapost fonts" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupMPvariables" level="style" 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" level="style" 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" level="style" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="assignment-userdata"/>
        </cd:arguments>
    </cd:command>

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

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

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

    <cd:command name="useMPvariables" level="style" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="document" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="MPenvironment" type="environment" level="style" category="graphics metapost" 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" level="style" category="graphics" file="meta-ini.mkiv"/>

    <cd:command name="useMPenvironmentbuffer" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

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

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

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

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

    <cd:command name="useMPlibrary" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="MPtext" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPstring" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPbetex" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseMPgraphic" level="style" category="graphics metapost conditional" 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" level="style" category="graphics metapost conditional" 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" level="style" category="graphics metapost" file="meta-ini.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="staticMPgraphic" type="environment" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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" level="style" category="graphics metapost" 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>