tTransliterate - 6.1

Talend Components Reference Guide

EnrichVersion
6.1
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
EnrichPlatform
Talend Studio
task
Data Governance
Data Quality and Preparation
Design and Development

Warning

This component will be available in the Palette of Talend Studio on the condition that you have subscribed to one of the Talend Platform products.

Function

tTransliterate converts strings from many languages of the world to a standard set of characters (Universal Coded Character Set, UCS). This is a phonetic operation where the tTransliterate component attempts to create in UCS an equivalent of the original string based on the sounds the string represents.

Purpose

tTransliterate enables you to encode text expressed in many the world's writing systems to readable characters based on the repertoire of the Unicode Standard. This makes it easier for you to recognize and interpret words from different languages than if the letters are left in the original script and thus support the worldwide interchange, processing, and display of the written texts of the diverse languages.

For further information about Unicode and Unicode Standard, check Unicode and Unicode Standard.

tTransliterate properties

Component family

Data Quality

 

Basic settings

Schema

A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. The schema is either Built-In or stored remotely in the Repository.

Since version 5.6, both the Built-In mode and the Repository mode are available in any of the Talend solutions.

 

 

Built-In: You create and store the schema locally for this component only. Related topic: see Talend Studio User Guide.

 

 

Repository: You have already created the schema and stored it in the Repository. You can reuse it in various projects and Job designs. Related topic: see Talend Studio User Guide.

 

Edit Schema

Click Edit schema to make changes to the schema. If the current schema is of the Repository type, three options are available:

  • View schema: choose this option to view the schema only.

  • Change to built-in property: choose this option to change the schema to Built-in for local changes.

  • Update repository connection: choose this option to change the schema stored in the repository and decide whether to propagate the changes to all the Jobs upon completion. If you just want to propagate the changes to the current Job, you can select No upon completion and choose this schema metadata again in the [Repository Content] window.

 

Transliteration

This table lists the columns defined in the schema of the tTransliterate component.

Select the Transliterate check box next to the column(s) of which you want to convert the content to readable standard set of characters.

Advanced settings

tStatCatcher Statistics

Select this check box to collect log data at the component level.

Global Variables

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl + Space to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio User Guide.

Usage

This component is an intermediary step. It requires an input and output flows.

Limitation

n/a

Scenario: Converting words from different languages to standard set of characters

This scenario describes a Job which uses:

  • the tFixedFlowInput component to generate the data you want to process,

  • the tTransliterate component to encode initial data expressed in different languages to readable characters based on the repertoire of the Unicode Standard,

  • the tFileOutputExcel component to output converted data in an .xls file.

Setting up the Job

  1. Drop the following components from the Palette onto the design workspace: tFixedFlowInput, tTransliterate and tFileOutputExcel.

  2. Connect the three components together using the Main links.

Configuring the input component

  1. Double-click tFixedFlowInput to open its Basic settings view in the Component tab.

  2. Create the schema through the Edit Schema button.

    In the open dialog box, click the [+] button and add the columns that will hold input data. For this example, add column1, column2, column3 and column4. The first two columns hold names written in different languages.

  3. Click OK.

  4. In the Number of rows field, enter 1.

  5. In the Mode area, select the Use Inline Content option.

  6. In the Content table, enter the data you want to convert to readable characters based on the Unicode Standard repertoire as shown in the above image.

Transliterating data

  1. Double-click tTransliterate to display the Basic settings view and define the component properties.

  2. If required, click Sync columns to retrieve the schema defined in the input component.

    In this example, only the first two columns are processed. You can click the Edit schema button to open the schema dialog box and see the input and output schemas.

  3. In the Transliteration table of the component basic settings view, select the check boxes next to the columns you want to convert to standard characters.

Configuring the output component and executing the Job

  1. Double-click the tFileOutputExcel component to display the Basic settings view and define the component properties.

  2. Set the destination file name as well as the sheet name and then select the Define all columns auto size check box.

  3. Save your Job and press F6 to execute it.

    The tTransliterate component encodes input data to readable characters based on the repertoire of the Unicode Standard.

  4. Right-click the output component and select Data Viewer to display the transliterated data.

    All names written in characters from diverse languages have been phonetically converted to a standard set of characters based on the Universal Coded Character Set, UCS. For example, the names in the first and second rows in the below image have been changed to Ragnarr,Lodbrok and to Routse,Anna respectively.

    For further information about Unicode and Unicode Standards, check Unicode and Unicode Standard.