メッセージのトランスリテレーション処理を改善し、日本語の条件を簡素化
This commit is contained in:
@@ -461,17 +461,18 @@ class Controller:
|
|||||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||||
)
|
)
|
||||||
|
|
||||||
if (config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese" and
|
if config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese":
|
||||||
config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["enable"] is True):
|
transliteration_translation.append(
|
||||||
transliteration_translation = model.convertMessageToTransliteration(
|
model.convertMessageToTransliteration(
|
||||||
translation[0],
|
translation[0],
|
||||||
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
||||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||||
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
transliteration_translation.append([])
|
transliteration_translation.append([])
|
||||||
else:
|
else:
|
||||||
transliteration_translation = [[] for _ in config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST]
|
transliteration_translation = [[]]
|
||||||
|
|
||||||
if config.ENABLE_TRANSCRIPTION_RECEIVE is True:
|
if config.ENABLE_TRANSCRIPTION_RECEIVE is True:
|
||||||
if config.OVERLAY_SMALL_LOG is True and model.overlay.initialized is True:
|
if config.OVERLAY_SMALL_LOG is True and model.overlay.initialized is True:
|
||||||
@@ -640,12 +641,13 @@ class Controller:
|
|||||||
for i, no in enumerate(config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST):
|
for i, no in enumerate(config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST):
|
||||||
if (config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["language"] == "Japanese" and
|
if (config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["language"] == "Japanese" and
|
||||||
config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["enable"] is True):
|
config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["enable"] is True):
|
||||||
transliteration = model.convertMessageToTransliteration(
|
transliteration_translation.append(
|
||||||
translation[i],
|
model.convertMessageToTransliteration(
|
||||||
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
translation[i],
|
||||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
||||||
|
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||||
|
)
|
||||||
)
|
)
|
||||||
transliteration_translation.append(transliteration)
|
|
||||||
else:
|
else:
|
||||||
transliteration_translation.append([])
|
transliteration_translation.append([])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user