Teaching and Learning with Technology

Computing With Accents and Foreign Scripts

Skip Menu

Thai

This Page

  1. About the Thai Script
  2. Activate Windows Keyboards for Typing
  3. Activate Macintosh Keyboards for Typing
  4. Browser and Font Recommendations
  5. Web Development
    1. Language Code: th
  6. Thai Unicode Chart (New Page)
  7. Links

About the Script

Thai is a syllabic alphabet much like those of India. It consists of consonants with vowel signs. Unlike the scripts of India, the consonant symbol used depends on the tone assigned to the syllable. For more information on the script, see the following pages.

Top of Page

Activating Windows Keyboards for Fonts

Basic Setup

In order to integrate foreign scripts into your computer, you must set up "keyboard" or input utilities in your operating system. These utilities will allow you to switch between typing English and other languages in word processors and Web tools. This process will also make sure the correct fonts are installed and available on your operating system.

See instructions for Setting up Keyboards for details.

Windows

Microsoft Keyboard Utilities

Microsoft provides a variety of free keyboard utlities, but they must be installed from the disk, then activated from the Regional Control Panel.

Step 1 - Install Utilities

Student Computing Labs - The utilities are installed in the University Park Student Computing Labs, but students must install the utlities by going to the Start menu then International Language Support » Microsoft » Office Microsoft Office Asian Character Input Support.

Home Computers - Several Asian and Middle Eastern keyboards are available in Windows, but you may have to install it from the Windows System disk because it is a complex script. After that you can activate the keyboards from the Regional Control Panel.

See Windows East Asian Keyboards for detailed instructions with screen captures.

Step 2 - Activate from Control Panel

Once the keyboards have been installed, they must be activated in the Regional Control Panel. Read the summary instructions below or go to Windows East Asian Keyboards for detailed instructions with screen captures.

Top of Page

Activating Macintosh Keyboards

OS X

Two Thai keyboards are available from Apple, but you may have to install it from the Macintosh System disk because it is a complex script.

See the Macintosh Keyboard Instructions for details on how to activate the keyboard.

System 9

Apple does not provide any Thai utilities, but third-party software may be available.

Top of Page

Browser and Font Recommendations

Test Sites

If you have your browser configured correctly, the Web sites above should display the correct characters. If you have difficulties, see list below for font and browser configuration instructions.

welcome.to/macinthai (Mac Thai Club)

Fonts by Platform

Additional freeware fonts can be downloaded from from the sites below. Note that not all these fonts may work on System 9 for Macintosh, but will work in Windows and OS X .

See also

Recommended Browsers

Browsers which fully support Unicode are strongly recommended. Click link in list to view configuration instructions. You will be asked to match a script with a font.

Manually Switch Encoding

If you see Roman character gibberish instead of Thai (such as at Courier Thai Mono download) you will need to manually switch from Western encoding view to the Thai encoding under the View menu of your browser.

Top of Page

Web Development

Thai Encoding and Language Tags

These are the codes which allow browsers and screen readers to process data as the appropriate language. All letters in codes are lower case.

Using Encoding and Language Codes

Computers process text by assuming a certain encoding or a system of matching electronic data with visual text characters. Whenever you develop a Web site you need to make sure the proper encoding is specified in the header tags; otherwise the browser may default to U.S. settings and not display the text properly.

To declare an encoding, insert or inspect the following meta-tag at the top of your HTML file, then replace "???" with one of the encoding codes listed above. If you are not sure, use utf-8 as the encoding.

Generic Encoding Template

<head>
<meta http-equiv="Content-Type" content="text/html; charset=??? ">
...
<head>

Declare Unicode

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8 ">
...
<head>

XHTML

The final close slash must be included after the final quote mark in the encoding header tag if you are using XHTML

Declare Unicode in XHTML

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...
<head>

No Encoding Declared

If no encoding is declared, then the browser uses the default setting, which in the U.S. is typically Latin-1. In that case many Unicode characters could be displayed incorrectly. Also, older browsers such as Netscape 4.7 may not be able to process the entity codes correctly without the "utf-8" declaration.

Language Tags

Language tags are also suggested so that search engines and screen readers parse the language of a page. These are metadata tags which indicate the language of a page, not devices to trigger translation. Visit the Language Tag page to view information on where to insert it.

Inputting and Editing Text in an HTML Editor

One option is to use Dreamweaver, Microsoft Expression or other Web editor and change the keyboard to the correct script. This will allow you to type content in directly with the appropriate script. However, it is important to verify that the correct encoding is specified in the Web page header.

Another option is to compose the basic text in an international or foreign language text editor or word processor and export the content as an HTML or text file with the appropriate encoding. This file could be opened in another HTML editor such as Dreamweaver or Microsoft Expression, and edited for formatting.

Other Web Tools

For Web tools such as Blogs at Penn State, Facebook, Twitter, del.icio.us, Flicker, and others, users can typically change the keyboard and input text. In most cases, this content will be encoded as Unicode.

Unicode Entity Codes

Thai numeric Unicode entity codes can be used for small pieces of text when other methods to not work.

Top of Page

Links

NOTE: Free downloads not tested

Thai Script

Windows/General

Macintosh

Linux/Unix

Thai Unicode Fonts

Top of Page

[an error occurred while processing this directive]

Last Modified: Wednesday, 19-Dec-2012 17:22:58 EST