Page 1 of 1

Bin book help

PostPosted: 18 Jun 2009, 12:55
by karo
I am getting a error while making bin books please take a look at this


http://rapidshare.com/files/245885490/image.jpg.html

My operating sytem is window xp 64 bits

I have cleaned all the syntex errors from the pgn still i am getting this error.

If any one have utility for cleaning PGN files kindly let me know.
PGN Trim does not support my operating system
I tried even Normal 32 Utility

Kindly help me out for an utility for compatible system.

Regards

Karo.

Re: Bin book help

PostPosted: 18 Jun 2009, 13:08
by Volker Pittlik
It looks like if there is an error in the pgn. Try to keep the pgn as clean as possible. IIRC SCID can do it. PGN-extract does that very good. Whenever I make a book with polyglot I always clean it with pgn-extract (using -7 as one parameter).

vp

Re: Bin book help

PostPosted: 18 Jun 2009, 13:48
by Marc Lacrosse
This error message tells you that there is an error in the header part of the 6202nd game of your database : one of the PGN tags does not comply with the PGN specification.
I second Volker's advice : PGNextract by David Barnes is the best PGN cleaner by far.
But in my experience in a few cases with strange characters in the headers of the games, even PGNextract does not succeed in correcting faulty tags.
In that case you still have the option to open the pgn file in a good text editor (I use the excellent shareware EditPad) and go to the line number that was given by polyglot's error message for some manual correction of the faulty line.
The most frequent error is the presence of forbidden characters within the tag value (for example a double quote within the name of a player or strange characters coming from erroneously interpreted cyrillic files).
Do correct it by hand and do not forget to ask your editor to find further occurences of the same error within the file.
Then you save the corrected file, relaunch polyglot and so on until everything is ok.

Marc

Re: Bin book help

PostPosted: 19 Jun 2009, 11:58
by karo
Thanks Guys for your Guideline. I will try PGN-extract can any one tell whats the command in it for cleaning PGN files.

Re: Bin book help

PostPosted: 19 Jun 2009, 12:30
by Volker Pittlik
karo wrote:Thanks Guys for your Guideline. I will try PGN-extract can any one tell whats the command in it for cleaning PGN files.


Its a powerful commandline tool so you have to read the README coming with the program. Here is an example. Let's assume you want to try to clean a file from TWIC. Make sure there only normal chess games in the files. No studies no FRC. YOu can do that easily with SCID for example.

Now if you have such a file (twic727.pgn for example) I would use:

Code: Select all
pgn-extract -7 -V -C -N -llog.txt -otwic727.clean.pgn twic727.pgn


That creates a clean pgn file as well as a logfile. If you run Linux omit the .txt stuff. The original pgn is unchanged. There are other options to overwrite the original fike. Personally I don't like that. See the README.

So the common form of the command is:

Code: Select all
pgn-extract -7 -V -C -N -l<logfile> -o<outputfile> <inputfile>


hth

vp

Re: Bin book help

PostPosted: 20 Jun 2009, 06:21
by karo
Thanks Volker Pittlik. :D