2010/1/14, Alexander Wagner <[email protected]>: > Hi! > > Two questions about importing PGN data: > > - Is it possible to somehow strip textual comment and/or variations upon > import? I know that I can import the pgn and then strip them once the > game is loaded. However, this requires the game to fit into a game > block. (Yes, I have still some "games" that are to large for this. These > are however VERY special, it would be sufficient if I could strip of the > commentary and import the moves and probably variations for them to fit.)
This is not possible. > - I just noted the following mapping when importing annotated PGN games > from a small, arguably unimportant german software company: > > [%csl Rf7] > is in Scid speak: [%draw full,f7,red] > > [%csl Rf7,Gf6] > is in Scid speak: [%draw full,f7,red][%draw full,f6,green] > > [%cal Ga1h8] > is in Scid speak: [%draw arrow,a1,h8,green] > > (yellow is noted by a Y, no other colours seem to be supported nor any > markers). I think it would easy up transitions to Scid if we could > translate those things upon import (or allow scid to learn the other > syntax). Unfortunately, I'm completely lost at the location where this > should be done. Maybe it's even an easy thing to do. Follow the function sc_base_import in tkscid.cpp. At first sight this should not be hard to map one format to the other while importing the game. It seems everything is around line 1178 in pgnparse.cpp. Pascal ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Scid-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scid-users
