fix a-stem deconjugations and some display bugs
This commit is contained in:
1 parent
ca9c532fb1
commit
c524651592
2 files changed
+13
-5
No files matched your search
@@ -185,7 +185,7 @@ rules.push({type: "neverfinalrule"
|
|||||||
, dec_end:
|
, dec_end:
|
||||||
["く","す","つ","う","る","ぐ","ぶ","ぬ","む","う","く"]
|
["く","す","つ","う","る","ぐ","ぶ","ぬ","む","う","く"]
|
||||||
, con_end:
|
, con_end:
|
||||||
["か","せ","て","わ","ら","が","ば","な","ま","わ","か"]
|
["か","さ","た","わ","ら","が","ば","な","ま","わ","か"]
|
||||||
, dec_tag:
|
, dec_tag:
|
||||||
["v5k","v5s","v5t","v5u","v5r","v5g","v5b","v5n","v5m","v5u-s","v5k-s"] // TODO: support あらへん, あらぬ, etc
|
["v5k","v5s","v5t","v5u","v5r","v5g","v5b","v5n","v5m","v5u-s","v5k-s"] // TODO: support あらへん, あらぬ, etc
|
||||||
, con_tag:"stem-a", detail:"('a' stem)"});
|
, con_tag:"stem-a", detail:"('a' stem)"});
|
||||||
|
|||||||
+12
-4
@@ -242,14 +242,18 @@ function build_div (text, result)
|
|||||||
{
|
{
|
||||||
if(form.process.length > 0)
|
if(form.process.length > 0)
|
||||||
temptag += "~";
|
temptag += "~";
|
||||||
|
let added = 0;
|
||||||
for(let f = form.process.length-1; f >= 0; f--)
|
for(let f = form.process.length-1; f >= 0; f--)
|
||||||
{
|
{
|
||||||
let info = form.process[f];
|
let info = form.process[f];
|
||||||
|
if(info == "")
|
||||||
|
continue;
|
||||||
if(info.startsWith("(") && info.endsWith(")") && f != 0)
|
if(info.startsWith("(") && info.endsWith(")") && f != 0)
|
||||||
continue;
|
continue;
|
||||||
temptag += info;
|
if(added > 0)
|
||||||
if(f > 0)
|
|
||||||
temptag += "―";
|
temptag += "―";
|
||||||
|
added++;
|
||||||
|
temptag += info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -328,14 +332,18 @@ function build_div (text, result)
|
|||||||
{
|
{
|
||||||
if(form.process.length > 0)
|
if(form.process.length > 0)
|
||||||
temptag += "~";
|
temptag += "~";
|
||||||
|
let added = 0;
|
||||||
for(let f = form.process.length-1; f >= 0; f--)
|
for(let f = form.process.length-1; f >= 0; f--)
|
||||||
{
|
{
|
||||||
let info = form.process[f];
|
let info = form.process[f];
|
||||||
|
if(info == "")
|
||||||
|
continue;
|
||||||
if(info.startsWith("(") && info.endsWith(")") && f != 0)
|
if(info.startsWith("(") && info.endsWith(")") && f != 0)
|
||||||
continue;
|
continue;
|
||||||
temptag += info;
|
if(added > 0)
|
||||||
if(f > 0)
|
|
||||||
temptag += "―";
|
temptag += "―";
|
||||||
|
added++;
|
||||||
|
temptag += info;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user