<?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" level="document" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="input" variant="string" level="document" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffile" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifnotfile" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-true"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsefile" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="jobfilesuffix" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="inputfilebarename" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="inputfilerealsuffix" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="inputfilesuffix" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="inputfilename" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="outputfilename" level="system" category="structure" file="core-sys.mkxl"/>

    <cd:command name="readingfile" type="environment" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="endofline" type="environment" begin="push" end="pop" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="restoreendofline" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="inputgivenfile" level="system" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsepath" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-ini.mklx">
        <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" level="system" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="splitofffull" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitoffpath" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitoffbase" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitoffname" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitofftype" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitoffkind" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="splitoffroot" level="system" category="structure" file="file-ini.mklx"/>

    <cd:command name="doifelseinputfile" level="system" category="structure" keywords="conditional" file="file-job.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-job.mklx">
        <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" level="system" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usepath" level="style" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-path-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usesubpath" level="style" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-path-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="path" type="environment" begin="push" end="pop" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-path"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="resetpath" level="style" category="structure" file="file-job.mklx"/>

    <cd:command name="allinputpaths" level="system" category="structure" file="file-job.mklx"/>

    <cd:command name="locatefilepath" level="system" category="structure" file="file-ini.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="locatedfilepath" level="system" category="structure" file="file-job.mklx"/>

    <cd:command name="usezipfile" level="style" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
            <cd:resolve name="keyword-file-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfilemany" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfileonce" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="processfilenone" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadtexfile" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadluafile" level="system" category="structure" keywords="lua" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadcldfile" level="system" category="structure" keywords="lua" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadanyfile" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadtexfileonce" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadluafileonce" level="system" category="structure" keywords="lua" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadcldfileonce" level="system" category="structure" keywords="lua" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="loadanyfileonce" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="continueifinputfile" level="system" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="samplefile" level="document" category="structure" file="file-job.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readjobfile" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" file="file-res.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="readtexfile" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" keywords="conditional" file="file-res.mklx">
        <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" level="system" category="structure" file="file-res.mklx">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="definefilefallback" level="system" category="structure" 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" level="system" category="structure" file="file-sys.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="usefontpath" level="system" category="structure" keywords="fonts" file="font-ini.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-path-list"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
