[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [computer-go] Need for more robust SGF Readers
> I have added a SGF property "RT" that contains compressed RTF.
> Frank
>From the SGF spec at http://www.red-bean.com/sgf/:
It's a text only ... format. Therefore games stored in this format
can easily be emailed, posted or processed with text-based tools.
SGF is a text-only format (not a binary format).
SGF uses the US ASCII char-set for all its property identifiers
and property values ...
Section 2.2.4 on private properties is vague. It doesn't set clear
guidelines for privately defined value types, and it doesn't state what to
do about control characters within property values. However, binary values
clearly violate the sprit of SGF established in the first paragraph of the
spec. The files containing your current RT tag are not easy to email, post,
or process with text-based tools.
There are ways to encode RTF that will not break existing SGF readers.
The reason SmartGo doesn't read to the end of the file? SmartGo opens the
file using fopen(..., "r"), not fopen(..., "rb"). Open it as a binary file
and it reads your examples without problems. But SGF files are not binary
files.
Anders Kierulf
www.smartgo.com
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/