I searched the open tickets about "Preprocessor" and did not find an entry about variable substitution there, so I post this as a feature request:
A rather simple but IMHO very useful feature would be, if in the field "Menu->Settings->Configure KDiff3->Diff->Preprocessor command" some variables were substituted, like "path to file", "file name", etc. This would make the implementation of file type specific preprocessing commands much easier.
Example:
{{{
python.exe myfilterscript.py --filename "%(filename)"
}}}
With the requested feature implemented, KDiff3 would substitute the currently processed file's name for the string "%(filename)".
Kind regards,
weiehpcc