<?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="definehspace" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-dimension"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="hspace" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:keywords optional="yes">
                <cd:constant type="small"/>
                <cd:constant type="medium"/>
                <cd:constant type="big"/>
                <cd:constant type="normal"/>
                <cd:constant type="default" default="yes"/>
                <cd:constant type="none"/>
                <cd:constant type=".5"/>
                <cd:constant type="1"/>
                <cd:constant type="2"/>
                <cd:constant type="3"/>
                <!--
                    <cd:constant type="vulgarfraction"/>
                -->
                <cd:constant type="speech"/>
                <cd:constant type="quote"/>
                <cd:constant type="interquotation"/>
                <cd:constant type="quotation"/>
                <cd:constant type="sentence"/>
                <cd:constant type="intersentence"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="hairspace" file="spac-hor.mkiv"/>

    <cd:command name="thinspace" file="spac-hor.mkiv"/>

    <cd:command name="medspace" file="spac-hor.mkiv"/>

    <cd:command name="thickspace" file="spac-hor.mkiv"/>

    <cd:command name="autoinsertnextspace" file="spac-hor.mkiv"/>

    <cd:command name="hglue" file="spac-ver.mkiv">
        <cd:arguments>
            <cd:resolve name="string-dimension"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="frenchspacing" file="spac-hor.mkiv"/>

    <cd:command name="newfrenchspacing" file="spac-hor.mkiv"/>

    <cd:command name="nonfrenchspacing" file="spac-hor.mkiv"/>

    <cd:command name="setupspacing" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="fixed"/>
                <cd:constant type="packed" default="yes"/>
                <cd:constant type="broad"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="space" file="spac-hor.mkiv"/>

    <cd:command name="removelastspace" file="spac-hor.mkiv"/>

    <cd:command name="nospace" file="spac-hor.mkiv"/>

    <cd:command name="fixedspace" file="spac-hor.mkiv"/>

    <cd:command name="fixedspaces" file="spac-hor.mkiv"/>

    <cd:command name="keepunwantedspaces" file="spac-hor.mkiv"/>

    <cd:command name="removeunwantedspaces" file="spac-hor.mkiv"/>

    <cd:command name="thinspace" file="spac-hor.mkiv"/>

    <cd:command name="negthinspace" file="spac-hor.mkiv"/>

    <cd:command name="enspace" file="spac-hor.mkiv"/>

    <cd:command name="enskip" file="spac-hor.mkiv"/>

    <cd:command name="quad" file="spac-hor.mkiv"/>

    <cd:command name="qquad" file="spac-hor.mkiv"/>

    <cd:command name="emspace" file="spac-hor.mkiv"/>

    <cd:command name="dotfskip" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="leftskipadaption" file="spac-hor.mkiv"/>

    <cd:command name="rightskipadaption" file="spac-hor.mkiv"/>

    <cd:command name="dosetleftskipadaption" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:resolve name="value-leftskip"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="dosetrightskipadaption" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:resolve name="value-rightskip"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="doadaptleftskip" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:resolve name="value-leftskip"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="doadaptrightskip" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:resolve name="value-rightskip"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="activatespacehandler" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:keywords delimiters="braces">
                <cd:constant type="on"/>
                <cd:constant type="off" default="yes"/>
                <cd:constant type="yes"/>
                <cd:constant type="fixed"/>
                <!--
                    <cd:constant type="cd:name"/>
                -->
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="quads" file="spac-hor.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number-optional"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
