We witnessed the extreme tediousness of copying & pasting among different platforms when math researchers read and compose papers & computable documents. This issue comes from incompatibilities among math equations in image form and major math languages: LaTeX & Wolfram.
MathFlow automates the workflow from image equations directly to Wolfram & LaTeX codes. Simply capture a screenshot and codes will pop up. There is also an option to append them to a computable document along with a user comment.
We use Swift to develop the user interface (macOS application). It will call an executable written in C, which combines MathPix (from image to LaTeX) & Wolfram API (from LaTeX to Wolfram) to properly generate the codes. As a key component of the C program, we use regular expression to handle incompatibilities b/w MathPix & Wolfram API.
MathPix output and Wolfram API input have different LaTeX expression grammar. We have to use an interpreter (regular expressions) to bridge them together.