Make WordPress Core

Changeset 55858


Ignore:
Timestamp:
05/25/2023 01:12:55 PM (11 months ago)
Author:
audrasjb
Message:

Formatting: Add support for schwa in remove_accents().

This changeset adds support for schwa character. Ə (U+018F) and ə (U+0259) are part of Latin Extended-B and used in
several languages like Azerbaijani or also in gender neutral Italian.

Props suleymankenar, audrasjb, przemekhernik.
Fixes #57609.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r55850 r55858  
    14411441 * |   Code   | Glyph | Replacement |                Description                |
    14421442 * | -------- | ----- | ----------- | ----------------------------------------- |
     1443 * | U+018F   | Ə     | E           | Latin capital letter Ə                    |
     1444 * | U+0259   | ǝ     | e           | Latin small letter ǝ                      |
    14431445 * | U+0218   | Ș     | S           | Latin capital letter S with comma below   |
    14441446 * | U+0219   | ș     | s           | Latin small letter s with comma below     |
     
    18061808            'ſ' => 's',
    18071809            // Decompositions for Latin Extended-B.
     1810            'Ə' => 'E',
     1811            'ǝ' => 'e',
    18081812            'Ș' => 'S',
    18091813            'ș' => 's',
Note: See TracChangeset for help on using the changeset viewer.