Giter Site home page Giter Site logo

imabuddha / sgf-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from threeve/sgf-tools

2.0 2.0 1.0 307 KB

A collection of tools for working with SGF files on Mac OS X.

Shell 0.23% Objective-C 19.42% C 63.11% Rich Text Format 14.70% Yacc 1.28% Ragel 1.25%

sgf-tools's People

Contributors

imabuddha avatar threeve avatar

Stargazers

 avatar  avatar

Watchers

 avatar

sgf-tools's Issues

SGF fails to have boardposition attribute imported out (makes Quicklook fail)

The following innocent-seeming SGF does not get properly parsed by SGF-Tools:

(;
EV[5th Ing Cup final round 3]
KM[8]
FF[3]
SZ[19]
GM[1]
PB[Choi Cheolhan]
PW[Chang Hao]
BR[9d]
RE[W+R]
DT[2005-03-03]
WR[9d]
;B[pd];W[dd];B[pq];W[dp];B[fq];W[cn];B[dr];W[po];B[qo];W[qn];B[qp]
;W[qf];B[qh];W[pn];B[qk];W[oq];B[or];W[pp];B[qq];W[nq];B[nr];W[lq]
;B[qc];W[of];B[mc];W[pj];B[pk];W[qj];B[oj];W[rk];B[oh];W[ri];B[ok]
;W[ql];B[mg];W[ne];B[md];W[pi];B[og];W[lf];B[nf];W[oe];B[me];W[re]
;B[fc];W[mf];B[ng];W[kg];B[ki];W[ig];B[ee];W[cf];B[ii];W[id];B[dg]
;W[cg];B[dh];W[hh];B[hi];W[fh];B[df];W[de];B[ff];W[ge];B[ed];W[dc]
;B[gh];W[gg];B[gi];W[fg];B[ch];W[fi];B[fj];W[ej];B[ei];W[dj];B[bh]
;W[ji];B[jh];W[gj];B[fk];W[gk];B[fl];W[jj];B[kh];W[ih];B[cl];W[kf]
;B[kj];W[ij];B[be];W[mk];B[lk];W[mi];B[ml];W[oi];B[mj];W[ni];B[bd]
;W[kl];B[lm];W[km];B[ln];W[nm];B[nn];W[om];B[kn];W[ll];B[jk];W[jm]
;B[ik];W[hj];B[hm];W[mm];B[rg];W[qg];B[qe];W[rf];B[im];W[kk];B[io]
;W[jn];B[jo];W[nl];B[cq];W[dl];B[ck];W[fp];B[fn];W[eq];B[er];W[gn]
;B[gm];W[en];B[fo];W[gq];B[fr];W[eo];B[gr];W[hp];B[iq];W[in];B[go]
;W[ho];B[hn];W[em];B[fm];W[gp];B[dk];W[bo];B[lp];W[mr];B[mp];W[ns]
;B[ps];W[mq];B[mn];W[np];B[rd];W[pf];B[kq];W[el];B[ek];W[lb];B[kc]
;W[gb];B[fb];W[kb];B[jc];W[jb];B[ic];W[mb])

Here is the mdls output:

Euler:TWIG adrian$ mdls 2005-03-03-Chang\ Hao-Choi\ Cheolhan.sgf
kMDItemContentCreationDate = 2010-01-19 23:59:03 -0800
kMDItemContentModificationDate = 2010-01-21 22:47:19 -0800
kMDItemContentType = "com.breedingpinetrees.sgf"
kMDItemContentTypeTree = (
"com.breedingpinetrees.sgf",
"public.text",
"public.data",
"public.item",
"public.content"
)
kMDItemDisplayName = "2005-03-03-Chang Hao-Choi Cheolhan.sgf"
kMDItemFSContentChangeDate = 2010-01-21 22:47:19 -0800
kMDItemFSCreationDate = 2010-01-19 23:59:03 -0800
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "2005-03-03-Chang Hao-Choi Cheolhan.sgf"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 1207
kMDItemFSTypeCode = ""
kMDItemKind = "Smart Game Format"
kMDItemLastUsedDate = 2010-01-21 22:47:19 -0800
kMDItemUsedDates = (
"2010-01-19 00:00:00 -0800",
"2010-01-21 00:00:00 -0800"
)

You'll notice the boardposition attribute missing. CGoban has no problem parsing the moves of this game so I assume it's some strangeness with the parser.

Cheers!

Thumbnail doesn't show up in a "closed" Stack

I'm not sure if this is SGF-Tools' fault or OS X's fault, but I thought I'd report it anyway.

Let's say I have an SGF file that's on the top of a stack in the Dock. The stack, which is supposed to display the icon of the topmost entry, will just show a generic white document icon instead. However, if I click on the stack so that it expands to show everything, suddenly the proper SGF icon is visible... and the once I close it, it goes back to the generic one again.

Here are two screenshots that hopefully demonstrate the issue:
http://apetresc-share.s3.amazonaws.com/stacks_open.png
http://apetresc-share.s3.amazonaws.com/stacks_closed.png

Not sure if this is fixable, but it sure would be great :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.