MediaWiki  REL1_19
GenerateCollationData Class Reference

Generate first letter data files for Collation.php. More...

Inheritance diagram for GenerateCollationData:
Collaboration diagram for GenerateCollationData:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 charCallback ($data)
 execute ()
 Do the actual work.
 generateFirstChars ()
 loadUcd ()

Public Attributes

 $dataDir
 The directory with source data files in it.
 $debugOutFile
 $mappedChars
 A hashtable keyed by codepoint, where presence indicates that a character has a decomposition mapping.
 $weights
 The primary weights, indexed by codepoint.
const NORMAL_HIRAGANA = 0X0E
const NORMAL_UPPERCASE = 0x08
 Important tertiary weights from UTS #10 section 7.2.

Detailed Description

Generate first letter data files for Collation.php.

Definition at line 12 of file generateCollationData.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 34 of file generateCollationData.php.

References Maintenance\addOption().

Here is the call graph for this function:


Member Function Documentation

Definition at line 74 of file generateCollationData.php.

References IcuCollation\isCjk(), and print.

Here is the call graph for this function:

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 43 of file generateCollationData.php.

References Maintenance\error(), generateFirstChars(), Maintenance\getOption(), and loadUcd().

Here is the call graph for this function:

Definition at line 123 of file generateCollationData.php.

References $file, $IP, codepointToUtf8(), Maintenance\error(), StringUtils\explode(), and print.

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 69 of file generateCollationData.php.

Referenced by execute().

Here is the caller graph for this function:


Member Data Documentation

GenerateCollationData::$dataDir

The directory with source data files in it.

Definition at line 14 of file generateCollationData.php.

GenerateCollationData::$debugOutFile

Definition at line 26 of file generateCollationData.php.

GenerateCollationData::$mappedChars

A hashtable keyed by codepoint, where presence indicates that a character has a decomposition mapping.

This makes it non-preferred for group header selection.

Definition at line 24 of file generateCollationData.php.

GenerateCollationData::$weights

The primary weights, indexed by codepoint.

Definition at line 17 of file generateCollationData.php.

Definition at line 32 of file generateCollationData.php.

Important tertiary weights from UTS #10 section 7.2.

Definition at line 31 of file generateCollationData.php.


The documentation for this class was generated from the following file: