Author: Andreas Herrmann
Date: 11:52:55 02/02/03
Go up one level in this thread
Hi Dieter, i extract the header info between the first and the last " - character. In steps i do the following: 1. delete all beginning and ending space characters 2. delete the first [ - character and the last ] - character 3. extract and delete the keyword (for excample: event) 4. delete again all beginning and ending space characters 5. delete the first and last " - character 6. delete finally all beginning and ending space characters -> now i have the header info Andreas 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\\"] > >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? > >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.