MediaWiki
REL1_19
|
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 12 of file generateCollationData.php.
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().
GenerateCollationData::charCallback | ( | $ | data | ) |
Definition at line 74 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 43 of file generateCollationData.php.
References Maintenance\error(), generateFirstChars(), Maintenance\getOption(), and loadUcd().
Definition at line 123 of file generateCollationData.php.
References $file, $IP, codepointToUtf8(), Maintenance\error(), StringUtils\explode(), and print.
Referenced by execute().
Definition at line 69 of file generateCollationData.php.
Referenced by execute().
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.
const GenerateCollationData::NORMAL_HIRAGANA = 0X0E |
Definition at line 32 of file generateCollationData.php.
const GenerateCollationData::NORMAL_UPPERCASE = 0x08 |
Important tertiary weights from UTS #10 section 7.2.
Definition at line 31 of file generateCollationData.php.