Commit graph

5 commits

Author SHA1 Message Date
Tim Starling
1a2190a1ed Maintenance script updates to support ucfirst() title case
generateUpperCharTable.php: add --title option, which generates the
title case table.

Allow generateUcfirstOverrides.php to take multiple "override" tables

This is to allow MW with PHP 7.4 to act like PHP 7.2 regardless of
whether the MW core title case patch If02247fd15ad2a392a488d is merged.
It's just a union of the result arrays.

Bug: T292552
Change-Id: Id0a727ba3ac714b1198dd7556a3d5d0dd2ca973b
2022-10-13 15:50:20 +11:00
Matěj Suchánek
e47c441078 Fix many typos in comments
Found using IntelliJ's "Typo" code inspection.

Change-Id: I746220ebe6e1e39f6cb503390ec9053e6518cf16
2022-05-10 12:46:11 +00:00
daniel
ef5d4d0970 Fix namespace for usage of StaticArrayWriter
Change-Id: I6850b47f3868e1c5f7d5a0ffcfe413df2c599031
2020-01-15 18:48:38 +01:00
Giuseppe Lavagetto
287aebe189 Fix the scripts to generate ucfirst overriddes
* Fix a couple mistakes in generateUcfirstOverrides.php
* Skip surrogate codepoints as they can't be converted to json.

Change-Id: I5eddd90f7b348806d502dfbac08c367701d17f25
2019-04-18 18:28:17 +02:00
Giuseppe Lavagetto
d46835ef4f Add ability to override mb_strtoupper in Language::ucfirst
Different PHP versions treat unicode differently, and specifically some
wiki resources become unreachable if mb_strtoupper's behavior has changed.
This patch allows to introduce an override table that allows to smooth
the transition period.

It also provides maintenance scripts to generate such an override table.

Bug: T219279
Change-Id: I0503ff4207fded4648c58c7b50e67c55422a4849
2019-04-17 15:18:44 +00:00