gpaulissen / bml Goto Github PK
View Code? Open in Web Editor NEWBridge Markup Language
Home Page: https://gpaulissen.github.io/bml/
License: MIT License
Bridge Markup Language
Home Page: https://gpaulissen.github.io/bml/
License: MIT License
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
When a BML HTML file (convertred using --tree) is printed, the tree decoration is lost. Must be a HTML problem.
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
People do not like to have a bidding table on two pages. One solution is to start a new page just before the bidding table starts. But what if a bidding table spans more than one page?
As described in https://tex.stackexchange.com/questions/34580/escape-character-in-latex, the following characters
& % $ # _ { } ~ ^ \
must be converted to
\& \% \$ \# \_ \{ \} \textasciitilde \textasciicircum \textbackslash
The backslash will not be converted for the moment since it interferes with other LaTeX constructions.
Why haven't you directly fork original repo to navigate easier? I had to look for it for some time.
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
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
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:
Just a thought.
Brian Rowlands
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
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?
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
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
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,
Links on how to do these minors configurations to Notepad++ would be beneficial.
Not a grumble. Trying to save you time.
Hi
This is just a cosmetic issue and might not be worth the effort to implement.
Example
*** Ogust
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
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?
Replacing (D) and (R) is broken, investigating.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.