News for hackers. Stuff that matters.
Re:Handwriting to LaTeX maths by gpakosz on Thursday February 02, 2012 @11:42AM (#3543389)
Hi folks,

A small note on what we don't support yet:

no cube roots, no nth roots either

square root's top line must be a single line (make it wide enough up front)

no matrices

no system of equations

no corrections, no scratch out (use top left undo/redo arrows)

leave enough space between integral/summation symbols and main expression for better accuracy

LaTeX output pleases MathJax as much as possible (thank you guys for your lovely rendering library)

Hope that helps, Thank you for trying it out.

PS: MathML seems to get little attention, why is it so?

--- LIST OF SUPPORTED SYMBOLS (encoded in UTF-8) ---

Letters

  a b c d e f g h i j k l m n o p q r s t u v w x y z
  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Digits

  0 1 2 3 4 5 6 7 8 9
Maths symbols

  € $ £ ¥ ₩ ¢ ( ) < > [ ] { }  ! # % & ? @ / \ | ∥ © ∂∅ ∇ ∞ 
  ℂ ℕ ℚ ℝ ℤ
  + - ± × ÷ * ∘ · = ' , .  : ; _
  ← ↑ → ↓ ↔ ↕ ↖ ↗ ↘ ↙
  ⇐ ⇑ ⇒ ⇓ ⇔ ⇕
  ∀ ∃ ∄ ∈ ∉ ∋ ∌ ∩ ∪ ⊂ ⊃ ⊄ ⊅
  ∼ ≃ ≠ ≡ ≢ ≤ ≥ ≪ ≫ ∝ ∠
  ∏ ∑ ∫∮∧ √
Greek symbols

  Γ Δ Ω α β γ δ ε η θ λ ν π ρ σ τ φ χ ψ ω ϕ µ
International convention units (with cursive support)

  km hm dam dm cm mm µm
  ha
  hl dal dl cl ml µl
  kg hg dag dg cg mg µg
  ms µs
  GHz MHz kHz Hz
Other mathematical terms (with cursive support)

  sin cos tan sinh cosh tanh arcsin arccos arctan cot coth
  min max arg argmin argmax
  inf sup lim liminf limsup
  ln log
  dx dy dz dt
Re:Handwriting to LaTeX maths by dwc on Thursday February 02, 2012 @12:31PM (#3543654)
> PS: MathML seems to get little attention, why is it so?

MathML is hard to write and harder to read. The only time I pay any attention to MathML is when sites do not have TeX as an option. Others may feel differently, but this is my reason.

Re:Handwriting to LaTeX maths by gpakosz on Thursday February 02, 2012 @05:16PM (#3544761)
I somewhat expected people would use it as an input to other math software
Re:Handwriting to LaTeX maths by alexchamberlain on Friday February 03, 2012 @02:30AM (#3546214)
I think enough people are used to using LaTeX that MathML was never going to catch on, as its too verbose.
Re:Handwriting to LaTeX maths by radicalbyte on Thursday February 02, 2012 @05:08PM (#3544732)
> MathML is hard to write and harder to read.

That's what tooling is for.

It looks like a great solution for including Math in html, only the browser support seems to suck. No Chrome or IE support without the use of a plugin.

Re:Handwriting to LaTeX maths by dwc on Friday February 03, 2012 @02:06PM (#3548387)
> That's what tooling is for.

I disagree. Essentially requiring tools for a supposedly human-readable markup nullifies the whole human-readable aspect. Tools such as equation editors can be a great boon, but those can be had without giving up being able to read and write the markup directly.

I do think it's a shame that browser support for MathML is limited or missing. I'd much rather have direct, native MathML support than nothing. MathJax is a pretty nice way to address this for now, I think. Much better than requiring random site visitors to install a plugin.

Re:Handwriting to LaTeX maths by eykanal on Thursday February 02, 2012 @04:05PM (#3544471)
I was very impressed that it was able to interpret "min" with "x-2" underneath it, but if I wrote anything next to it the interpreter failed. I tried writing the "min" bit on one side and putting a very large parenthesis on the other side of the sheet, but it still didn't work.

Also, it handles \overline wonderfully -- impressively differentiating between an overline and fraction -- but it has trouble with the \underline. \Underbrace isn't working so well, either.

Yet another difficulty - "1 / 2" is turned into "y_2". The horizontal fraction delimiter doesn't seem to be recognized.

Very impressive!

Re:Handwriting to LaTeX maths by robertskmiles on Thursday February 02, 2012 @12:08PM (#3543535)
It doesn't support '⊂'. It supports 'c' and 'C', but not '⊂'.

Edit: It's amazing work by the way, but distinguishing those definitely needs more training.

Re:Handwriting to LaTeX maths by gpakosz on Thursday February 02, 2012 @05:21PM (#3544769)
Writing '⊂' alone would likely be recognized as 'c' or 'C' because the decision is based on the context.

'A ⊂ B' is unkikely going to be recognized as 'A c B' or 'A C B'

Re:Handwriting to LaTeX maths by xxqs on Thursday February 02, 2012 @01:46PM (#3543937)
is it a raster image recognition, or a vector/gesture recognition?
Re:Handwriting to LaTeX maths by gpakosz on Thursday February 02, 2012 @05:24PM (#3544782)
it's online recognition

we interpret the strokes (1 stroke == 1 sequence of 2D points)

in other words, it doesn't work on images; but we need input from a mouse, stylus, touchscreen, inkling, anoto pen, anything that outputs sequences of x,y coordinates

Re:Handwriting to LaTeX maths by xxqs on Friday February 03, 2012 @07:16AM (#3546815)
then it's rather a gesture recognition :)

it would be interesting to see it on a wearable computer, taking input from some gesture input devices: accelerometers or video input with markers

Re:Handwriting to LaTeX maths by mathieuruellan on Thursday February 02, 2012 @03:55PM (#3544424)
vector and gesture. This demo is a use case of our SDK. The SDK needs in input strokes (array of x/y) in the order. It returns a tree of symbols. We provides tools to transform into LaTex and MathML.
Re:Handwriting to LaTeX maths by xxqs on Thursday February 02, 2012 @04:17PM (#3544535)
thanks, this is indeed very interesting. I gave a link at a Russian wearable computing community: http://ru-wearable.livejournal.com/107496.html
Re:Handwriting to LaTeX maths by dgreensp on Thursday February 02, 2012 @03:17PM (#3544240)
For some reason, the first thing I tried was circle-plus, which it thought was a theta followed by a bar or a one. D'oh.
Re:Handwriting to LaTeX maths by arandomJohn on Friday February 03, 2012 @11:44AM (#3547792)
Do you have an iOS SDK? What are the licensing terms? I'd love to integrate this into some of my math games.
Re:Handwriting to LaTeX maths by adimitrov on Saturday February 04, 2012 @10:17AM (#3551187)
It works splendidly with any algebra I throw at it, but it's not very much intended to handle expressions in logical calculus, is it?

Case in point: http://i.imgur.com/tnuxs.png

Re:Handwriting to LaTeX maths by JoshTriplett on Saturday February 04, 2012 @10:23AM (#3551197)
For a bug report like this, you might want to explain exactly what LaTeX you expect that to turn into.
Re:Handwriting to LaTeX maths by adimitrov on Wednesday February 15, 2012 @06:04AM (#3593807)
$p,q \vdash p$ — sorry, I was pretty sure it was obvious to anyone, but I guess my handwriting wasn't that good.
Re:Handwriting to LaTeX maths by rsaarelm on Thursday February 02, 2012 @12:24PM (#3543619)
Looks like it knows it's supposed to print "sin" and "cos" in non-italic text, but not the 'd' in \int x d x.

Extremely neat in any case.

Re:Handwriting to LaTeX maths by fdej on Thursday February 02, 2012 @12:37PM (#3543678)
I've almost never seen an upright 'd' in mathematical literature, though it seems to be somewhat more common in engineering texts. Ditto for the imaginary unit 'i' and the constant 'e'. Matter of taste.
Re:Handwriting to LaTeX maths by wnoise on Thursday February 02, 2012 @12:58PM (#3543755)
All three are set upright in _The Princeton Companion to Mathematics_ (Gowers).
Re:Handwriting to LaTeX maths by rsaarelm on Friday February 03, 2012 @05:57AM (#3546646)
Hm. Now I wonder where I got the idea that of course it's supposed to be upright. Though I have been reading the Princeton Companion book mentioned in sibling.

I guess the problem is that the system drops the space between the expression and the dx, outputting the "xdx". Math text does have space before dx even if the letter is italic.

Re:Handwriting to LaTeX maths by Lambdanaut on Thursday February 02, 2012 @01:04PM (#3543779)
Cube roots and nth roots worked just fine for me.
Re:Handwriting to LaTeX maths by hjalle on Thursday February 02, 2012 @02:10PM (#3544019)
You must be a real handwriting-wizard because I've tried for 10 minutes now without getting it to work! :(