Index: lib/xvfs/xvfs.tcl ================================================================== --- lib/xvfs/xvfs.tcl +++ lib/xvfs/xvfs.tcl @@ -1,8 +1,9 @@ #! /usr/bin/env tclsh namespace eval ::xvfs {} +namespace eval ::xvfs::callback {} set ::xvfs::_xvfsDir [file dirname [info script]] # Functions proc ::xvfs::_emitLine {line} { @@ -161,10 +162,17 @@ continue } set inputFile [file join $workingDirectory $file] set outputFile [file join $outputDirectory [encoding convertto utf-8 $file]] + + if {[info command ::xvfs::callback::setOutputFileName] ne ""} { + set outputFile [::xvfs::callback::setOutputFileName $workingDirectory $inputFile $outputDirectory $outputFile] + if {$outputFile eq ""} { + continue + } + } unset -nocomplain fileInfo catch { file lstat $inputFile fileInfo }