<?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="normalizetextwidth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizetextheight" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizetextdepth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizetextline" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizefontwidth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizefontheight" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizefontdepth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizefontline" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="widthspanningtext" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="heightspanningtext" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="depthspanningtext" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="linespanningtext" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="normalizedfontsize" file="typo-txt.mkvi"/>

    <cd:command name="NormalizeTextWidth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="NormalizeTextHeight" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-font"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="NormalizeFontWidth" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="NormalizeFontHeight" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="WidthSpanningText" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="argument-dimension"/>
            <cd:resolve name="argument-font"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="TheNormalizedFontSize" file="typo-txt.mkvi"/>

    <cd:command name="nicelyfilledbox" type="environment" file="typo-txt.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="offset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="strut">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
