One function

kana2alphabet in ikegami-yukino/jaconv

The author described this change as Fix bugs about small-kana in kana2alphabet. It counts as a record because the check below fails on the code as it stood at 3f5cc23fe and passes on 72690c3a1, with nothing else changed between the two runs.

Fix saved2026-02-08
Sharing licenceMIT · LICENSE
Change size+8 0

What the code was meant to do, written into the code itself as a docstring

Convert Hiragana to hepburn-style alphabets Parameters ---------- text : str Hiragana string. Return ------ str Roman-input-style alphabets string. Examples --------

The change

5353 text = text.replace('や', 'ya').replace('ゆ', 'yu').replace('よ', 'yo')
5454 text = text.replace('わ', 'wa').replace('ゐ', 'wi').replace('を', 'wo')
5555 text = text.replace('ゑ', 'we')
56+ text = text.replace('ゔぁ', 'va').replace('ゔぃ', 'vi').replace('ゔぅ', 'vuu')
57+ text = text.replace('ゔぇ', 've').replace('ゔぉ', 'vo')
58+ text = text.replace('ゃ', 'ya').replace('ゅ', 'yu').replace('ょ', 'yo')
59+ text = text.replace('ぁ', 'a').replace('ぃ', 'i').replace('ぅ', 'u')
60+ text = text.replace('ぇ', 'e').replace('ぉ', 'o')
61+ text = text.replace('ゎ', 'wa')
62+ text = text.replace('ゔ', 'vu')
63+ text = text.replace('ヵ', 'ka') # Strictly, it's kanji, not kana.
5664 text = _convert(text, KANA2HEP)
5765 while 'っ' in text:
5866 chars = list(text)

The check that tells the two apart

failpass·test_jaconv.py::test_kana2alphabet

Check file test_jaconv.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it3f5cc23fe01844c5ef4747569ecd6ebd1ed353de
Broken version dated2026-02-08
Modulejaconv.jaconv
Units changedkana2alphabet
Fingerprint6cf7ce0860562173
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.