top

Using Chinese IME (Chinese Input Method Editor)

Published 2014-10-29 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

This tutorial demonstrates adding text input capability to an application by using the Chinese Input Method Editor (Chinese IME) feature of the Application Manager.This feature allows the input of text characters using only the numeric keys available on the remote control. In this tutorial, a sample application is created with a text input box and a password input box, and user input with a virtual keyboard display is enabled. This tutorial focuses on adding Chinese IME support to a page layout.

Note that this ChineseIME guide is only for 2012 Samsung TV/AV product.

Code for sample applications is provided. Sample application (index.html, ime_sample.js) is provided as a simple example.

Tutorial & APIs of ChineseIME:

Prerequisites

To create applications that run on a TV screen, you need:

  • Samsung TV connected to the Internet
  • SDK or a text editor for creating HTML, JavaScript and CSS files (using Samsung Smart TV SDK is recommended)

Development Environment

Use Samsung Smart TV SDK to create the application. You can also use the emulator provided with the SDK to debug and test the application before uploading it in your TV. Later, you can run the application on a TV; see Testing Your Application on a TV.

Note that developers need to debug and test ChineseIME function on TV better than on emulator.

You can find general instructions for creating applications in Implementing Your Application Code.

Copy all the files from the supplied application source archive into the SDK application folder, except those in the JavaScript folder.

Directory Description
CSS Contains the CSS files.
Javascript Contains the JavaScript files.

Design

Most of the complexity of international character entry is implemented in the IME feature of the Application Manager. This tutorial creates a JavaScript file (Main.js), an HTML file (index.html), and a CSS file (Main.css).