CallumBeaney / Symbolic-Notation-Converter

A webapp that converts English coded input to mathematical notation. e.g. [all var in dd goe pi] β†’ [βˆ€π‘₯ ∈ 𝔻 β‰₯ Ο€ ]

Home Page:https://callumbeaney.github.io/Symbolic-Notation-Converter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notation Converter

drawing

What this does

Parses a user-input string by the whitespace between characters, converts certain phrases into symbols, and prints them in a text box:

INPUT OUTPUT
all y, all z (P(y) and exists xQ (x, y)) βˆ€y, βˆ€z (P(y) ∧ βˆƒxQ (x, y))
HCO sub 3 sup - HCO₃⁻
sigma sub x = 2 Οƒβ‚“ = 2
P(a <= x <= b) = integral function (x) dx P(a ≀ x ≀ b) = ∫ 𝑓(x) dx
P(a loe x loe b) = int fn (x) dx P(a ≀ x ≀ b) = ∫ 𝑓(x) dx

Why?

When scrolling through mathematics forums, Wikipedia etc., I noticed that people used:

  • LaTeX
  • Keyboard character substitutions
  • Copying from an ASCII table
  • JPEGS
  • HTML

The former is while powerful not always available, can be awkward to use and is primarily designed for typesetting. Substitutions are hard to read and awkward to write. Using JPEGs is often slow. Some HTML features cannot be copy/pasted.
This is aimed at making quick, copy-pasteable sentences for use on forums & social media as such, making symbol keywords as intuitive as possible.

Reviews

drawing2

Acknowledgements

The synchronised scrolling feature is imported from Dmitry Prokashev's excellent Syncscroll library.
I received kind debugging assistance from Dart grandmaster Alex Baker.

About

A webapp that converts English coded input to mathematical notation. e.g. [all var in dd goe pi] β†’ [βˆ€π‘₯ ∈ 𝔻 β‰₯ Ο€ ]

https://callumbeaney.github.io/Symbolic-Notation-Converter/


Languages

Language:JavaScript 78.9%Language:CSS 14.5%Language:HTML 6.6%