Scenario: Converting words from different languages to standard set of characters - 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
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

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.