<?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="table" type="environment" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:template/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptables"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="table" type="environment" variant="name" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuptables"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="definetabletemplate" level="style" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:template/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:resolve name="keyword-name-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tables" type="environment" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:template/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tables" type="environment" variant="name" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tablehead" type="environment" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="tabletail" type="environment" level="document" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuptables" level="style" category="tables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="textwidth">
                    <cd:constant type="cd:dimension"/>
                    <cd:constant type="max"/>
                </cd:parameter>
                <cd:parameter name="split">
                    <cd:constant type="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="repeat"/>
                    <cd:constant type="auto" default="yes"/>
                </cd:parameter>
                <cd:parameter name="frame">
                    <cd:constant type="on"/>
                    <cd:constant type="off"/>
                </cd:parameter>
                <cd:parameter name="NL">
                    <cd:inherit name="blank"/>
                </cd:parameter>
                <cd:parameter name="VL">
                    <cd:constant type="small"/>
                    <cd:constant type="medium" default="yes"/>
                    <cd:constant type="big"/>
                    <cd:constant type="none"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="HL">
                    <cd:constant type="small"/>
                    <cd:constant type="medium" default="yes"/>
                    <cd:constant type="big"/>
                    <cd:constant type="none"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="small"/>
                    <cd:constant type="medium" default="yes"/>
                    <cd:constant type="big"/>
                    <cd:constant type="none"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:constant type="left"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right" default="yes"/>
                </cd:parameter>
                <cd:parameter name="commands">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="bodyfont">
                    <cd:inherit name="setupbodyfont"/>
                </cd:parameter>
                <cd:parameter name="rulethickness">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="strut"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="strut"/>
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="openup">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="ReFormat" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-template"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="enlarge" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Enlarge" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-dimension"/>
                <cd:resolve name="argument-dimension"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="use" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Use" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
                <cd:resolve name="keyword-template"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="JustLeft" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="JustCenter" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="JustRight" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="Smash" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Raise" variant="argument" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords delimiters="parentheses" optional="yes">
                    <cd:constant type="cd:dimension"/>
                </cd:keywords>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Raise" variant="string" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Lower" variant="argument" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords delimiters="parentheses" optional="yes">
                    <cd:constant type="cd:dimension"/>
                </cd:keywords>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Lower" variant="string" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="BackSpace" variant="argument" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords delimiters="parentheses" optional="yes">
                    <cd:constant type="cd:dimension"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="BackSpace" variant="string" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Vspace" variant="argument" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords delimiters="parentheses" optional="yes">
                    <cd:constant type="cd:dimension"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="Vspace" variant="string" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="OpenUp" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="TableLeft" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="TableCenter" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="TableRight" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="SR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="FR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="MR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="LR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="AR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="VL" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="VC" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="HL" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="HC" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="VS" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="VD" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="VT" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="VN" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="TB" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:inherit name="blank"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="NL" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:inherit name="blank"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="NR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="NC" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="FC" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="MC" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="LC" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="DL" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:number"/>
                    <cd:constant type="cd:color"/>
                </cd:keywords>
            </cd:arguments>
        </cd:command>

        <cd:command name="DC" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="DV" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="DR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="TWO" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="THREE" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="FOUR" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="FIVE" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="SIX" scope="table" level="document" category="tables" file="tabl-tab.mkiv"/>

        <cd:command name="SPAN" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="REF" scope="table" level="document" category="tables" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-template"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
