|
Fix Lead/Trail Spaces |
This automatic task removes or adds spaces at the segment's extremities in the translations. The Expert assesses if spaces need to be added or removed by comparing and matching the translation with the Original segment.
Catalyst /FixLeadTrailSpaces UserName TTKName:FName [ezLogFile:ezLogFile] [/write] [/open]
or
Catalyst /FixLeadTrailSpaces UserName FromFolder:FolderName [ezLogFile:ezLogFile] [/write] [/open]
/FixLeadTrailSpaces |
Fix Lead and Trail spaces |
UserName |
The name that will appear in the history list in the TTK. |
TTKName:FName |
Parameter used to specify the name of a TTK file. |
FromFolder:Foldername |
Tag used to specify the path to a folder in which all TTK projects are to get fixed. |
/S |
Recurse all sub-folders. |
ezLogFile:ezLogFile |
The user can optionally specify a log file to which results of each Catalyst ezScript command are output. All fixed segments are listed in this log file for reference. If the log file is not specified by the user or is invalid, the default log file (ezScriptBatchLog.txt in the Public location) is used. |
/write |
The command line which has been processed by Catalyst will be written into the ezScript batch log file. This will help to debug your command if something is not behaving as expected. |
/open |
Launches MS Notepad and displays the content of ezScript batch log when the command finishes. |
This example runs the Lead/Trail Spaces expert on the TTK project MyProject.ttk. The log is recorded in Batchlog.txt and opened automatically (with /open) on completion of the ezScript command. All fixed segments are listed in the log file.
Catalyst.exe /FixLeadTrailSpaces JohnD TTKName:"C:\Test_FixLeadTrailSpaces\MyProject.ttk" ezLogFile:"C:\Test_FixLeadTrailSpaces\Batchlog.txt" /open
In this example, the Lead/Trail Spaces expert is applied to all TTK files found in the C:\Test_FixLeadTrailSpaces\ttks folder, recursively (with /S).
Catalyst.exe /FixLeadTrailSpaces JohnD FromFolder:"C:\Test_FixLeadTrailSpaces\ttks\" /S