fix a slur and improve decon listing a little

This commit is contained in:
wareya committed 2017-12-17 20:32:55 -05:00
1 parent 2c8dfbec73
commit 341d187df0
2 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -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"});
+12 -2
View File
@@ -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));
}