メッセージの変換処理を改善し、日本語のトランスリテレーションの条件を整理
This commit is contained in:
@@ -308,7 +308,8 @@ class Controller:
|
||||
)
|
||||
|
||||
for i, no in enumerate(config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST):
|
||||
if config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["language"] == "Japanese":
|
||||
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):
|
||||
transliteration_translation.append(
|
||||
model.convertMessageToTransliteration(
|
||||
translation[i],
|
||||
@@ -318,6 +319,8 @@ class Controller:
|
||||
)
|
||||
else:
|
||||
transliteration_translation.append([])
|
||||
else:
|
||||
transliteration_translation = [[] for _ in config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST]
|
||||
|
||||
if config.ENABLE_TRANSCRIPTION_SEND is True:
|
||||
if config.SEND_MESSAGE_TO_VRC is True:
|
||||
@@ -458,12 +461,17 @@ class Controller:
|
||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||
)
|
||||
|
||||
if config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese":
|
||||
if (config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["language"] == "Japanese" and
|
||||
config.SELECTED_YOUR_LANGUAGES[config.SELECTED_TAB_NO]["1"]["enable"] is True):
|
||||
transliteration_translation = model.convertMessageToTransliteration(
|
||||
translation[0],
|
||||
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||
)
|
||||
else:
|
||||
transliteration_translation.append([])
|
||||
else:
|
||||
transliteration_translation = [[] for _ in config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST]
|
||||
|
||||
if config.ENABLE_TRANSCRIPTION_RECEIVE is True:
|
||||
if config.OVERLAY_SMALL_LOG is True and model.overlay.initialized is True:
|
||||
@@ -630,7 +638,8 @@ class Controller:
|
||||
romaji=config.CONVERT_MESSAGE_TO_ROMAJI
|
||||
)
|
||||
for i, no in enumerate(config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST):
|
||||
if config.SELECTED_TARGET_LANGUAGES[config.SELECTED_TAB_NO][no]["language"] == "Japanese":
|
||||
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):
|
||||
transliteration = model.convertMessageToTransliteration(
|
||||
translation[i],
|
||||
hiragana=config.CONVERT_MESSAGE_TO_HIRAGANA,
|
||||
@@ -639,6 +648,8 @@ class Controller:
|
||||
transliteration_translation.append(transliteration)
|
||||
else:
|
||||
transliteration_translation.append([])
|
||||
else:
|
||||
transliteration_translation = [[] for _ in config.SELECTED_TAB_TARGET_LANGUAGES_NO_LIST]
|
||||
|
||||
# send OSC message
|
||||
if config.SEND_MESSAGE_TO_VRC is True:
|
||||
|
||||
Reference in New Issue
Block a user