diff --git a/background-script.js b/background-script.js index 06cf87e..5bb1756 100644 --- a/background-script.js +++ b/background-script.js @@ -331,7 +331,7 @@ rules.push({type: "rewriterule", dec_end:"です", con_end:"でした", dec_tag: // negatives rules.push({type: "contextrule", contextrule: "adjspecial", dec_end:"", con_end:"ない", dec_tag:"stem-mizenkei", con_tag:"adj-i", detail:"negative"}); -rules.push({type: "stdrule", dec_end:"", con_end:"ん", dec_tag:"stem-a", con_tag:"adj-i", detail:"slurred negative"}); // causes problems with ichidan verbs but they can't conjugate to stem-a +rules.push({type: "stdrule", dec_end:"", con_end:"ん", dec_tag:"stem-mizenkei", con_tag:"adj-i", detail:"slurred negative"}); rules.push({type: "onlyfinalrule", dec_end:"", con_end:"ず", dec_tag:"stem-mizenkei", con_tag:"uninflectable", detail:"adverbial negative"}); rules.push({type: "onlyfinalrule", dec_end:"", con_end:"ずに", dec_tag:"stem-mizenkei", con_tag:"uninflectable", detail:"without doing so"}); rules.push({type: "onlyfinalrule", dec_end:"", con_end:"ぬ", dec_tag:"stem-mizenkei", con_tag:"uninflectable", detail:"archaic negative"}); diff --git a/texthook.js b/texthook.js index 598f120..443796a 100644 --- a/texthook.js +++ b/texthook.js @@ -282,6 +282,7 @@ function build_div (text, result) if(term.deconj) { let deconj = ""; + let first = true; for(let form of term.deconj) { let formtext = ""; @@ -300,9 +301,13 @@ function build_div (text, result) } if(formtext != "") { - deconj += "~"; + if(first) + deconj += "~"; + else + deconj += "・"; deconj += formtext; } + first = false; } temptag.appendChild(document.createTextNode(deconj)); } @@ -386,6 +391,7 @@ function build_div (text, result) if(term.deconj) { let deconj = ""; + let first = true; for(let form of term.deconj) { let formtext = ""; @@ -404,9 +410,13 @@ function build_div (text, result) } if(formtext != "") { - deconj += "~"; + if(first) + deconj += "~"; + else + deconj += "・"; deconj += formtext; } + first = false; } temptag.appendChild(document.createTextNode(deconj)); }