Author: Koundinya Veluri
Date: 16:44:21 02/01/03
Go up one level in this thread
How about this: when you encounter the first quotation mark, read everything up to ']'. Then remove the last quotation mark from what you read and then parse it normally, looking for escape sequences. Would that work? Koundinya 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.