Author: Robert Hyatt
Date: 16:51:17 05/07/02
Go up one level in this thread
On May 06, 2002 at 14:00:50, Manfred Schubert wrote:
>On May 05, 2002 at 22:59:18, Robert Hyatt wrote:
>
>>This is _not_ an "extension". The PGN standard defines comments as
>>text inside {} characters, which means that _anything_ can be put in there,
>>including cryptic acronyms and scores...
>>
>>Crafty will read this stuff just fine and ignore the comments just like
>>it should...
>
>Good, so I know what this not is.
>
>But if these 'annotated with cryptic acronyms and scores' PGN become more
>popular I might have a problem with it, since my app does import the comments in
>PGN. And that doesn't just make the raw PGN unreadable for humans, it makes
>imported games unreadable in my app.
The problem is that you are making an assumption about the "comments". There
are supposedly two types of comments, those using () and those using {}. If
you expect someone to follow some sort of rules inside the {} comments, you are
probably asking for future trouble since the standard says "comment" not
"comment with XX meaning this, YY meaning that."
So long as things are nested properly, my code can read games with no trouble.
yes, I would like to handle the comments. But I gave up on that years ago as
it is free-form text and everyone has their own "form".
Hell, some well-known engines still use zero-zero for castling, which is
definitely contrary to the PGN standard. Most of us juse accept this and
parse O-O, o-o or 0-0 as the same move to avoid the headaches...
>
>That's why I asked if this is official or a de facto standard. In which case I
>would want to support it (at least by skipping the [%stuff]).
It is a silly practice, not a standard. :) He who tries to format text in an
unformatted text region is asking for trouble. He will probably get plenty of
it... :)
>
>I would have appreciated the chess application programmer's opinion on that and
>especially honored yours, but I guess I'll just wait and see.
You have mine. Perhaps adding some _new_ comment types would be useful. IE
enclosing comments inside [] as an example, with a very specific format so that
there is room for evaluation, depth, time, etc along with a PV...
But trying to do so now using {} is futile because there are already millions
of pre-existing games that won't match any standard requiring a specific format
inside the {} characters...
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.