Coder Social home page Coder Social logo

gpaulissen / bml Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 516 KB

Bridge Markup Language

Home Page: https://gpaulissen.github.io/bml/

License: MIT License

CSS 0.63% Python 30.46% TeX 21.90% HTML 43.13% Makefile 3.06% Dockerfile 0.51% Shell 0.31%
documentation

bml's People

Contributors

gpaulissen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

bml's Issues

Puzzling indentation error

This BML looks right but there is an error anyhow.

BML (see attachment):

(1N)---
  D 4M, 5+m
    2C P|C eg1 4324: P 2D eg2 3613: Correct 2D to 2H, NF 
    2D P|C; shortage in C eg [3451](url)
    2H P|C: no S|V in either minor; could be (43) in M
    2S P|C to minor
    2N GF INQ
      3C = H + C

Error:

IndentationError: Indentation (6) must be the level of its parent (2) mutiplied by the indentation argument (2)
MLP.zip

Log File

Hi
Not an issue just a suggestion.

The only time I have to use the command line is when I'm troubleshooting and the text file, error messages and a likely location for the troublesome line appears. Is it possible to have a log file created instead/as well please with this information?

Otherwise all going well. Keep up the excellent work.

Brian

Opener's Rebid

I was trying to get opener's rebids listed neatly with something like:

2C-(2X)-P-(P);
D Balanced, cooperative T/O
2N Stoppers

When I converted using BML2html, I got:
image

The formatting just isn't as nice as it could be. Is it worth you investing your time trying to sort this?

Why not fork?

Why haven't you directly fork original repo to navigate easier? I had to look for it for some time.

Bold description

Hi
** is supposed to make the text between the asterisks bold. This doesn't work in a bidding table when an asterisk appears as the first character after a bid. For example, 2N Ogust [ * * is meant to be surrounding Ogust but it makes it italics for some reason]

Brian

Blank & Comment Line

Hi
This is just a long term suggestion not any grumble.

I create a blank line by inserting the description line with just a full stop. Barely notice the dot and the white space helps readability.

In regard to a Comment line, your notes say it isn't possible to place such except in the manner I've used above. Maybe, when you have time, this could be incorporated. Perhaps, a \ could signify such. Would need the spacing on the line left as typed.

Simply a thought.
Blank line.txt

Sub list items

Hi
Again this is purely a cosmetic idea but it would be nice to have sublists if it wasn't too much trouble. For example:

  • writing
    • more writing
    • further writing

Just a thought.

Brian Rowlands

Creating a Bidding Table layout

Hi
I'm trying to create a bidding table that begins: (P)-1H-(P) and can't seem to get the text to appear on multiple lines. I've included an example that when put through bml2html will show you what I get.

Any suggestions as to what I'm doing wrong?

Cheers
Brian
Test.txt

Two More Variable Colours

Hi
Really enjoying your development of BML as I see it has a lot of benefits for Bridge Partnerships to write up their systems in both HTML and PDF form via LaTex.

Can you create two more "colours": Y & Z where X<Y<Z so that a jump (1X-2Y) or a 2/1 1Y-2X sequence can be described?

4SFG becomes 4♠FG

I wrote 4SFG in my bidding table. I could not find a way to temporarily disable converting 4S from 4♠.

1H-1S-2D-
2H = S/O S/P, 2+!h
2S = NF, 6+!s
2N = NAT INV
3C = 4SFG
3H = LIM, 3!h
3S = INV, 6+!s

Bold doesn't work in bml2latex

Hi
You have fixed the * issue in bml2html. For example:

4C Gerber - 1430

Works just fine. Gerber - 1430 appears Bold. However, when I use bml2latex, the line is interpreted verbatim ie what you see above is what you get. The * doesn't get interpreted as "turn on Bold". Does that make sense?

Brian

Things for newbies to do

Hi
Could you add "Things to do" that newbies like myself should do at the start before even thinking of posting a query/bothering you with "how to" messages?

For example,

  1. I use Notepad++, it became essential I changed TAB to spaces to meet the need of an even number of spaces on indentation otherwise conversions to always work.
  2. Colour coding spaces/TAB characters would help to ensure the spacing requirements are met.

Links on how to do these minors configurations to Notepad++ would be beneficial.

Not a grumble. Trying to save you time.

Layout

Hi
This is just a cosmetic issue and might not be worth the effort to implement.

Example
*** Ogust

  • 3!c = min[5-7] & 1 of [AKQ]
  • 3!d = min[5-7] & 2 of [AKQ]
  • 3!h = max[8-10] & 1 of [AKQ]
  • 3!s = max[8-10] & 2 of [AKQ]
  • 3N = max[8-10] & AKQ
  1. To my eyes, it would be nice to reduce the size of the line spacing after a heading
  2. Tabulation in a bullet list would be a nice feature so components align but I expect that is a significant coding issue.

Bold doesn't work

Hi
I've attached a bml as as a txt file. If you create a htm and a pdf, you will see that the Bold works in the htm conversion but not when creating a pdf in certain circumstances.

Hope this helps solve the problem.

Brian
1N-reduced.txt

Infrastructure and code mixing

I get your intention to bring online service for BML, but mixing infrastructure and code in one repo seems questionable to me. Did you consider keeping these 2 activities separate?

NT as a suit

This is extention proposal to BML

"NT" abbr is often translated as "БК" in cyrillic. Also, it is impossible to get "3NT" for example, to appear as ordinary "3" and bold "NT".

So proposal is to add !n special suit for descriptions. N in bids and !n in descriptions export to bold "NT" (or any other, can be customizable).

I have already implemented this in html.py + bml.css, need some support for LaTeX.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.