mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
f0401dc946
commit
62af18826e
@ -36,6 +36,6 @@ class latin(basehira):
|
|||||||
if c in punctuations:
|
if c in punctuations:
|
||||||
_x.append({"orig": c, "hira": "", "isdeli": True})
|
_x.append({"orig": c, "hira": "", "isdeli": True})
|
||||||
else:
|
else:
|
||||||
_x.append({"orig": c, "hira": ""})
|
_x.append({"orig": c, "hira": c})
|
||||||
|
|
||||||
return _x
|
return _x
|
||||||
|
@ -265,7 +265,7 @@
|
|||||||
tag.forEach(word => {
|
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 })
|
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')
|
let div = document.createElement('div')
|
||||||
div.style.display = 'inline-block'
|
div.style.display = 'inline-block'
|
||||||
div.id = _simpleuid()
|
div.id = _simpleuid()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user