-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider supporting an alternative to AsciiMath #32
Comments
Absolutely. I can't make any promises in terms of timelines, this is all volunteer work after all, but I'm definitely interested to have a look at what you were working on. I'm looking at this the same way you build compilers for instance. We can have distinct AsciiMath and SpaceMath frontends that generate a common intermediate representation (i.e. the AST). The backends work off of the AST to generate output. In other words, supporting AsciiMath as is and supporting additional syntaxes are not mutually exclusive options. |
I absolutely agree. As of now, my work in here and in other
This sounds very interesting to me. I'd love to have a look at the material you mentioned.
Absolutely. The current AST is geared towards parsing AsciiMath, so we'd probably have to addapt it a bit, but the recent AST redesign might be a good starting place. We should probably formalize the SpaceMath grammar before we start working on this thought. @davidfarmer Could you create a repository for further discussions? The materials you've mentioned could be placed in there. |
http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.pdf might be interesting to have a look at as well. Expecting people to enter unicode characters manually isn't very realistic though. So you would either have tons of |
Btw I don't have an opinion about this (well, actually I do, which is AsciiMath is fine though not centrally defined); but I'll note that http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.pdf is as close as we have to a window into what Microsoft Word thinks it's doing with its maths expressions (including what Microsoft consider to be n-ary operations, which we were discussing in a different thread.) |
The following may also be relevant to the discussion: http://xml.coverpages.org/coombs.html I've transpiled the web-page to Asciidoc and rendered it to PDF. If anyone wants a copy of it I can send it via email. I'm not sure about how the article is licensed, so I wont distribute it in here. |
@davidfarmer Any updates? |
My update is I wish "the current situation" wasn't causing me an enormous amount of extra work so I could get back to some projects that I would like to make progress on. I have not forgotten about this. |
I understand, those are difficult times indeed, sorry for the annoyance. Hoping to see the material you mentioned. |
Not annoying. Glad to be reminded there is interest.
…On Thu, 27 Aug 2020, Gark Garcia wrote:
My update is I wish "the current situation" wasn't causing me an enormous amount of extra work so I could get back to
some projects that I would like to make progress on.
I understand, those are difficult times indeed, sorry for the annoyance. Hoping to see the material you mentioned.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, orunsubscribe.[AABTULAWNF4U2QTINDLH723SC3OCJA5CNFSM4MZ2PRZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFCU7DOY.gif
]
|
Dear David, thank you for your useful comment on my AsciiMath issue you mentioned just above. I would love to see Space Math in its current state or to discuss in this thread what could be the expectations for this AsciiMath-improved langage.
Do you consider to have |
In a previous issue was written:
Let me describe some thoughts about this.
First, there is no existing viable alternative. But I think it is possible to invent one,
which I started doing a couple years ago. I had a student working on a project,
which started out as a way to convert AsciiMath to LaTeX. (There exists such a
converter, but it does not output LaTeX in a form a human would write.) After
working for a while, we decided to rethink the AsciiMath syntax and create a
new (but similar-looking) math markup language. We got pretty far, but then the
student graduated and I have not actively worked on that project (but I continue
to think about it and intend to return to it).
I named the project "Space Math" and started sketching a retro 1950's logo.
The name comes from the critical role that the space character plays. As
mentioned elsewhere, you can disambiguate function application and implied
multiplication: f(x) means function application because there is no space
between the f and the (x).
We also found the need to introduce some Python-like syntax for expressions
that naturally take up multiple lines. The markup is intended to be human
readable and human writable, for example:
Note also the
abs
keyword. This is preferable to|.|
because out of contextthe meaning of
|A|
is ambiguous. The use of multiple lines was considered adeal-breaker for AsciiMath, but for me it is a deal-breaker that there is no good
way to write the above construction, or multiline equations or derivations,
in AsciiMath.
I don't claim that we totally figured out everything, but we definitely were on the
right track and were able to handle a lot of things that didn't work well in
AsciiMath.
I can dig up my old material if you think this is worth considering.
I should also mention that my use case for this was the PreTeXt authoring system,
a project in which I am actively involved: https://pretextbook.org .
The text was updated successfully, but these errors were encountered: