<?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="input" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="input" variant="string" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotfile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsefile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffileelse" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="jobfilename" file="core-sys.mkiv"/>

    <cd:command name="jobfilesuffix" file="core-sys.mkiv"/>

    <cd:command name="inputfilebarename" file="core-sys.mkiv"/>

    <cd:command name="inputfilerealsuffix" file="core-sys.mkiv"/>

    <cd:command name="inputfilesuffix" file="core-sys.mkiv"/>

    <cd:command name="inputfilename" file="core-sys.mkiv"/>

    <cd:command name="outputfilename" file="core-sys.mkiv"/>

    <cd:command name="readingfile" type="environment" file="file-ini.mkvi"/>

    <cd:command name="endofline" type="environment" begin="push" end="pop" file="file-ini.mkvi"/>

    <cd:command name="restoreendofline" file="file-ini.mkvi"/>

    <cd:command name="inputgivenfile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsepath" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifpathelse" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsefileexists" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffileexistselse" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsepathexists" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifpathexistselse" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelseparentfile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifparentfileelse" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="splitfilename" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="splitofffull" file="file-ini.mkvi"/>

    <cd:command name="splitoffpath" file="file-ini.mkvi"/>

    <cd:command name="splitoffbase" file="file-ini.mkvi"/>

    <cd:command name="splitoffname" file="file-ini.mkvi"/>

    <cd:command name="splitofftype" file="file-ini.mkvi"/>

    <cd:command name="splitoffkind" file="file-ini.mkvi"/>

    <cd:command name="splitoffroot" file="file-ini.mkvi"/>

    <cd:command name="doifelseinputfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifinputfileelse" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfile" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usepath" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-path-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usesubpath" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-path-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="path" type="environment" begin="push" end="pop" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-path"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetpath" file="file-job.mkvi"/>

    <cd:command name="allinputpaths" file="file-job.mkvi"/>

    <cd:command name="locatefilepath" file="file-ini.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="locatedfilepath" file="file-job.mkvi"/>

    <cd:command name="usezipfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
            <cd:resolve name="keyword-file-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfilemany" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfileonce" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfilenone" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadtexfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadluafile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadcldfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadanyfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadtexfileonce" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadluafileonce" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadcldfileonce" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadanyfileonce" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="continueifinputfile" file="file-job.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readjobfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readlocfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readsysfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readfixfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readsetfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-path"/>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="ReadFile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readtexfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readxmlfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelselocfile" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiflocfileelse" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="locfilename" file="file-res.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefilesynonym" file="file-sys.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefilefallback" file="file-sys.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-file-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="truefilename" file="file-sys.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
