Author: Frank Schneider
Date: 23:33:48 02/01/03
Go up one level in this thread
Hi Dieter, On February 01, 2003 at 18:51:55, Dieter Buerssner wrote: >I wonder, if the following PGN headers are correct > >[Event "Computer chess game 5' + 3""] >(Typical Chessbase generated header) > >[Event "1& A (Pryca Gij\"] >(Generated by Scid from a large database) > >I would think, that the correct way to write this would be > >[Event "Computer chess game 5' + 3\""] > >and > >[Event "1& A (Pryca Gij\\"] > you're right, Chessbase does not stick to the standard here. >But it is a fact, that the above headers happen. I wonder, how PGN parsing >software, that wants to be not too picky, and makes the best of what it sees, >should do in those cases. I can see myself, that looking at the next char can >help in those specific cases, but it may introduce other errors for correct PGN. > >How do other authors cope with this? I start parsing "computer chess game 5' +3" and stop when finding the ". Then I try to parse the right bracket and remember all consumed characters before the right bracket. When there is another " before the right bracket, I add it to the tagValue. Frank > >Regards, >Dieter
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.