Chapter 5: Text Input, Output, and Display

Chapter 5: Text Input, Output, and Display

Glossary


  • Keyboard layout: A standard arrangement of characters on a keyboard that defines which keys produce particular characters or scan codes.
  • Scan code: The value sent from the keyboard to the keyboard driver that represents which key was pressed.

On the surface, the input, output, and display of data is a simple process-the user enters data with a keyboard (or perhaps with a voice-recognition or handwriting-recognition engine), and the program displays that data using a selected font. This assessment of the process, however, assumes that each user is monolingual. What if a user tries to enter data in several different languages? In this case, the process becomes much more complicated. Different languages have different keyboard layouts, and the characters of each language might fall into different character sets that require separate fonts. How can Microsoft Windows-based applications juggle multiple keyboards, character sets, and fonts? With all these challenges in mind, Microsoft Windows 2000 and Microsoft Windows XP support standard mechanisms for multilingual data input, output, and display.

Creating an application that supports multilingual data in Windows 2000 and Windows XP involves several steps. The first step is to fully enable your code to use Unicode standards. (See Chapter 3, "Unicode." ) Doing so will allow you to encode all supported scripts in a uniform manner and to empower users and programmers to handle multilingual data. The second step is to make sure that your application is locale- and culture-aware by taking advantage of Windows globalization services (including National Language Support application programming interfaces [NLS APIs]) in traditional Microsoft Win32 coding and the Microsoft .NET Framework for managed code). These services will allow you to format locale- or culture-sensitive data according to user preference. (See Chapter 4, "Locale and Cultural Awareness." )

The next tasks when globalizing your application, all of which are discussed in this chapter, are to:

  • Enable your application to deal with different input languages and methods. Included are traditional methods such as different keyboard layouts and Input Method Editors (IMEs), as well as new input services such as voice-recognition engines or handwriting-recognition engines. (For more information on how to deal with different input languages, see "Techniques for Handling Input Languages" later in this chapter.)
  • Properly display all supported scripts, in accordance with the linguistic characteristics associated with them. These scripts include complex scripts that require special handling in terms of layout and character shaping. (For more information on complex scripts, see "Complex Scripts" later in this chapter.)
  • Understand different options for displaying text by leveraging system support for multilingual computing. (For more information on displaying text, see "Options for Displaying Text" later in this chapter.)
  • Learn how you should handle fonts in a multilingual context. (For more information on fonts, see "Fonts" later in this chapter.)

To begin, this chapter will examine the role that input languages and methods play in multilingual computing.



Microsoft Corporation - Developing International Software
Developing International Software
ISBN: 0735615837
EAN: 2147483647
Year: 2003
Pages: 198

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net