23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FIGURE 9-9 The Input Ink sample with many commands on its app bar. The green “Hello” text in the upper left was<br />

generated by selecting the Hello ink and tapping the Recognition command.<br />

The SDK also includes the Input Simplified ink sample to demonstrate a more focused handwriting<br />

recognition scenario, as shown in Figure 9-10. You should know that this is one sample that doesn’t<br />

support touch at all—it’s strictly mouse and stylus and uses keystrokes for various commands instead of<br />

an app bar. Look at the keydown function in simpleink.js for a list of the Ctrl+key commands; the<br />

spacebar performs recognition of your strokes and the backspace key clears the canvas. As you can see<br />

in the figure, I think the handwriting recognition is quite good! (It tells me that the handwriting samples<br />

I gave to an engineering team at Microsoft somewhere in the mid-1990s must have made a valuable<br />

contribution.)<br />

FIGURE 9-10 The Input Simplified Ink sample doing a great job recognizing my sloppy mouse-based handwriting.<br />

397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!