decode_dict = {
    "🔴🔴":"あ","🔴🔵":"け","🔴🟡":"し","🔴🟢":"ぞ","🔴🟠":"づ","🔴🟣":"の","🔴⚪️":"ぶ","🔴⚫️":"ま","🔴🟤":"ら",
    "🔵🔴":"い","🔵🔵":"こ","🔵🟡":"す","🔵🟢":"た","🔵🟠":"っ","🔵🟣":"は","🔵⚪️":"べ","🔵⚫️":"み","🔵🟤":"り",
    "🟡🔴":"う","🟡🔵":"が","🟡🟡":"せ","🟡🟢":"ち","🟡🟠":"で","🟡🟣":"ひ","🟡⚪️":"ぼ","🟡⚫️":"む","🟡🟤":"る",
    "🟢🔴":"え","🟢🔵":"ぎ","🟢🟡":"そ","🟢🟢":"つ","🟢🟠":"ど","🟢🟣":"ふ","🟢⚪️":"ぱ","🟢⚫️":"め","🟢🟤":"れ",
    "🟠🔴":"お","🟠🔵":"ぐ","🟠🟡":"ざ","🟠🟢":"て","🟠🟠":"な","🟠🟣":"ヘ","🟠⚪️":"ぴ","🟠⚫️":"も","🟠🟤":"ろ",
    "🟣🔴":"か","🟣🔵":"げ","🟣🟡":"じ","🟣🟢":"と","🟣🟠":"に","🟣🟣":"ほ","🟣⚪️":"ぷ","🟣⚫️":"や","🟣🟤":"、",
    "⚪️🔴":"き","⚪️🔵":"ご","⚪️🟡":"ず","⚪️🟢":"だ","⚪️🟠":"ぬ","⚪️🟣":"ば","⚪️⚪️":"ぺ","⚪️⚫️":"ゆ","⚪️🟤":"。",
    "⚫️🔴":"く","⚫️🔵":"さ","⚫️🟡":"ぜ","⚫️🟢":"ぢ","⚫️🟠":"ね","⚫️🟣":"び","⚫️⚪️":"ぽ","⚫️⚫️":"よ","⚫️🟤":"ゎ",
    "🟤🔴":"わ","🟤🔵":"ゐ","🟤🟡":"ゑ","🟤🟢":"を","🟤🟠":"ん","🟤🟣":"ゃ","🟤⚪️":"ゅ","🟤⚫️":"ょ","🟤🟤":"ー",
}#「辞書」
encode_dict = {v: k for k, v in decode_dict.items()}#「KV入れ替え」

def decode(code):#「T→S」
    parts = code.split()
    return ''.join(decode_dict.get(p, '?') for p in parts)

def encode(text):#「T←S」
    return ' '.join(encode_dict.get(ch, '??') for ch in text)

def S(D):
    print(f'{encode(D)}')
    print("----------------------")

def k(j):
    print(f'ほんやく:{decode(j)}')
    print("======================")

S('いとうつむぎ')
S('さんじゅうにさい')
S('どくしんでむしょく')
S('しかもあるこーるちゅうどくしゃ')
k('🔵🔴 🟣🟢 🟡🔴 🟢🟢 🟡⚫️ 🟢🔵')
k('⚫️🔵 🟤🟠 🟣🟡 🟤⚪️ 🟡🔴 🟣🟠 ⚫️🔵 🔵🔴')
k('🟢🟠 ⚫️🔴 🔴🟡 🟤🟠 🟡🟠 🟡⚫️ 🔴🟡 🟤⚫️ ⚫️🔴')
k('🔴🟡 🟣🔴 🟠⚫️ 🔴🔴 🟡🟤 🔵🔵 🟤🟤 🟡🟤 🟡🟢 🟤⚪️ 🟡🔴 🟢🟠 ⚫️🔴 🔴🟡 🟤🟣')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: