[Home]ToothyWikiInternals/GoMarkup

ec2-3-141-41-187.us-east-2.compute.amazonaws.com | ToothyWiki | ToothyWikiInternals | RecentChanges | Login | Webcomic

A goban is started by having $$, $T or $B at the start of the line.

$T
this is the top edge of the board.
$B
this is the bottom edge of the board.
$$
this is neither the top, nor the bottom edge of the board.

A space follows, then text describing the board. The text may contain the digits 0-9, the letters a-d, x and o, and the symbols ., | and +.



.
this is an ordinary blank board space.

.




x
this is a black stone.

x





o
this is a white stone.

o





|
this marks the left- or right-hand edge of the board.

.



.



..





+
this is a star point.

+





The wiki script will ignore up to one space between each pair of GoMarkup? characters.

....
....
....
....






...and so on.




Example 9x9 board:

.........
....o....
..+..oo..
.......o.
....+...o
...x.....
.x+.x.+..
..xx.x...
.........













The digits 0-9 and letters a-d can be used to mark spaces and board positions:

......
.o....
..oo..
....o.
The stone at 1 is on a komi spot. Black b is probably not a good move.







Sensei's Library has conventions so that the numbers and letters still let the boards line up while you're typing them: "a", "b", etc, label blank squares, so the dot doesn't need including; "1", "2", etc, label stones played, in order.  The $T line could be replaced with $W (if numbers 1, 3, etc are white stones) or $B (if numbers 1, 3, etc are black).  There'd need to be a way to distinguish top-of-board vs. top-of-diagram-but-not-top-of-board.  But the above describes a reasonable way of typing Go boards, such that they still line up while typing them.  --AlexChurchill

This has now been implemented. SenseisLibrary? mode is set by starting a goban with either $$W or $$B, depending on who moves first, and will remain set for the next goban:



......
.o....
..oo..
....o.
The stone at 1 is on a komi spot. Black b is probably not a good move.






 $$C
  This starts a comment, which carries on until either the end of the line or the next $.

<-- there's a comment here.




 $$D

..enters dynamic markup mode. This allows you to specify arbitrary image-to-symbol mappings. Mappings are given as a list of symbol=image number, separated by single spaces, where symbol is the symbol you wish to map, and image number is the number of the /ImageServer image you wish it to map to. There are no default mappings - the Go markup is disabled. You may remap most letters and symbols (not ' ', '=' or '&' - YMMV).

More punctuation might be useful if it's not too much of a pain.  It's more likely to symbolically represent the thing you are drawing (for memory aids).  Is it possible to add a comment line? (Something shown on the edit page but not rendered)  That would allow a description of the image/number/letter to be shown. - Kazuhiko

Done - see SandBox.

So,
 $$D a=1 b=4 c=3
$$ abcaa
$$ aaaaa

produces

abcaa
aaaaa







Any text entered to the right of the board will be displayed to the right of the board, correctly wikified and merged into a single word-wrapped line. It is a good idea to separate it from the board using at least two spaces, otherwise it may get eaten by the board markup.



That's pretty much it..

ec2-3-141-41-187.us-east-2.compute.amazonaws.com | ToothyWiki | ToothyWikiInternals | RecentChanges | Login | Webcomic
This page is read-only | View other revisions | Recently used referrers
Last edited December 4, 2002 4:04 am (viewing revision 12, which is the newest) (diff)
Search: