Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: PGN-Question

Author: Peter Herttrich

Date: 04:33:42 10/19/98

Go up one level in this thread


On October 19, 1998 at 07:16:53, Jari Kylmälä wrote:

>On October 19, 1998 at 06:25:54, Peter Herttrich wrote:
>
>>
>>Look at this PGN-Header and tell me, if the first line
>>is correct or not:
>>
>>[Event "Ch "Trade Unions""]
>>[Site "Leningrad (Russia)"]
>>[Date "1938.??.??"]
>>[Round "?"]
>>[White "Bastrikov Georgy"]
>>[Black "Panov Vasily (RUS)"]
>>[Result "1-0"]
>>[ECO "A56/11"]
>>
>>If the line is ok, then I and David Barnes have a problem.
>>If not, which stupid program generates this lines?
>>I have found thousends of them, and its nearly unimpossible,
>>to get rid of the ".
>>
>>Peter
>
>Yes, the first line is incorrect. The PGN-specification says that
>a quote inside a string is represented by a backslash followed by a quote.
>so the correct line is:
>[Event "Ch \"Trade Unions\""]
>
>The best way to remove them is write a parser which searchs for tag-markers and
>removes or alters multiple quote-pairs.

If they would use the tag \ , it would be really simple. One
search and replace in every editor.

But now it's time, that i learn to program.
Perl looks like the right language for such problems.

>
>--
>Jari

tnx for the answer.

Peter



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.