diff --git a/LunaTranslator/LunaTranslator/hiraparse/latin.py b/LunaTranslator/LunaTranslator/hiraparse/latin.py index 2d76832c..2442865f 100644 --- a/LunaTranslator/LunaTranslator/hiraparse/latin.py +++ b/LunaTranslator/LunaTranslator/hiraparse/latin.py @@ -36,6 +36,6 @@ class latin(basehira): if c in punctuations: _x.append({"orig": c, "hira": "", "isdeli": True}) else: - _x.append({"orig": c, "hira": ""}) + _x.append({"orig": c, "hira": c}) return _x diff --git a/LunaTranslator/LunaTranslator/rendertext/webview.html b/LunaTranslator/LunaTranslator/rendertext/webview.html index 80733a12..53512a2d 100644 --- a/LunaTranslator/LunaTranslator/rendertext/webview.html +++ b/LunaTranslator/LunaTranslator/rendertext/webview.html @@ -265,7 +265,7 @@ tag.forEach(word => { let eleori = dispatch_text_style_inlineblock(style, styleargs, word.orig, { atcenter: true, fontFamily: fmori, fontSize: fsori, bold: boldori, color: color, lineHeight: line_height }) - if ((isshow_fenci || isfenciclick) && word.hira) { + if ((isshow_fenci || isfenciclick) && word.hira.trim().length) { let div = document.createElement('div') div.style.display = 'inline-block' div.id = _simpleuid()