Content deleted Content added
Opencooper (talk | contribs) rework to handle bound headwords |
Opencooper (talk | contribs) fix looping |
||
Line 387:
// Wiktionary already binds their kana, so we have to undo the process to get
// the constituent parts, at least with the current markup
for (let i = 0; i < childNodes.length; i++) {
if (
var ruby = $(
ruby.children("rp").remove();
var kana = ruby.children("rt").detach().text();
var kanji = ruby.text();
} else if (
kanji +=
kana +=
}
}
|