<?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="definecharacterspacing" level="style" category="fonts" file="typo-spa.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupcharacterspacing" level="style" category="fonts" file="typo-spa.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-number"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="left">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="0"/>
                    <cd:constant type="1"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setcharacterspacing" level="style" category="fonts" file="typo-spa.mkiv">
        <cd:arguments>
            <cd:keywords>
                <cd:constant type="reset"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetcharacterspacing" level="style" category="fonts" file="typo-spa.mkiv"/>

</cd:interface>