<?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="definedelimitedtext" level="style" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupdelimitedtext"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupdelimitedtext" level="style" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="cd:name"/>
                <cd:constant type="cd:number" prefix="cd:name" method="range"/>
            </cd:keywords>
            <cd:assignments list="yes">
                <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="language">
                    <cd:constant type="local"/>
                    <cd:constant type="global"/>
                    <cd:constant type="cd:language"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="font"/>
                </cd:parameter>
                <cd:parameter name="repeat">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="text"/>
                    <cd:constant type="paragraph"/>
                    <cd:constant type="margin" default="yes"/>
                </cd:parameter>
                <cd:parameter name="left">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="middle">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="nextleft">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="nextright">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="spacebefore">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <cd:parameter name="spaceafter">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <cd:parameter name="leftmargin">
                    <cd:resolve name="value-leftskip"/>
                </cd:parameter>
                <cd:parameter name="rightmargin">
                    <cd:resolve name="value-rightskip"/>
                </cd:parameter>
                <cd:parameter name="indenting">
                    <cd:inherit name="setupindenting"/>
                </cd:parameter>
                <cd:parameter name="indentnext">
                    <cd:resolve name="value-indentnext"/>
                </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="symstyle">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="symcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="delimitedtext" generated="yes" variant="instance" level="document" category="language" file="typo-del.mkiv">
        <cd:sequence>
            <cd:instance value="delimitedtext"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:content/>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-delimitedtext"/>
        </cd:instances>
    </cd:command>

    <cd:command name="delimitedtext" type="environment" generated="yes" variant="instance" level="document" category="language" file="typo-del.mkiv">
        <cd:sequence>
            <cd:instance value="delimitedtext"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-language-optional"/>
            <cd:keywords list="yes" optional="yes">
                <cd:inherit name="startnarrower"/>
            </cd:keywords>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-delimitedtext"/>
        </cd:instances>
    </cd:command>

    <cd:command name="delimitedtext" level="document" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-language-optional"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="delimitedtext" type="environment" level="document" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-language-optional"/>
            <cd:keywords list="yes" optional="yes">
                <cd:inherit name="startnarrower"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="delimited" level="document" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-language-optional"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="delimited" type="environment" level="document" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-language-optional"/>
            <cd:keywords list="yes" optional="yes">
                <cd:inherit name="startnarrower"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupquotation" level="style" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupdelimitedtext"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupquote" level="style" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupdelimitedtext"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="subsentence" level="document" category="language" file="typo-del.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="subsentence" type="environment" level="document" category="language" file="typo-del.mkiv"/>

    <cd:command name="midsubsentence" level="document" category="language" file="typo-del.mkiv"/>

</cd:interface>
