MediaWiki
REL1_20
|
Generate first letter data files for Collation.php. More...
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. |
Generate first letter data files for Collation.php.
Definition at line 31 of file generateCollationData.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 53 of file generateCollationData.php.
References Maintenance\addOption().
GenerateCollationData::charCallback | ( | $ | data | ) |
Definition at line 93 of file generateCollationData.php.
References IcuCollation\isCjk(), and print.
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 62 of file generateCollationData.php.
References Maintenance\error(), generateFirstChars(), Maintenance\getOption(), and loadUcd().
Definition at line 142 of file generateCollationData.php.
References $file, $IP, codepointToUtf8(), Maintenance\error(), StringUtils\explode(), and print.
Referenced by execute().
Definition at line 88 of file generateCollationData.php.
Referenced by execute().
GenerateCollationData::$dataDir |
The directory with source data files in it.
Definition at line 33 of file generateCollationData.php.
GenerateCollationData::$debugOutFile |
Definition at line 45 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 43 of file generateCollationData.php.
GenerateCollationData::$weights |
The primary weights, indexed by codepoint.
Definition at line 36 of file generateCollationData.php.
const GenerateCollationData::NORMAL_HIRAGANA = 0X0E |
Definition at line 51 of file generateCollationData.php.
const GenerateCollationData::NORMAL_UPPERCASE = 0x08 |
Important tertiary weights from UTS #10 section 7.2.
Definition at line 50 of file generateCollationData.php.