Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: PGN

Author: Dann Corbit

Date: 21:01:45 09/30/05

Go up one level in this thread


On September 30, 2005 at 23:48:42, Bruce Moreland wrote:

>As far as I know there has been no revision to the standard for ten years.
>Please correct me if I am wrong, and I would love to be wrong.
>
>Problems:
>
>1) No clear definition of export standard.  Is there one writer that is
>considered the standard?
>
>2) NAGs do not correlate well with Informant/ECO symbols.  There are some ECO
>meanings that don't exist, and other NAGs are ambiguous in that context.  This
>sounds like a trivial problem, but it causes hell if you try to write something
>that reads PGN, converts to some sane format for editing, and then write it back
>out to PGN.
>
>3) The standard allows comments in stupid places, some of which won't seem
>stupid to some people.
>
>Assume you are parsing a file, and you find a comment.  You really want to
>attach it to a move.  This is kind of hard to do if the comment follows the last
>game in the file, if it occurs between games, occurs in the middle of a tag,
>etc.
>
>Anyone else know of problems?  Anyone else have any idea how to fix them?

I complained about en passent sqares that don't exist.  The standard says that
these two positions are different:
[d]3k4/3p4/8/8/3P4/8/8/3K4 b - -
[d]3k4/3p4/8/8/3P4/8/8/3K4 b d2 -

Clearly they are not.

>Last time I sent email to Steven J Edwards about this, he essentially told me
>that great minds were working on it, and that I should shut up and go away.
>
>That was in about 1997.

That pretty much sums it up.  There have been some efforts at adding stuff for
computer chess (that %emt, %clk goo}:
http://www.enpassant.dk/chess/palview/enhancedpgn.htm

If you want to see a parser that can really go to town, PGN-Extract by Barnes is
really good.

Winboard has really clever parsing stuff in it to deal with crappy inputs.

The Elo calculation stuff by Remi has a real nice PGN parser in it.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.