def encode_katakana(text):
encoded = []<EOL>for char in text:<EOL><INDENT>if jaconv:<EOL><INDENT>char = jaconv.z2h(jaconv.hira2kata(char))<EOL><DEDENT>if char in TXT_ENC_KATAKANA_MAP:<EOL><INDENT>encoded.append(TXT_ENC_KATAKANA_MAP[char])<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return b"<STR_LIT>".join(encoded)<EOL>
I don't think this quite works yet.