| Index: trunk/phase3/includes/DefaultSettings.php |
| — | — | @@ -870,19 +870,27 @@ |
| 871 | 871 | $wgEditEncoding = ''; |
| 872 | 872 | |
| 873 | 873 | /** |
| 874 | | - * Set this to true to clean up archaic Unicode sequences in Arabic and |
| 875 | | - * Malayalam text. Currently only works if $wgLanguageCode is set to Arabic |
| 876 | | - * or Malayalam. |
| | 874 | + * Set this to true to replace Arabic presentation forms with their standard |
| | 875 | + * forms in the U+0600-U+06FF block. This only works if $wgLanguageCode is |
| | 876 | + * set to "ar". |
| 877 | 877 | * |
| 878 | | - * Enabling this is generally a good idea for new wikis, since it fixes a few |
| 879 | | - * technical problems to do with editing these languages. However, if it's |
| 880 | | - * enabled on an existing wiki, pages which contain the problematic characters |
| 881 | | - * in their page titles may become inaccessible. Running maintenance/cleanupTitles.php |
| 882 | | - * after enabling it may fix this. |
| | 878 | + * Note that pages with titles containing presentation forms will become |
| | 879 | + * inaccessible, run maintenance/cleanupTitles.php to fix this. |
| 883 | 880 | */ |
| 884 | | -$wgFixArchaicUnicode = false; |
| | 881 | +$wgFixArabicUnicode = true; |
| 885 | 882 | |
| 886 | 883 | /** |
| | 884 | + * Set this to true to replace ZWJ-based chillu sequences in Malayalam text |
| | 885 | + * with their Unicode 5.1 equivalents. This only works if $wgLanguageCode is |
| | 886 | + * set to "ml". Note that some clients (even new clients as of 2010) do not |
| | 887 | + * support these characters. |
| | 888 | + * |
| | 889 | + * If you enable this on an existing wiki, run maintenance/cleanupTitles.php to |
| | 890 | + * fix any ZWJ sequences in existing page titles. |
| | 891 | + */ |
| | 892 | +$wgFixMalayalamUnicode = true; |
| | 893 | + |
| | 894 | +/** |
| 887 | 895 | * Locale for LC_CTYPE, to work around http://bugs.php.net/bug.php?id=45132 |
| 888 | 896 | * For Unix-like operating systems, set this to to a locale that has a UTF-8 |
| 889 | 897 | * character set. Only the character set is relevant. |
| — | — | @@ -4318,4 +4326,4 @@ |
| 4319 | 4327 | * Extensions can add mwEmbed modules via adding paths to their loader.js to |
| 4320 | 4328 | * $wgExtensionJavascriptLoader[] = path/to/loader.js |
| 4321 | 4329 | */ |
| 4322 | | -$wgExtensionJavascriptLoader = array(); |
| \ No newline at end of file |
| | 4330 | +$wgExtensionJavascriptLoader = array(); |
| Index: trunk/phase3/languages/classes/LanguageAr.php |
| — | — | @@ -6,8 +6,6 @@ |
| 7 | 7 | * @author Niklas Laxström |
| 8 | 8 | */ |
| 9 | 9 | class LanguageAr extends Language { |
| 10 | | - var $normalizeArray; |
| 11 | | - |
| 12 | 10 | function convertPlural( $count, $forms ) { |
| 13 | 11 | if ( !count($forms) ) { return ''; } |
| 14 | 12 | $forms = $this->preConvertPlural( $forms, 6 ); |
| — | — | @@ -36,9 +34,9 @@ |
| 37 | 35 | * performance impact of enabling it for all languages. |
| 38 | 36 | */ |
| 39 | 37 | function normalize( $s ) { |
| 40 | | - global $wgFixArchaicUnicode; |
| | 38 | + global $wgFixArabicUnicode; |
| 41 | 39 | $s = parent::normalize( $s ); |
| 42 | | - if ( $wgFixArchaicUnicode ) { |
| | 40 | + if ( $wgFixArabicUnicode ) { |
| 43 | 41 | $s = $this->transformUsingPairFile( 'normalize-ar.ser', $s ); |
| 44 | 42 | } |
| 45 | 43 | return $s; |
| Index: trunk/phase3/languages/classes/LanguageMl.php |
| — | — | @@ -12,9 +12,9 @@ |
| 13 | 13 | * performance impact of enabling it for all languages. |
| 14 | 14 | */ |
| 15 | 15 | function normalize( $s ) { |
| 16 | | - global $wgFixArchaicUnicode; |
| | 16 | + global $wgFixMalayalamUnicode; |
| 17 | 17 | $s = parent::normalize( $s ); |
| 18 | | - if ( $wgFixArchaicUnicode ) { |
| | 18 | + if ( $wgFixMalayalamUnicode ) { |
| 19 | 19 | $s = $this->transformUsingPairFile( 'normalize-ml.ser', $s ); |
| 20 | 20 | } |
| 21 | 21 | return $s; |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -294,8 +294,9 @@ |
| 295 | 295 | * (bug 19791) Add URL of file source as comment to thumbs (for ImageMagick) |
| 296 | 296 | * (bug 21946) Sorted wikitables do not properly handle minus signs |
| 297 | 297 | * (bug 18885) Red links for media files do not support shared repositories |
| 298 | | -* Added $wgFixArchaicUnicode, which, if enabled, converts some deprecated |
| 299 | | - Unicode sequences in Arabic and Malayalam text to their Unicode 5.1 |
| | 298 | +* Added $wgFixArabicUnicode, to convert deprecated presentation forms in |
| | 299 | + Arabic text to their modern equivalents, and $wgFixMalayalamUnicode, to |
| | 300 | + convert ZWJ-based chillu sequences in Malayalam text to their Unicode 5.1 |
| 300 | 301 | equivalents. |
| 301 | 302 | * (bug 22051) Returing false in SpecialContributionsBeforeMainOutput hook now |
| 302 | 303 | stops normal output |