<?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="definefiller" level="style" category="rules" file="spac-flr.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfiller" level="style" category="rules" file="spac-flr.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="leftmargin">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightmargin">
                    <cd:constant type="cd:dimension"/>
                </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="alternative">
                    <cd:constant type="symbol" default="yes"/>
                    <cd:constant type="stretch"/>
                    <cd:constant type="rule"/>
                    <cd:constant type="space"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="broad"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="offset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:resolve name="value-alignsimple"/>
                </cd:parameter>
                <cd:parameter name="symbol">
                    <cd:constant type="cd:command"/>
                </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:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setupfillers" level="style" category="rules" file="spac-flr.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:inherit name="setupfiller"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="filler" level="style" category="rules" file="spac-flr.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="fillupto" level="style" category="rules" file="spac-flr.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:resolve name="argument-text"/>
       </cd:arguments>
    </cd:command>

    <cd:command name="checkedfiller" level="style" category="rules" file="spac-flr.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:constant type="sym"/>
                <cd:constant type="symbol"/>
                <cd:constant type="rule"/>
                <cd:constant type="width"/>
                <cd:constant type="space"/>
                <cd:constant type="cd:name"/>
                <cd:constant type="cd:command"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="definelinefiller" level="style" category="rules metapost" file="node-rul.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinefiller" level="style" category="rules metapost" file="node-rul.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="location">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="both" default="yes"/>
                </cd:parameter>
                <cd:parameter name="scope">
                    <cd:constant type="left"/>
                    <cd:constant type="right"/>
                    <cd:constant type="local" default="yes"/>
                </cd:parameter>
                <cd:parameter name="mp">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="threshold">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </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="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="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuplinefillers" level="style" category="rules metapost" file="node-rul.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="linefiller" type="environment" level="style" category="rules metapost" file="node-rul.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="filler"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplinefiller"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setlinefiller" level="style" category="rules metapost" file="node-rul.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="filler"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

</cd:interface>
