<?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="definebleeding" level="style" category="graphics" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-name-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupbleeding"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbleeding" level="style" category="graphics" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="define">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </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="offset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="hoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="voffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="t"/>
                    <cd:constant type="b"/>
                    <cd:constant type="l" default="yes"/>
                    <cd:constant type="r"/>
                    <cd:constant type="bl"/>
                    <cd:constant type="lb"/>
                    <cd:constant type="br"/>
                    <cd:constant type="rb"/>
                    <cd:constant type="tl"/>
                    <cd:constant type="lt"/>
                    <cd:constant type="tr"/>
                    <cd:constant type="rt"/>
                </cd:parameter>
                <cd:parameter name="stretch">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="page">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="bleed" generated="yes" variant="instance" level="document" category="graphics" file="pack-box.mkiv">
        <cd:sequence>
            <cd:instance value="bleed"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbleeding"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
        <cd:instances>
            <cd:constant value="bleed"/>
        </cd:instances>
    </cd:command>

    <cd:command name="bleeding" type="environment" level="document" category="graphics" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbleeding"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="bleeding" level="document" category="graphics" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbleeding"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="bleedwidth" level="style" category="graphics" file="pack-box.mkiv"/>

    <cd:command name="bleedheight" level="style" category="graphics" file="pack-box.mkiv"/>

</cd:interface>
