<?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="defineipsum" file="m-ipsum.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupipsum"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupipsum" file="m-ipsum.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="paragraph" default="yes"/>
                    <cd:constant type="line"/>
                    <cd:constant type="lines"/>
                    <cd:constant type="word"/>
                    <cd:constant type="words"/>
                </cd:parameter>
                <cd:parameter name="file">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="random"/>
                    <cd:constant type="cd:number"/>
                </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="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <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:parameter name="language">
                    <cd:constant type="cd:language"/>
                </cd:parameter>
                <cd:parameter name="separator">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="ipsum" file="m-ipsum.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupipsum"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="directipsum" file="m-ipsum.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

</cd:interface>