Formatting bridge hands
This is a little experimental, but worth giving a try. I've been writing some code to nicely format bridge hands in other parts of the website, and I thought it was worth trying to add it here too. For example, you can now create things like this:
{dens at9 qj752 75 k96;j86532 4 a932 jt;kq7 kt kj84 q532;4 a9863 qt6 a874}
{b..2dx2sxp2np3n/}
in just a couple of lines of text. For the syntax, see this document on Github.
One issue is that it doesn't show up when you Preview your post, so you kind of have to just hope that it works and edit it if it doesn't. But feel free to use this thread to practice, or to ask questions.
Comments
And, just to confirm, it works in replies too:
{b..2s/}
(you may have to hit refresh to see the change though)
If you're looking for improvements, it strikes me that having some way to annotate bids in the auctions (e.g. to show alerts, locations of breaks in tempo, etc.) would be useful (both for this forum and for the site more generally).
Having something is a huge improvement on having nothing, though, so a change like this is definitely worthwhile even if this is the final version.
Yep, good idea. I'm sure there will be further versions - it's just starting off basic.
Would most Wests really lead a diamond? I would definitely lead a trump on that bidding.
Nice, board number??
!s !h
Looks like the forum's suit symbol emojis interfere with the formatter's suit symbols.
Ok, I've hopefully fixed that. Let me know if it's still broken on any other posts.
(Not that that's really the point of the exercise).
Is this free to use for anyone writing articles or books?
Yeah, it's open source. Use it for whatever reason you like.
Thanks Michael