<?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" 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" 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" 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" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:template/>
        </cd:arguments>
    </cd:command>

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

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

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

    <cd:command name="setuptables" file="tabl-tab.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="text">
                    <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" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-template"/>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="enlarge" scope="table" 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" 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" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Use" scope="table" 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" file="tabl-tab.mkiv"/>

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

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

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

        <cd:command name="Raise" variant="argument" scope="table" 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" 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" 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" 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" 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" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="Vspace" variant="argument" scope="table" 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" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:resolve name="string-number-optional"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="OpenUp" scope="table" 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" file="tabl-tab.mkiv">
            <cd:arguments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

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

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

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

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

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

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

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

        <cd:command name="VL" scope="table" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" file="tabl-tab.mkiv"/>

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

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

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

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

        <cd:command name="DL" scope="table" 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" file="tabl-tab.mkiv"/>

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

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

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

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

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

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

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

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

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

    -->

</cd:interface>
