Go to the documentation of this file.
28 if( PHP_SAPI !=
'cli' ) {
29 die(
"Run me from the command line please.\n" );
32 require_once
'UtfNormalDefines.php';
33 require_once
'UtfNormalUtil.php';
35 $in = fopen(
"DerivedNormalizationProps.txt",
"rt" );
37 print
"Can't open DerivedNormalizationProps.txt for reading.\n";
38 print
"If necessary, fetch this file from the internet:\n";
39 print
"http://www.unicode.org/Public/UNIDATA/DerivedNormalizationProps.txt\n";
42 print
"Initializing normalization quick check tables...\n";
44 while(
false !== (
$line = fgets(
$in ) ) ) {
46 if( preg_match(
'/^([0-9A-F]+)(?:..([0-9A-F]+))?\s*;\s*(NFC_QC)\s*;\s*([MN])/',
$line,
$matches ) ) {
48 #print "$first $last $prop $value\n";
50 for( $i = hexdec( $first ); $i <= hexdec(
$last ); $i++) {
58 $in = fopen(
"CompositionExclusions.txt",
"rt" );
60 print
"Can't open CompositionExclusions.txt for reading.\n";
61 print
"If necessary, fetch this file from the internet:\n";
62 print
"http://www.unicode.org/Public/UNIDATA/CompositionExclusions.txt\n";
66 while(
false !== (
$line = fgets(
$in ) ) ) {
75 $in = fopen(
"UnicodeData.txt",
"rt" );
77 print
"Can't open UnicodeData.txt for reading.\n";
78 print
"If necessary, fetch this file from the internet:\n";
79 print
"http://www.unicode.org/Public/UNIDATA/UnicodeData.txt\n";
91 print
"Reading character definitions...\n";
92 while(
false !== (
$line = fgets(
$in ) ) ) {
96 $canonicalCombiningClass =
$columns[3];
101 if( $canonicalCombiningClass != 0 ) {
105 if( $decompositionMapping ===
'' )
continue;
106 if( preg_match(
'/^<(.+)> (.*)$/', $decompositionMapping,
$matches ) ) {
107 # Compatibility decomposition
109 $decompositionMapping =
$matches[2];
125 #print "$codepoint | $canonicalCombiningClasses | $decompositionMapping\n";
129 print
"Recursively expanding canonical mappings...\n";
133 print
"pass $pass\n";
136 $newDest = preg_replace_callback(
137 '/([\xc0-\xff][\x80-\xbf]+)/',
140 if( $newDest === $dest )
continue;
147 print
"Recursively expanding compatibility mappings...\n";
151 print
"pass $pass\n";
154 $newDest = preg_replace_callback(
155 '/([\xc0-\xff][\x80-\xbf]+)/',
158 if( $newDest === $dest )
continue;
165 print
"$total decomposition mappings ($canon canonical, $compat compatibility)\n";
167 $out = fopen(
"UtfNormalData.inc",
"wt");
173 $outdata =
"<" .
"?php
181 UtfNormal::\$utfCombiningClass = unserialize( '$serCombining' );
182 UtfNormal::\$utfCanonicalComp = unserialize( '$serComp' );
183 UtfNormal::\$utfCanonicalDecomp = unserialize( '$serCanon' );
184 UtfNormal::\$utfCheckNFC = unserialize( '$serCheckNFC' );
186 fputs(
$out, $outdata );
188 print
"Wrote out UtfNormalData.inc\n";
190 print
"Can't create file UtfNormalData.inc\n";
195 $out = fopen(
"UtfNormalDataK.inc",
"wt");
198 $outdata =
"<" .
"?php
206 UtfNormal::\$utfCompatibilityDecomp = unserialize( '$serCompat' );
208 fputs(
$out, $outdata );
210 print
"Wrote out UtfNormalDataK.inc\n";
213 print
"Can't create file UtfNormalDataK.inc\n";
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
if(! $in) $compatibilityDecomp
codepointToUtf8( $codepoint)
Return UTF-8 sequence for a given Unicode code point.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
Allows to change the fields on the form that will be generated $name
if(!defined( 'MEDIAWIKI')) if(!isset( $wgVersion)) $matches
hexSequenceToUtf8( $sequence)
Take a series of space-separated hexadecimal numbers representing Unicode code points and return a UT...
escapeSingleString( $string)
Escape a string for inclusion in a PHP single-quoted string literal.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
callbackCompat( $matches)
if(PHP_SAPI !='cli') $source
callbackCanonical( $matches)