From: "Zhichu Chen" <zhichu.chen@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Draw chess board
Date: Mon, 11 Jun 2007 21:41:17 +0800 [thread overview]
Message-ID: <769ba7780706110641o1be4b391gccf5e1d56990b44e@mail.gmail.com> (raw)
In-Reply-To: <769ba7780706101910k1acef2e9n8ef256f73540e51c@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 4555 bytes --]
Hi guys
I've modified my module again, then you can click to demostrate a game. The
source file is attached and the resulting pdf file is pretty huge so I just
upload to my google page (I think there's a bandwidth limitation so I use
winrar to compress it):
http://zhichu.chen.googlepages.com/sgfstack.rar
On 6/11/07, Zhichu Chen <zhichu.chen@gmail.com> wrote:
>
> Hi Mojca,
>
> The stones are very very nice now, thank you for your hints.
>
> Since I haven't used TikZ before, I have no idea how to handle these
> events. I'll learn it later and rewrite my module to be more professional :)
>
>
> All I'm thinking now is how to make each step a single symbol so that I
> could use \fieldstack to demonstrate the game.
>
> By the way, I modified my module to do some fieldstack thing, but it gets
> a weird error. I have no idea what's the error about, it's fine when I'm
> using MPdrawing environment but it can't output anything when I switch to
> buffer and use \processMPbuffer.
>
> On 6/10/07, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
>
> > On 6/6/07, Zhichu Chen wrote:
> > > Hi
> > >
> > > I've tried to write a test file which can only handle ;B[??], ;W[??],
> > > AB[??], AW[??] now, and I haven't added the interaction part. But it
> > is a
> > > good start.
> > >
> > > Any suggestions?
> >
> > Wow - that's really, really impressive! You indeed started parsing the
> > strings in plain TeX!
> >
> > I've changed your source slightly, to give you an idea of yet another
> > approach: using TikZ. It's main advantage over metapost might be:
> > - you can draw more fancy stones (see the example - that could be made
> > configurable of course), although teoretically the same could be
> > achived with slightly improved smooth shading mechanism in mptopdf
> > macros
> > - might be easier to backport to (La)TeX
> > - I can imagine your module to be a new, really nice TikZ
> > package/module (that could be used in other flavours of TeX) + some
> > fancy ConTeXt additions (user interface, javascript, ...).
> >
> > The main difference is that you need to store all the variables in
> > TeX, not in metapost, so that part should be rewritten as well (which
> > I didn't do).
> >
> > But simply forget about my stupid comments about (La)TeX for and do it
> > your way now.
> >
> > Mojca
> >
> > (I have some other comments, but it's too early to speak about them,
> > since the module is not ready/complete yet.)
> >
> >
> > On 5/24/07, Zhichu Chen wrote:
> > > Hi
> > >
> > > I love chess games, especially one kind of them which is generally
> > called
> > > Go.
> > >
> > > I know there is some file can store each details in one game:
> > > http://www.red-bean.com/sgf/
> > >
> > > AFAIK, there is no module available to draw chess in ConTeXt now. I
> > wanna do
> > > this by using MetaPost and fieldstack. But I don't know how to tell
> > metapost
> > > the details of the sgf file. Can anyone give me a suggestion?
> > >
> > > BTW, I don't like the name. It's invented by acient Chinese and it's
> > called
> > > Weiqi. I think we can call it Siege Chess in English.
> > >
> > >
> > > --
> > > Best Regards
> > > Chen
> >
> >
> > ___________________________________________________________________________________
> > If your question is of interest to others as well, please add an entry
> > to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> > http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> > archive : https://foundry.supelec.fr/projects/contextrev/
> > wiki : http://contextgarden.net
> >
> > ___________________________________________________________________________________
> >
> >
> >
>
>
> --
> Best Regards
> Chen
> ----------------------------------------------------------------
>
> Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
> No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
> tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
> | www.sinap.ac.cn
> ----------------------------------------------------------------
>
>
--
Best Regards
Chen
----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
| www.sinap.ac.cn
----------------------------------------------------------------
[-- Attachment #1.2: Type: text/html, Size: 7560 bytes --]
[-- Attachment #2: sgfstack.tex --]
[-- Type: application/x-tex, Size: 8169 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-06-11 13:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-24 11:59 Zhichu Chen
2007-05-24 14:01 ` Wolfgang Schuster
2007-05-24 15:40 ` Zhichu Chen
2007-05-24 19:07 ` Mojca Miklavec
2007-05-25 2:49 ` Zhichu Chen
[not found] ` <6faad9f00705260558r9e110bbk6dba90b490b4acbd@mail.gmail.com>
[not found] ` <769ba7780706051751t1b17756es2dd9000d8ba56397@mail.gmail.com>
2007-06-06 1:00 ` Fwd: " Zhichu Chen
2007-06-10 4:49 ` Mojca Miklavec
2007-06-11 2:10 ` Zhichu Chen
2007-06-11 13:41 ` Zhichu Chen [this message]
2007-06-11 14:12 ` Wolfgang Schuster
2007-06-12 1:06 ` Zhichu Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=769ba7780706110641o1be4b391gccf5e1d56990b44e@mail.gmail.com \
--to=zhichu.chen@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).