mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
f0401dc946
commit
62af18826e
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user