Jump to content

BML - Markup language for Full Disclosure


Recommended Posts

  • 3 months later...

How's it going Kungsgeten? As an admirer of your work, I wish we could rekindle interest in your projects.

What do you think of kgr's bml2Html project?

Between you, you have extended and simplifed fred's Full Disclosure idea. Is there any prospect of incorporating your accomplishments into BBO?

Link to comment
Share on other sites

Its kind of standing still right now. I've had a lot of work and not much time for spare time projects (except for playing bridge, ofcourse) ;)

 

However I've started to rewrite the Python BML code, to incorporate some of the ideas I've written about in this thread. I think it'll be better than the previous version, but it is possible that some existing BML-files will need to be rewritten.

 

I think kgr's project is cool, although kind of similar to this: http://bridge.downagain.be/FD/

 

The problem with BML is that is kind of inefficient to parse. It is made to be easy to read and write for humans, not computers. With the new program I'm writing, however, I try to have a more general approach. A data structure is created from the BML file, containing the bids and metadata. This data structure can then be converted into various formats (BSS etc). I don't know yet if I'll succeed with this, but we'll see.

 

I do not know if fred is aware of the BML project, but perhaps I could contact him. FD seems to be a bit "forgotten", since it is so cumbersome to get your system into the web client.

Link to comment
Share on other sites

  • 1 month later...

Hi Kungsgeten,

 

The BML is fantastic! I am converting my bidding system to BML.

 

A suggestion: Why not allow parameters to be added when including a module? For example, I would to write:

INCLUDE multi.bml !SEAT=12 !VUL=00

 

This would allow me to reuse modules more efficiently without needing separate modules depending on seat and vulnerability.

 

Just my 2 cents

Link to comment
Share on other sites

I've begun to rewrite BML. The focus this time around is for BML to be not only a way to generate BSS-files, but also complete system documents! The goal is still to make the "code" highly readable and easy to write. My first goal is to have three export formats: BSS, html and LaTeX. There will be some new features, many which are suggested in this thread, but I haven't implemented all the old ones yet. Here's an example of the current syntax (inspired by org-mode in the text editor Emacs):

 

* Sjöman 5542

 Transfer 5542 as played by Erik Sjöstrand and Lennart Kjellman.

 1C  Natural / 11--13 bal / 17--19 bal
 1D  4+!d, unbalanced, 11+ hcp
 1HS 5+ suit, 11+ hcp
 1N  14--16, may be semibal
 2C  Multi. GF / 20--21 bal / Weak (5)6+!d / Weak (5)6+!s
 2D  Flannery. 5+!h, 4!s, 11--16 hcp
 2HS 6+ suit, 10--13 hcp
 2N  22--24 bal

 Yes, it is correct that no traditional weak opening in hearts is
 available.

** The 2!c multi

  Opening 2!c shows one of the following:

  1. Any GF
  2. 20--21 balanced
  3. Weak with 5+!d or 5+!s, about 5--9 hcp

  The weak alternatives should normaly show a 6 suiter, but may be a
  five card suit if appropriate.

  2C--
  2D Non-forcing relay
    2H Weak spades / GF with hearts / 25--27 bal
      2S Non-forcing relay
        2N 25--27 bal
        3C GF transfer. Hearts + diamonds
        3D GF transfer. Hearts one-suiter
        3H GF transfer. Hearts + spades
        3S GF transfer. Hearts + clubs
        3N GF with hearts. Non-forcing.
    2N 20--21 bal
  2H Forcing relay
    2S Any hand with spades
      2N Feature ask
    2N GF hand
    3C Max with diamonds
    3D Min with diamonds
  2S Preemptive, 3+!d

 

The HTML output for the code above (right now, still early development) looks like this: bml2html

 

The text in the paragraphs will not be exported to BSS (when the BSS export feature is reimplemented), only the bidtables.

Link to comment
Share on other sites

The new, completely rewritten, version of BML can be found at GitHub!
I hope BBO takes advantage of Kungsgeten's clever stuff -- by incorporating FD into the web-client -- or basing an alternative disclosure system directly on BML.
Link to comment
Share on other sites

  • 2 months later...

I hope BBO takes advantage of Kungsgeten's clever stuff -- by incorporating FD into the web-client -- or basing an alternative disclosure system directly on BML.

 

Yeah, for sure - this is so easy to write compared to FD which is impossible to manage as a human being. I can quite quickly author openings + responses and that's about 85% of your disclosure burden right there.

Link to comment
Share on other sites

  • 1 year later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...