10.4.4 Adding a UCA Collation to a Unicode Character Set Defining a UCA Collation Using LDML Syntax LDML Syntax Supported in MySQL

This section describes how to add a UCA collation for a Unicode character set by writing the <collation> element within a <charset> character set description in the MySQL Index.xml file. The procedure described here does not require recompiling MySQL. It uses a subset of the Locale Data Markup Language (LDML) specification, which is available at http://www.unicode.org/reports/tr35/. In 5.1, this method of adding collations is supported as of MySQL 5.1.20. With this method, you need not define the entire collation. Instead, you begin with an existing base collation and describe the new collation in terms of how it differs from the base collation. The following table lists the base collations of the Unicode character sets for which UCA collations can be defined.

Table 10.1 MySQL Character Sets Available for User-Defined UCA Collations

Character SetBase Collation

The following sections show how to add a collation that is defined using LDML syntax, and provide a summary of LDML rules supported in MySQL.