Bridge/XML
From Tractatus
< Bridge
OK, the XML looks like this:
<auction> <convention>Ivanhoe</convention> <call>2<NT/></call> <comment>4-5 or better in the minors.</comment> <auction> <call>3<C/><D/>, 4<C/><D/>, 5<C/><D/></call> <comment>TP</comment> </auction> <auction> <call>3<H/><S/></call> <comment>GI, natural. Raise with at least xxx or Jx</comment> </auction> <auction> <call>3<NT/>, 4<H/><S/></call> <comment>TP</comment> </auction> <auction> <call>4<NT/></call> <comment> Blackwood(1430) </comment> </auction> </auction>
I wrote the parse extension already, see XMLTest
The style sheet will be something like this: auction.xsl
Bridge
1 ♣ ♦
Ivanhoe
Here is how to make the suits:
Club: ♣
Diamond: ♦
Heart: ♥
Spade: ♠
\u2663 \u2664 \u2665 \u2666