Question

I am doing a project for tablet based pc's where the user would write an equation to be solved.

The problem is that the recognizer classes that I am using, InkAnalyzer, cannot recognize root signs or any other mathematical signs that I input. Is there someway for me to add such functionality?

Basically, I want my program to function much like the math Input Panel that comes with windows 7. Oh, and I code in c#.

Was it helpful?

Solution

I'm sure it's not what you want to hear but basically you can't do this. At least not without insider help at Microsoft. In order to facilitate this, you would need to develop your own language recognizer. And as far as I know, the tools and documentation for doing so are not provided to third parties.

However, you could develop your own recognition system that utilizes the existing ink collection and stroke model provided by the System.Windows.Ink API's, but it would not plug into the InkAnalyzer model. Utilizing the stroke information will yield much better results than a simple OCR type of system where you're simply analyzing shapes.

It would have been very useful for Microsoft to expose their math parsing capabilities in the System.Windows.Ink namespace but as that was coming out, Microsoft was giving up on tablets. Then the iPad came along and ate their lunch and now who knows if we'll ever see a focus on ink input again.

OTHER TIPS

Load ink to a MathInputControl in C#

The solution provided in the page discusses how to program Math Input Control.

Once you have your math eqn in the form of strokes loaded (you can get them from InkCanvas Control - if you dont plan to read it from elsewhere and construct strokes) into Math Input Control through StylusPointCollection and store them into StrokeCollection class and stream it into an ISF (Ink Serialized Format) file.

The solution author supplies ISF file to Math Input Control. And some more work is involved to get back the solution - before that managing the Math Input window etc,.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top