Page 1 of 1

trim v1.2 update

PostPosted: 16 Aug 2006, 18:56
by Norm Pollock
trim.exe is my utility to remove move-wrap from pgn files. Move-wrap is word-wrap of moves. trim is also able to change the width of the pgns. It can now also truncate pgn files to a maximum number of plies (half moves).

Temporarily you can download it from:

http://www.hoflink.com/~npollock/trim12.rar

I want to thank Jim Ablett for hosting trim and my other utilities on his excellent site. Hopefully trim 1.2 will be up there soon. Thanks Jim.

Here are the improvements from the previous released version (v1.0).

1. trim now removes comments. Before you had to use another program to remove comments from your pgn file before using trim.exe.

2. trim now is able to truncate the pgns to a maximum number of plies (half-moves).

notes on usage in a Windows command window:

trim.exe creates an output file "outR.pgn" without changing the input file.

Usage:

trim alpha.pgn

OR

trim alpha.pgn <widthNumber>

OR

trim alpha.pgn <widthNumber> <maxNumberPlies>

The optional widthNumber sets the width of the output data from 50 to 100 characters. The default width is 75 characters.

The optional maxNumberPlies sets the maximum number of plies (half-moves) that will be output.

Notice that a width number has to first be specified each time you want to specify a max number of plies.

Re: trim v1.2 update

PostPosted: 17 Aug 2006, 10:11
by Roger Brown
Norm Pollock wrote:trim.exe is my utility to remove move-wrap from pgn files. Move-wrap is word-wrap of moves. trim is also able to change the width of the pgns. It can now also truncate pgn files to a maximum number of plies (half moves).

Temporarily you can download it from:

http://www.hoflink.com/~npollock/trim12.rar

I want to thank Jim Ablett for hosting trim and my other utilities on his excellent site. Hopefully trim 1.2 will be up there soon. Thanks Jim.

Here are the improvements from the previous released version (v1.0).

1. trim now removes comments. Before you had to use another program to remove comments from your pgn file before using trim.exe.

2. trim now is able to truncate the pgns to a maximum number of plies (half-moves).

notes on usage in a Windows command window:

trim.exe creates an output file "outR.pgn" without changing the input file.

Usage:

trim alpha.pgn

OR

trim alpha.pgn <widthNumber>

OR

trim alpha.pgn <widthNumber> <maxNumberPlies>

The optional widthNumber sets the width of the output data from 50 to 100 characters. The default width is 75 characters.

The optional maxNumberPlies sets the maximum number of plies (half-moves) that will be output.

Notice that a width number has to first be specified each time you want to specify a max number of plies.






Hello Norm,

Thanks for your latest effort.

You are consolidating the pgn functions into one application - this is good.

Soon one application will truncuate, clean, output wins, draws, losses, output interesting positions etc.

Thanks for making the fruits of your intellectual labours free of cost to fans such as myself.

Later.