Convert text to lower or upper case

Goal

Convert text to lower or upper case.

Prerequisites

Some text has been imported in Orange Textable (see Cookbook: Text input) and possibly further processed (see Cookbook: Segmentation manipulation).

Ingredients

Widget Preprocess
Icon preprocess_icon
Quantity 1

Procedure

Convert text to lower or upper case with an instance of Preprocess

Figure 1: Convert text to lower or upper case with an instance of Preprocess.

  1. Create an instance of Preprocess on the canvas.
  2. Drag and drop from the output connection (righthand side) of the widget instance that emits the segmentation to be modified (e.g. Text Field) to the Preprocess instance’s input connection (lefthand side).
  3. Open the Preprocess instance’s interface by double-clicking on its icon on the canvas.
  4. In the Processing section, tick the Transform case checkbox.
  5. Choose to lower or to upper in the drop-down menu on the right.
  6. Click the Send button (or make sure the Send automatically checkbox is selected).
  7. A segmentation containing the modified text is then available on the Preprocess instance’s output connections; to display or export it, see Cookbook: Text output.