25require_once __DIR__ .
'/../Maintenance.php';
40 parent::__construct();
41 $this->
addDescription(
'Generate the normalizer data file for Malayalam' );
46 return Maintenance::DB_NONE;
52 '0D23 0D4D 200D' =>
'0D7A',
53 '0D28 0D4D 200D' =>
'0D7B',
54 '0D30 0D4D 200D' =>
'0D7C',
55 '0D32 0D4D 200D' =>
'0D7D',
56 '0D33 0D4D 200D' =>
'0D7E',
59 '0D15 0D4D 200D' =>
'0D7F',
63 foreach ( $hexPairs as $hexSource => $hexDest ) {
64 $source = UtfNormal\Utils::hexSequenceToUtf8( $hexSource );
65 $dest = UtfNormal\Utils::hexSequenceToUtf8( $hexDest );
71 file_put_contents(
"$IP/includes/languages/data/NormalizeMl.php", $writer->writeClass(
74 'header' =>
'Generated by generateNormalizerDataMl.php. Do not modify!',
75 'namespace' =>
'MediaWiki\\Languages\\Data',
76 'class' =>
'NormalizeMl',
81 echo
"ml: " . count( $pairs ) .
" pairs written.\n";
87require_once RUN_MAINTENANCE_IF_MAIN;
if(!defined('MEDIAWIKI')) if(!defined( 'MW_ENTRY_POINT')) global $IP
Environment checks.
Generates the normalizer data file for Malayalam.
execute()
Do the actual work.
__construct()
Default constructor.
getDbType()
Does the script need different DB access? By default, we give Maintenance scripts normal rights to th...
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addDescription( $text)
Set the description text.