This commit is contained in:
恍兮惚兮 2024-08-14 10:03:58 +08:00
parent f0401dc946
commit 62af18826e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()