SGF Organising Utilities
|Table of contents|
To start the ball rolling here is the quick program I wrote to filter comments (chatter) out of SGF files, it currently is focussed at files downloaded off of KGS, but can easily be adapted to handle other go servers.
Here is another perl program, this one removes any sgf properties you don't want, and empty comment nodes too.
KibitzCleaner by Blubb Fallo
This is a very small Python script similar to CommentFilter, but also capable of filtering based on players' ranks.
The link to sourceforge is dead.
Smartgo allows editing of sgf files. It can remove any specified attribute (also comments) from an sgf file. It also allows changing the main line or removing branching from sgf files. It can create diagrams from sgf files.
SGFC - Removing Comments and more
Dieter: Has someone written a tool which extracts comments from sgf-files into text-files ? As the editor of the Belgian magazine, this would considerably reduce the workload of converting contributed commented games to articles in Gowrite.
(Sebastian:) Yes, our very own Arno has written a tool that does this and much more: SGFC - all you need to do is check the "delete property" box and enter "C" for "comment" in the text box like this:
LauriPaatero: in GOWrite 2 (2.1.x) you can export game in graphics and HTML. Result is HTML file with comments and links to graphics (EPS or PNG).
eats many sgf files and saves the corner play sequences (joseki and similar) to a new sgf
Such a tool would be able to merge multiple games into a single tree (same moves must be merged into one node, comments concatenated, conflicting properties detected and warnings displayed ...).
- http://www.igoweb.org/~wms/comp/sgfMerger/ - Dieter: I tested this and it works!
- According to L19, MultiGo is capable to do this.
Since sgf allows multiple games in one file (sgf collection), there should be a tool to manage such collections (and since most editors support only one sgf tree per file it should be a external tool). It should allow to:
- show a list with all games (with general properties like PB, PW, RB, RW, ...)
- open one game in game-specific editor (by GM property) by saving it to temporary file
- if the temporary file is edited, it can be integrated back into the collection (just remember positions of '(;' and ')' to modify the block); backup file needs to be created
The parser would be pretty simple, compared to full sgf parsing (just skip most parts ...).
The whole tool should be game independent (not just Go).
willemien I wrote a very basic tool that takes an SGF tree and transforms it into a Sgf collection. (Every path from the root to a leaf/ end node becomes a new game) I am not a great programmer (and the program fails sometimes, but it would be a good idea if somebode(who is better in programming than me) writes a foolproof version.
- Other than text comments (C and N), move and node annotation is basically never used.
- The graphic markup (AR, LN, and DD, is never used. Nor is SL.
- The character set (CA), if ever specified, is almost always UTF-8.
Yes - I realize this isn't quite the right place in the library for this info... open to suggestions!
BramGo: Your observations of the use of the (CA) just can't be correct. My guess is that most of your sources are websites in English. I've been downloading files from all kinds of asian websites as well, and I've seen a lot of different values in this tag.
- pgn2sgf converts pgn-files (from itsyourturn.com) to sgf-files
- pbm2sgf converts pbm-files (from Richard's Play-By-eMail Server) to sgf-files
- Many Editors have built in routines to open other formats andm save them to sgf, e.g.: MultiGo, The Many Faces of Go, ...
- http://wh1.alexx.net/pgn2sgf/ converts pgn files (from itsyourturn.com) to sgf format
- For perl programmers, you can check out the Games::Go::Image2SGF CPAN module, which uses image recognition to create SGF diagrams from photographs of a go board.
SGFtoKifu is a program for generating images containing kifu diagrams from SGF files. It is especially useful if you want to print a game you have in this format to review in a real board.
PhotoKifu (for Windows), now superseded, created a kifu in PNG format from a preexistent SGF file. It managed handicap stones either Chinese or Japanese but it ignored variations and multiple games in the same file.
Creates thumbnail images of sgf files in your directory listing. For linux systems with gnome2 or gnome3 and nautilus.
Claint: I have gotten these tools working, they are great, but I had to fix 2 bugs in the program to get it to work in gnome2. I'll try to put it somewhere when I get around to it.
sgf2dg package in Linux systems has utilities that can convert an sgf file into tex, pdf and some other formats. (Replaces the older sgf2tex package, which basically also used to do the same thing.)
Perl script that looks through all the sgf files in a directory and prints out a list of those where the first move and the last move are different colours. Is confused by variations.
Go Tracer (dead link)
VideoKifu (for Windows) reconstructs the whole move sequence of a Go game from a possibly unattended video feed, either live or deferred. It produces an SGF file and a game record.
First public release (demo version) published on July 14th, 2017.
- JText2Sgfs is a Java program, that eats text files (e.g. a Mozilla mailbox), extracts sgf-data and saves them to SGF files.
- The same did SplitGo (for Java) by Ray Tayek. This program disappeared from the net.
- A tool to convert a text diagram from rgg to SGF (there is at least one)?
==See also ==
- Smart Game Format ("Specific tools" section)