<?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="ornamenttext" variant="collector" level="document" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="a" default="yes"/>
                    <cd:constant type="b"/>
                </cd:parameter>
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="ornamenttext" variant="layer" level="document" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="a"/>
                    <cd:constant type="b" default="yes"/>
                </cd:parameter>
                <cd:inherit name="setuplayer"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayeredtext"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="ornamenttext" variant="direct" level="document" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="defineornament" variant="collector" level="style" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="a" default="yes"/>
                    <cd:constant type="b"/>
                </cd:parameter>
                <cd:inherit name="setupcollector"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="defineornament" variant="layer" level="style" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="a"/>
                    <cd:constant type="b" default="yes"/>
                </cd:parameter>
                <cd:inherit name="setuplayer"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuplayeredtext"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="ornament" generated="yes" variant="example" level="document" category="background" keywords="fonts colors" file="pack-box.mkiv">
        <cd:sequence>
            <cd:variable value="ornament"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

</cd:interface>
