<?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="setupalign" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:constant type="broad"/>
                <cd:constant type="wide"/>
                <cd:constant type="bottom" default="yes"/>
                <cd:constant type="height"/>
                <cd:constant type="line"/>
                <cd:constant type="high"/>
                <cd:constant type="low"/>
                <cd:constant type="lohi"/>
                <cd:constant type="flushright"/>
                <cd:constant type="flushleft"/>
                <cd:constant type="middle"/>
                <cd:constant type="yes"/>
                <cd:constant type="no"/>
                <cd:constant type="width" default="yes"/>
                <cd:constant type="normal"/>
                <cd:constant type="reset"/>
                <cd:constant type="inner"/>
                <cd:constant type="outer"/>
                <cd:constant type="flushinner"/>
                <cd:constant type="flushouter"/>
                <cd:constant type="left"/>
                <cd:constant type="right"/>
                <cd:constant type="center"/>
                <cd:constant type="disable"/>
                <cd:constant type="last"/>
                <cd:constant type="end"/>
                <cd:constant type="paragraph"/>
                <cd:constant type="lefttoright"/>
                <cd:constant type="righttoleft"/>
                <cd:constant type="l2r"/>
                <cd:constant type="r2l"/>
                <cd:constant type="table"/>
                <cd:constant type="lesshyphenation"/>
                <cd:constant type="morehyphenation"/>
                <cd:constant type="hanging"/>
                <cd:constant type="nothanging"/>
                <cd:constant type="hz"/>
                <cd:constant type="fullhz"/>
                <cd:constant type="nohz"/>
                <cd:constant type="hyphenated"/>
                <cd:constant type="nothyphenated"/>
                <cd:constant type="tolerant"/>
                <cd:constant type="verytolerant"/>
                <cd:constant type="stretch"/>
                <cd:constant type="extremestretch"/>
                <cd:constant type="final"/>
                <cd:constant type="2*final"/>
                <cd:constant type="3*final"/>
                <cd:constant type="4*final"/>
                <!--
                    <cd:constant type="cd:name"/>
                -->
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="usealignparameter" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:csname/>
        </cd:arguments>
    </cd:command>

    <cd:command name="alignment" type="environment" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:inherit name="setupalign"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="linealignment" type="environment" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="left"/>
                <cd:constant type="middle"/>
                <cd:constant type="right"/>
                <cd:constant type="max"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="leftaligned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="middlealigned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="rightaligned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="maxaligned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="midaligned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="centeraligned" type="environment" file="spac-ali.mkiv"/>

    <cd:command name="leftaligned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rightaligned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="middlealigned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="maxaligned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="midaligned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="centeraligned" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="alignedline" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-alignline"/>
            <cd:resolve name="argument-alignline"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="wordright" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="right"/>
                <cd:constant type="cd:dimension"/>
            </cd:keywords>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="simplealignedbox" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-alignsimple"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="simplealignedspreadbox" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-alignsimple"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="simplealignedboxplus" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-alignsimple"/>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="simplereversealignedbox" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-alignsimple"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="simplereversealignedboxplus" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-alignsimple"/>
            <cd:resolve name="argument-text"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="alignedbox" file="pack-box.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:resolve name="value-aligned"/>
            </cd:keywords>
            <cd:csname/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="aligned" file="pack-box.mkiv">
        <cd:arguments>
            <cd:keywords list="yes">
                <cd:resolve name="value-aligned"/>
            </cd:keywords>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="lefttoright" file="spac-ali.mkiv"/>

    <cd:command name="righttoleft" file="spac-ali.mkiv"/>

    <cd:command name="raggedbottom" file="spac-ali.mkiv"/>

    <cd:command name="alignbottom" file="spac-ali.mkiv"/>

    <cd:command name="baselinebottom" file="spac-ali.mkiv"/>

    <cd:command name="notragged" file="spac-ali.mkiv"/>

    <cd:command name="raggedleft" file="spac-ali.mkiv"/>

    <cd:command name="raggedcenter" file="spac-ali.mkiv"/>

    <cd:command name="raggedright" file="spac-ali.mkiv"/>

    <cd:command name="veryraggedleft" file="spac-ali.mkiv"/>

    <cd:command name="veryraggedcenter" file="spac-ali.mkiv"/>

    <cd:command name="veryraggedright" file="spac-ali.mkiv"/>

    <cd:command name="raggedwidecenter" file="spac-ali.mkiv"/>

    <cd:command name="centeredlastline" file="spac-ali.mkiv"/>

    <cd:command name="flushedrightlastline" file="spac-ali.mkiv"/>

    <cd:command name="ttraggedright" file="spac-ali.mkiv"/>

    <cd:command name="forgetragged" file="spac-ali.mkiv"/>

    <cd:command name="line" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="leftline" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rightline" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="centerline" file="spac-ali.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

</cd:interface>
