From aad76217b6af709d5767793a4414f5e9e5c37f15 Mon Sep 17 00:00:00 2001 From: Volodymyr Poltavets Date: Tue, 15 Jun 2021 01:04:43 +0200 Subject: [PATCH] * Also accept "si" as romaji synonym for "shi" --- jiten-pai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jiten-pai.py b/jiten-pai.py index d7be385..d919707 100755 --- a/jiten-pai.py +++ b/jiten-pai.py @@ -206,7 +206,7 @@ def alphabet2kana(text): text = text.replace('po', 'ぽ') text = text.replace('ka', 'か').replace('ki', 'き').replace('ku', 'く') text = text.replace('ke', 'け').replace('ko', 'こ').replace('sa', 'さ') - text = text.replace('shi', 'し').replace('su', 'す').replace('se', 'せ') + text = text.replace('shi', 'し').replace('su', 'す').replace('se', 'せ').replace('si', 'し') text = text.replace('so', 'そ').replace('ta', 'た').replace('chi', 'ち') text = text.replace('te', 'て').replace('to', 'と') text = text.replace('na', 'な').replace('ni', 'に').replace('nu', 'ぬ') -- 2.30.2