From 6fd156c85c627217a5d36420d75fe640e25fbdef Mon Sep 17 00:00:00 2001 From: Ahmet Selim FEDAKAR <122402435+selimfedakar@users.noreply.github.com> Date: Fri, 27 Nov 2026 16:55:13 +0300 Subject: [PATCH] Fix Wade-Giles romanization of pinyin "tie" (t'oeh -> t'ieh) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo in the whole-syllable pinyin->Wade-Giles table: tie mapped to t'oeh. Correct Wade-Giles is t'ieh (final ie -> ieh, consistent with die -> tieh and every other -ie syllable in the table); affects 铁/贴/帖 etc. --- pypinyin/style/wadegiles.py | 2 +- tests/test_pinyin.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pypinyin/style/wadegiles.py b/pypinyin/style/wadegiles.py index 0fb537e..d09305c 100644 --- a/pypinyin/style/wadegiles.py +++ b/pypinyin/style/wadegiles.py @@ -331,7 +331,7 @@ ['diao', 'tiao'], ['tiao', 't\'iao'], ['die', 'tieh'], - ['tie', 't\'oeh'], + ['tie', 't\'ieh'], ['dian', 'tien'], ['tian', 't\'ien'], ['ding', 'ting'], diff --git a/tests/test_pinyin.py b/tests/test_pinyin.py index 9f65b53..add6ff5 100644 --- a/tests/test_pinyin.py +++ b/tests/test_pinyin.py @@ -593,6 +593,8 @@ def test_m_e(han, style, expect): ['只', ['chih']], ['韦氏拼音', ['wei', 'shih', "p'in", 'yin']], ['威妥玛拼音', ['wei', "t'o", 'ma', "p'in", 'yin']], + ['铁', ["t'ieh"]], + ['贴', ["t'ieh"]], ]) def test_wadegiles(han, expect): got = lazy_pinyin(han, style=Style.WADEGILES)