<?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" 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" 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" 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" 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="checkedfiller" 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" 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" 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" 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" 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" 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>