WIDGETS AND LIVE TEXT


How do I create or configure a recognizer?
When you create a new action with the Widgets and Live Text wizards, you can optionally configure new or existing recognizers within a wizard action. You can also configure and publish recognizers independently of their inclusion in a widget. Users can click on Live Text to initiate an action that has been pre-wired to act in a specific manner on that text pattern. For example, if email addresses are recognized as Live Text, you could click on a Live Text email address to open a new mail message addressed to that email recipient.

About this task

Live Text is a recognized text pattern in the active document that users can act on to initiate a wizard action. You can add a recognizer to a widget to define how the widget will act relative to that Live Text by wiring recognized data to actions. Recognizers are defined using standard Java™ regular expressios. Live Text appears in the active document as dash-underlined text.

Recognizers can be wired to act with content types for a specific action when you create a widget. You can also see and act on other actions, content types, and recognizers in the Widget Management view by clicking Manage Actions, Content Types, and Recognizers from the My Widgets options menu.

Procedure

1. Click Configure Recognizer from the My Widgets options menu.


2. Enter a recognizer name, for example US Zip Code.

3. Choose an existing content type from the available list or create a new one by clicking New Type and entering one. For example, specify Address.


4. Enter a regular expression, for example \b[0-9]{5}\b.
5. Enter a group number and a content property. The 0 group is always the entire matched expression. After that, the group numbers correspond to parenthesis in the regular expression. For example, setting the grouping number 0 content property value to content.uszip will map the entire matched expression to this property.
6. Click OK.

Related concepts
How do I create a new widget using the wizards?
How do I create and share widgets?

Related tasks
How do I configure a widget action?
How do I wire a widget action?
How do I change a published widget and update the catalog?
How do I create a Notes widget from a form or document?
What Recognizer tasks can I do in the Widget Management view?