Author: Dann Corbit
Date: 18:37:56 11/06/99
Go up one level in this thread
On November 06, 1999 at 13:01:24, Heiner Marxen wrote:
>I have already read the PGN "standard" by S.J.Edwards (1994.03.12).
>Part of it is a definition/description of EPD.
>
>While for PGN there are several methods defined how to write comments:
>- a semicolon (;) introduces a comment up to the end of the line,
>- a left brace character ({) upto the next right brace (}), and
>- a percent sign (%) in column 1 upto the end of the line,
>there seems to be no method supplied to embed comments into a file
>otherwise consisting of EPD lines.
>
>Is there some usual method already accepted by some EPD scanners?
>I would like to use the semicolon notation of PGN also in EPD
>(i.e. an EPD line starts with ";" and is a comment line, therefore).
>Would that be acceptable for existing software?
>What else? How about a leading hashmark (#)?
EPD comments start with the letter c, followed by a digit (initially 0), then a
double quote. The content of the comment follows, then and ending double quote,
then a semicolon. The only comments that are specifially mentioned are comments
c0 through c9. Line lengths have a maximum 255 characters. Here is the
relevant segment from the PGN standard:
16.2.5.5: Opcode "c0": comment (primary, also "c1" though "c9")
The opcode "c0" (lower case letter "c", digit character zero) indicates a top
level comment that applies to the given position. It is the first of ten
ranked comments, each of which has a mnemonic formed from the lower case letter
"c" followed by a single decimal digit. Each of these opcodes takes either a
single string operand or no operand at all.
This ten member comment family of opcodes is intended for use as descriptive
commentary for a complete game or game fragment. The usual processing of these
opcodes are as follows:
1) At the beginning of a game (or game fragment), a move sequence scanning
program initializes each element of its set of ten comment string registers to
be null.
2) As the EPD record for each position in the game is processed, the comment
operations are interpreted from left to right. (Actually, all operations in n
EPD record are interpreted from left to right.) Because operations appear in
ASCII order according to their opcode mnemonics, opcode "c0" (if present) will
be handled prior to all other opcodes, then opcode "c1" (if present), and so
forth until opcode "c9" (if present).
3) The processing of opcode "cN" (0 <= N <= 9) involves two steps. First, all
comment string registers with an index equal to or greater than N are set to
null. (This is the set "cN" though "c9".) Second, and only if a string
operand is present, the value of the corresponding comment string register is
set equal to the string operand.
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.