Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

Conventions for Language Implementations

Phrase tags

Standard phrases should be labeled using the following conventions:

Format names

It is desirable that an application be easily modified to support different languages. This requires that as many of the formats as possible follow a standard naming convention, so the formats will be available in all languages. The current naming convention is based on the US English implementation. Thus, it is desirable that each language support the same formats as US English using the same format name. Examples are THMAM (time: hour, minute, AM/PM), and DMSPDYY (date: with month spoken as a word -- for example, January -- day, and year as four digits). Currency is denoted with the dollar sign "$" (such as N$D2 -- number spoken as dollars and 2-digit cents).

In particular, the most standard way of speaking numbers, characters, dates, currency, and times should be assigned the default format for the language (N, C, D, N$, and T, respectively.)

Additional formats and names for formats can be specified to support natural spoken data according to each language's grammar. For example, the Spanish formats for numbers referring to a masculine, feminine, or neutral noun are "NM," "NF," and "NN," respectively.

If TTS is provided for a language, the TTS formats should be the same as the formats for prerecorded phrases, except that the format is preceded by the letter A (for example, "AN" and "ATHMAM"). Thus non-TTS formats should not start with the letter A.

Phrase numbers

The proto.pl file is used to define phrase numbers for the standard phrases. The phrase numbers 1-999 are reserved for standard phrases.

It is desirable, but not necessary that all standard phrases be allocated specific phrase numbers within this range. The phrases that must be allocated in this range are those that must be allocated a specific number or allocated contiguously for the implementation. Examples are the letters of the alphabet, numbers, months, and ordinal numbers if needed. The implementation will typically compute the phrase numbers for these by adding an offset to a base phrase number of a contiguous set of phrases for the set.

In cases where standard phrases are referenced only by their phrase tag, such a "dollars and" for US English, it is not necessary that a fixed phrase number be assigned. These can be assigned phrase number 0, in the proto.pl file.

Rules for creating script subroutine source files

A language package should include a set of script subroutine source (.t) files, necessary to implement the various formats, as well as the specific files listed previously. The rules for these files are based on the rules for external functions with the following differences:

© 2006 Avaya Inc. All Rights Reserved.