Unverified Commit 2cdfb750 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3169212 by int_ua, Matroskeen, anmolgoyal74, Krzysztof Domański,...

Issue #3169212 by int_ua, Matroskeen, anmolgoyal74, Krzysztof Domański, biblos, xjm, init90: Improve transliteration of Ukrainian letters

(cherry picked from commit 9c2fa5f9)
parent c8f77b5a
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Ukrainian transliteration data for the PhpTransliteration class.
 * @see https://zakon.rada.gov.ua/laws/show/55-2010-п#Text
 */

$overrides['uk'] = [
  0x413 => 'H',
  0x433 => 'h',
  0x404 => 'Ye',
  0x454 => 'ye',
  0x418 => 'Y',
  0x438 => 'y',
  0x407 => 'Yi',
  0x457 => 'yi',
  0x426 => 'Ts',
  0x446 => 'ts',
  0x429 => 'Shch',
  0x449 => 'shch',
  // Hide several variations of apostrophe character.
  0x2bc => '',
  0x27 => '',
  0x2019 => '',
];
+2 −0
Original line number Diff line number Diff line
@@ -145,6 +145,8 @@ public function providerTestPhpTransliteration() {
      ['da', $random, $random],
      ['kg', $three_byte, 'ts'],
      // Test strings in some other languages.
      // Ukrainian pangram.
      ['uk', 'На подушечці форми любої є й ґудзик щоб пірʼя геть жовте сховати.', 'Na podushechtsi formy lyuboyi ye y gudzyk shchob pirya het zhovte skhovaty.'],
      // Turkish, provided by drupal.org user Kartagis.
      ['tr', 'Abayı serdiler bize. Söyleyeceğim yüzlerine. Sanırım hepimiz aynı şeyi düşünüyoruz.', 'Abayi serdiler bize. Soyleyecegim yuzlerine. Sanirim hepimiz ayni seyi dusunuyoruz.'],
      // Max length.