<?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="signalcharacteralign" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setcharacteralign" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="cd:text"/>
                <cd:constant type="cd:text" prefix="number" method="apply"/>
                <cd:constant type="cd:text" prefix="text" method="apply"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetcharacteralign" level="system" category="alignment" file="typo-tal.mkiv"/>

    <cd:command name="nocharacteralign" level="system" category="alignment" file="typo-tal.mkiv"/>

    <cd:command name="setcharacteraligndetail" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="cd:text"/>
                <cd:constant type="cd:text" prefix="number" method="apply"/>
                <cd:constant type="cd:text" prefix="text" method="apply"/>
            </cd:keywords>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-dimension"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="alignmentcharacter" level="system" category="alignment" file="typo-tal.mkiv"/>

    <cd:command name="characteralign" type="environment" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupcharacteralign"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="characteralign" type="environment" variant="argument" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="cd:text"/>
                <cd:constant type="cd:text" prefix="number" method="apply"/>
                <cd:constant type="cd:text" prefix="text" method="apply"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="checkcharacteralign" level="system" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupcharacteralign" level="style" category="alignment" file="typo-tal.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="leftwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="leftsample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="rightsample">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="character">
                    <cd:constant type="cd:text"/>
                    <cd:constant type="cd:text" prefix="number" method="apply"/>
                    <cd:constant type="cd:text" prefix="text" method="apply"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setfirstpasscharacteralign" level="system" category="alignment" file="typo-tal.mkiv"/>

    <cd:command name="setsecondpasscharacteralign" level="system" category="alignment" file="typo-tal.mkiv"/>

    <cd:command name="setalignmentcharacter" level="system" category="alignment" file="tabl-com.mkxl">
        <cd:arguments>
            <cd:resolve name="argument-characters"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetalignmentcharacter" level="system" category="alignment" file="tabl-com.mkxl"/>

    <cd:command name="aligncontentleft" level="system" category="alignment" file="tabl-com.mkxl"/>

    <cd:command name="aligncontentmiddle" level="system" category="alignment" file="tabl-com.mkxl"/>

    <cd:command name="aligncontentright" level="system" category="alignment" file="tabl-com.mkxl"/>

</cd:interface>
