> Scid by itself uses another null move notation (--). Let it
> be, but maybe PGN import could recognize Z0 and handle it?
I took a deeper look and it turned out that patching this is
fairly trivial. The patch (against scid 3.6.16-2) is attached.
I tested it and it seems to work without any problems.
The patch just interprets Z0 in parsed PGN files as nullmove,
own scid representation remains unchanged.
Dziala
diff -r a26a4ededf72 src/pgnparse.cpp
--- a/src/pgnparse.cpp Wed Jul 11 20:00:25 2007 +0200
+++ b/src/pgnparse.cpp Wed Jul 11 20:05:54 2007 +0200
@@ -859,6 +859,14 @@ PgnParser::GetGameToken (char * buffer,
return TOKEN_Suffix;
}
+
+ if (ch == 'Z') { // Z0 - nullmove in CA notation
+ int nextCh = GetChar();
+ if (nextCh == '0')
+ return TOKEN_Move_Null;
+ UnGetChar(nextCh);
+ }
+
// If we get down this far, the first character of our token is invalid.
// Probably a letter like C or z, or punctuation or nonprintable.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users