Fix table loading bug for CRH transliteration
authortjones <tjones@wikimedia.org>
Mon, 26 Feb 2018 18:03:19 +0000 (13:03 -0500)
committertjones <tjones@wikimedia.org>
Mon, 26 Feb 2018 18:22:04 +0000 (13:22 -0500)
commit70dede013cda779866ec44017b44948b8ace85c8
tree083c66f71f87cab69d472dd0629f8c18443088ba
parent0c712ce564e0bd53e28f2581a714ee8cd04b614c
Fix table loading bug for CRH transliteration

In production, the regex and exception tables were not being loaded,
resulting in very poor transliteration. The loading has been moved to
the contructor, similar to the implementation of the Kazakh
transliteration.

Also, a bug in the mappings for Ö/ö -> Ё/ё and Ü/ü -> Ю/ю has been
fixed.

Test cases for specific additional examples have been added. (Though
it is worth noting that the regex and exception tables did load
properly during unit testing, so the problem wasn't caught there.)

Bug: T186727
Change-Id: I6bacee7d9de6f4a870a8a9ef1f04b819ad489c02
languages/classes/LanguageCrh.php
tests/phpunit/languages/classes/LanguageCrhTest.php