Notes 220719 132512

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 16

<!

--
mpvacious cards, version 13.0
Sat Nov 27 11:10:04 AM UTC 2021
-->

<div class="wrap">
<header>
{{#MorphManFocus}}
<div class="tags">{{MorphManFocus}}</div>
{{/MorphManFocus}}
{{#Tags}}
<div class="tags">{{Tags}}</div>
{{/Tags}}
</header>

<div class="sent-center">
<div class="jpsentence" lang="ja">
{{edit:morphHighlight:furigana:SentKanji}}
{{^SentKanji}}
<nokana>{{edit:kanji:SentFurigana}}</nokana>
{{/SentKanji}}
</div>
</div>
</div> <!-- /wrap -->

<div style="display:none;">
<div id="pitchnum_hidden">{{VocabPitchNum}}</div>
<div id="kanaword_hidden">{{kana:VocabFurigana}}</div>
</div>

<script>
/* Paints the question word according to its Pitch Accent number.
* blue for 平板
* red for 頭高
* orange for 中高
* green for 尾高
*/
function markPitch() {
let pitchNumber = document.getElementById("pitchnum_hidden");
if (pitchNumber === null) {
return;
} else {
pitchNumber = pitchNumber.innerHTML.match(/\d/);
}
if (pitchNumber === null) {
return;
} else {
pitchNumber = Number(pitchNumber);
}

/* Then decide what color to use and change font color accordingly. */
if (pitchNumber == 0) {
// use blue for 平板
paintTargetWord("#3366CC");
} else if (pitchNumber == 1) {
// use red for 頭高
paintTargetWord("red");
} else if (pitchNumber > 1) {
if (odaka(pitchNumber)) {
// use green for 尾高
paintTargetWord("green");
} else {
// use orange for 中高
paintTargetWord("#ff6207");
}
}
}

function paintTargetWord(color) {
for (sentence of document.getElementsByClassName("jpsentence")) {
for (word of sentence.getElementsByTagName("b")) {
word.style.color = color;
}
}
}

function odaka(pitch_num) {
// word is odaka if number of moras is equal to pitch accent position
const vocab_kana = document.getElementById("kanaword_hidden");
if (vocab_kana === null) {
return false;
}
// small っ is one mora; ゃゅょ are parts of single mora
const n_moras = vocab_kana.innerHTML.replace(/[ャュョゃゅょ]/g, "").length;
if (n_moras == pitch_num) {
return true;
} else {
return false;
}
}

/* Splits tags into separate divs */


function splitTagDiv() {
const header = document.querySelector("header");
if (!header) return;
const split = `{{MorphManFocus}} {{Tags}}`.split(" ");

header.innerHTML = "";

for (const tag of split) {


if (tag.length < 1) continue;
const tag_elem = document.createElement("div");
tag_elem.className = "tags";
tag_elem.innerHTML = tag;
header.appendChild(tag_elem);
}
}

markPitch();
splitTagDiv();
</script>

;;;;;;;;;

<div class="wrap">
<div class="fside">{{FrontSide}}</div>
<div class="sent-center">
<div class="jpsentence" lang="ja">
<div class="textleft"> <div display-type="coloredkanjireading"
class="wrapped-japanese"> {{SentFurigana w/ pitch}}
{{^SentFurigana}}{{edit:furigana:SentKanji}}{{/SentFurigana}}
</div>
{{#SentEng}}
<div class="ensentence" lang="en">{{hint:SentEng}}</div>
<div class="textleft"> {{/SentEng}}
</div> </div>

<div class="vocab">
{{VocabAudio}}{{SentAudio}}{{VocabPitchPattern}}
{{^VocabPitchPattern}}{{text:kana:VocabFurigana}}{{/VocabPitchPattern}}
{{#VocabPitchNum}}<span class="tags"
id="pitchnum">{{VocabPitchNum}}</span>{{/VocabPitchNum}}
{{#Expression_Front}}【{{text:kanji:Expression_Front}}】{{/Expression_Front}}
</div>

{{#VocabDef}}
<div class="definitions">{{edit:furigana:VocabDef}}</div>
{{/VocabDef}}
{{#Notes}}
<div class="notes">
<div class="tags">Notes</div>
<div>{{furigana:Notes}}</div>
</div>
{{/Notes}}
{{#Image}}
<div class="images">{{Image}}</div>
{{/Image}}

<hr />

<footer>
{{#SentKanji}}<a title="Translate with SimplyTranslate"
href="https://translate.metalune.xyz/?
engine=google&text={{text:kanji:SentKanji}}&sl=ja&tl=en">Translate</a><a
href="https://jisho.org/search?keyword={{text:kanji:SentKanji}}"
title="Sentence on Jisho">Jisho</a><a
href="https://www.google.co.jp/search?
q={{text:kanji:SentKanji}}&tbm=isch"
title="Search images">Images</a>{{/SentKanji}}{{#Expression_Front}}<a
href="http://www.weblio.jp/content/{{text:Expression_Front}}"
title="Vocab on Weblio">Weblio</a><a
href="https://wadoku.de/search/?q={{text:Expression_Front}}"
title="Vocab on Wadoku">Wadoku</a>{{/Expression_Front}}
</footer>
</div> <!-- /wrap -->

<script>
function tweak_reveal_text() {
const elem = document.querySelector("div.ensentence > a.hint");
if (elem) {
elem.innerText = "Reveal English translation";
}
}
function removePitchBrackets() {
const tags = document.getElementById("pitchnum");
if (tags !== null) {
tags.innerHTML = tags.innerHTML.replace(/[\[\]]/g, "");
}
}
markPitch();
removePitchBrackets();
tweak_reveal_text();
</script>
<script src ="_jquery.bpopup.min.js"></script>
<script src ="_kanjax_with_koohii_v3.js"></script>
<script>function processJIphoneEnter(e){var t,i;if(e.classList.contains("hovered-
word"))hideRuby(e);else{var a=document.getElementsByClassName("hovered-word")
[0];a&&hideRuby(a),e.classList.contains("unhovered-
word")&&showRuby(e)}if(i=e.getElementsByClassName("pitch-accent-popup")
[0])if("block"==i.style.display)i.style.display="none",i.style.top="",i.style.left=
"";else{if(t=document.getElementsByClassName("pitch-accent-popup"))for(var
s=0;s<t.length;s+
+)t[s].style&&(t[s].style.display="none",t[s].style.left="",i.style.top="");i&&form
atPopup(i,e)}}function formatPopup(e,t)
{e.style.position="absolute",e.style.display="block";var
i=t.closest(".card"),a=i.getBoundingClientRect().top+i.offsetHeight,s=document.body
.offsetWidth,n=mobileAndTabletcheck();n&&(s=i.getBoundingClientRect().left+i.offset
Width);var
c=0;document.body.scrollHeight>document.body.clientHeight&&(c=14),e.getBoundingClie
ntRect().left<s&&(e.style.left="2px");var
r=t.offsetHeight,o=0;t.classList.contains("pitch-shape-box")&&(o=-
5),e.style.top=r+"px";var
p=e.getBoundingClientRect().left+e.offsetWidth;if(p+c+10>s){var l=p-
s;e.style.left="-"+(l+2+c)+"px"}var
d=e.getBoundingClientRect().top+e.offsetHeight,h=a;!n&&h>200&&d>h?e.style.top="-"+
(e.offsetHeight+3-o)+"px":n&&h>300&&d>h&&(e.style.top="-"+(e.offsetHeight+3-o)
+"px")}function processEntry(e){var t;e.classList.contains("unhovered-
word")&&showRuby(e),(t=e.getElementsByClassName("pitch-accent-popup")
[0])&&formatPopup(t,e)}function processExit(e){var t;if(e?
e.classList.contains("hovered-word")&&hideRuby(e):hideRuby(!
1),t=document.getElementsByClassName("pitch-accent-popup"))for(var
i=0;i<t.length;i+
+)t[i].style&&(t[i].style.display="none",t[i].style.left="",t[i].style.top="")}func
tion bracketEscape(e){var t,i=/\[\d*\]+/g;if(i.test(e)){t=e.match(i);for(var
a=0;a<t.length;a++)e=e.replace(t[a],"☶")}return t?[e,t]:[e,[]]}function
replaceBrackets(e,t){if(t)for(var i=0;i<t.length;i++)e=e.replace("☶",t[i]);return
e}function htmlEscape(e){var t=/<[^<]*?>/g,i=!1;if(t.test(e)){i=e.match(t);for(var
a=0;a<i.length;a++)e=e.replace(i[a],"☷")}return i?[e,i]:[e,!1]}function
returnHTML(e,t){if(t)for(var i=0;i<t.length;i++)e=e.replace("☷",t[i]);return
e}function hideRuby(e){var t;if(void 0!==e&&(e.classList.add("unhovered-
word"),e.classList.remove("hovered-word")),
(t=document.getElementsByClassName("hovered-word"))&&t.length>0)for(var
i=0;i<t.length;i++)t[i].classList&&(t[i].classList.add("unhovered-
word"),t[i].classList.remove("hovered-word"))}function showRuby(e)
{e.classList.remove("unhovered-word"),e.classList.add("hovered-word")}function
cleanUpSpaces(e){return e.replace(/\n/g,"").replace(/ /g,"")}function
convertToHira(e){for(var t="ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポアイウエオカキク
ケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォャュョッヰヱ",
i="",a=0;a<e.length;a++)-1!==t.indexOf(e[a])?i+="がぎぐげござじずぜぞだぢづでどばびぶべぼ
ぱぴぷぺぽあいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわ
をんぁぃぅぇぉゃゅょっゐゑ"[t.indexOf(e[a])]:i+=e[a];return i}function
fetchColoredPitchIds(e){for(var t,i=[],a=0;a<e.length;a++){(t=e[a].match(/(n[\d]
{1,2})|(k[\d]{1,2})+?|[hanok]/g)).length>1?i.push('<span class="'+pitchConvert(t[0]
[0])+'">'+t[0].toUpperCase()+'</span><span style="color:black;">-</span><span
class="'+pitchConvert(t[1][0])+'">'+t[1].toUpperCase()+"</span>"):i.push('<span
class="'+pitchConvert(t[0][0])+'">'+t[0].toUpperCase()+"</span>")}return'<span
style="font-family:Arial;">'+i.join('<span class="popup-comma">,
</span>')+"</span>"}var mobileBrowser=mobileAndTabletcheck();function getJEvents()
{return mobileBrowser?' ontouchend="processJIphoneEnter(this)" ':'
onmouseleave="processExit(this)" onmouseenter="processEntry(this)" '}function
callPy(e){"undefined"!=typeof pycmd&&pycmd(e)}function
fetchPitchShapes(e,t,i,a,s,n,c){var r,o,p,l="",d=[];o=getJEvents();for(var
h=1;h<e.length;h++){var v=" onclick=\"callPy('playAudio;"+n+";"+c+";"+h+"')\"
";if(s&&(l='<div class="pitch-accent-popup no-ruby"><div class="no-ruby-
pitch">'+t+"</div></div>"),pitch=e[h],(r=pitch.match(/(n[\d]{1,2})|(k[\d]{1,2})+?|
[hanok]/g)).length>1)p="<div "+v+' class="pitch-shape-box pitch-circle-box"
'+o+'><div class="pitch-circle-box-left" ><div class="left-pitch-circle
'+pitchConvert(r[0][0],!0)+'"></div></div><div class="pitch-circle-box-right"><div
class="right-pitch-circle
'+pitchConvert(r[1][0],!0)+'"></div></div>'+l+"</div>";else{var u=!1,m=r[0]
[0];r[0].length>1&&(u=parseInt(r[0].substring(1))),""===i&&""===a||!s||(a||"k"!
=r[0][0]&&"k"!=e[0][0]?(a&&"k"==r[0][0]&&(i=a),l='<div class="pitch-accent-
popup"><div class="pitch-graph-container"><span class="'+pitchConvert(r[0][0])
+'">'+getPitchGraph(i,m,u,a)+'</span></div><div
class="pitch-numbers">'+t+"</div></div>"):l='<div class="pitch-accent-popup no-
ruby"><div class="no-ruby-pitch">'+t+"</div></div>"),p="<div "+v+' class="pitch-
shape-box pitch-diamond-box" '+o+'><div class="pitch-diamond '+pitchConvert(r[0]
[0],!0)+'"></div>'+l+"</div>"}d.push(p)}return d.join("")}function
pitchConvert(e,t){var i="";switch(e)
{case"h":i="heiban";break;case"a":i="atamadaka";break;case"n":i="nakadaka";break;ca
se"o":i="odaka";break;case"k":i="kifuku"}return void 0!==t?"
bg"+i.charAt(0).toUpperCase()+i.slice(1):i}function fetchPitch(e){var t,i;if(/(n[\
d]{1,2})|(k[\d]{1,2})+?/g.test(e)){t=e.match(/(n[\d]{1,2})|(k[\d]{1,2})+?|[hanok]/
g);var a="";i=[];for(var s=0;s<t.length;s++)t[s].length>1&&0==s?
(i.push(t[s].substring(0,1)),a=parseInt(t[s].substring(1))):i.push(t[s]);return[pit
chConvert(i[0].substring(0,1)),[!0,i,a]]}return/[hanok]{2,}/g.test(e)?
[pitchConvert((i=e.split(""))[0]),[!1,pitchConvert(i[1],!0)]]:[pitchConvert(e),!
1]}function getPitchGraph(e,t,i,a){var
s=1,n=["ゃ","ょ","ゅ","ぁ","ぃ","ぇ","ぉ","ぅ","ャ","ョ","ュ","ァ","ィ","ェ","ォ","ゥ"];
if(-1!==n.indexOf(e[1])&&(s=2),"a"===t)return'<div class="pitch-box"><div
class="pitch-overbar"></div><span
class="high-pitch">'+e.substring(0,s)+'</span><div
class="pitch-drop"></div></div>'+e.substring(s);if("n"==t||"k"===t){var c,r=1,o=!
1;if("k"===t){if(void 0===a)return!1;e=a}if(void 0===i)return e;r=i;for(var
p=0;p<r+1;p++)-1!==n.indexOf(e[p])&&r++;return c=r,1===i&&(o=!0),o?'<div
class="pitch-box"><div class="pitch-overbar"></div><span class="high-
pitch">'+e.substring(0,r)+'</span><div
class="pitch-drop"></div></div>'+e.substring(r):e.substring(0,s)+'<div
class="pitch-box"><div class="pitch-overbar"></div><span class="high-
pitch">'+e.substring(s,c)+'</span><div
class="pitch-drop"></div></div>'+e.substring(c)}return"h"===t?
(a&&(e=a),e.substring(0,s)+'<div class="pitch-box"><div
class="pitch-overbar"></div><span
class="high-pitch">'+e.substring(s)+"</span></div>"):"o"===t?
(a&&(e=a),1===e.length||2==e.length&&-1!==n.indexOf(e[1])?'<div class="pitch-
box"><div class="pitch-overbar"></div><span class="high-pitch">'+e+'</span><div
class="pitch-drop"></div></div>':e.substring(0,s)+'<div class="pitch-box"><div
class="pitch-overbar"></div><span class="high-pitch">'+e.substring(s)+'</span><div
class="pitch-drop"></div></div>'):void 0}function fetchFuriWrapper(e,t){return
e?'<div class="rtMigaku kana-ruby'+t+'"><span
class="kana-ruby">'+e+"</span></div>":""}function mobileAndTabletcheck(){var e=!
1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|
elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|
midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|
series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|
xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|
as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|
bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|
ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|
esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|
gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|
s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|
ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|
le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|
mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|
mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|
m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|
pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|
qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|
mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|
m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|
50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|
m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|
vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|
x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(e=!
0),e}function doSetTimeout(e,t,i,a,s,n,c,r,o,p,l,d){setTimeout(function()
{t=formatJapanese(t,c,r,o,p,l,d),i.innerHTML+=t.replace(/&nbsp;/
g,"&ensp;"),sizeShapes(i)},500*e),e+1==a&&(s||n)&&setTimeout(function()
{s&&(i.innerHTML=returnHTML(i.innerHTML,s)),n&&(i.innerHTML=replaceBrackets(i.inner
HTML,n))},500*(e+1))}var japaneseWordContainers=0;function sizeShapes(e){var
t;if(t=e.getElementsByClassName("japanese-word")[0]){var i="jwCont"+ +
+japaneseWordContainers;e.classList.add(i),i="."+i;var a,s,n=!
1;if((s=document.getElementsByClassName("pitchShapeCss"+japaneseWordContainers)).le
ngth>0)s=s[0],n=!
0;else(s=document.createElement("style")).classList.add("pitchShapeCss"+japaneseWor
dContainers),s.type="text/css",a=document.getElementsByTagName("head")[0];var
c="",r=parseInt(window.getComputedStyle(t,null).getPropertyValue("font-size"))
+3,o=Math.round(10*r)/10,p=Math.round(r/10*10)/10,l=o/2;document.getEle
mentsByClassName("pitch-diamond")&&(c+=i+" .pitch-
diamond{",c+="width:"+l+"px;",c+="height:"+l+"px;",c+="bottom:"+p+"px;",c+="}"),l=(
o=l+2)/2,p*=.6,document.getElementsByClassName("right-pitch-
circle")&&(c+=i+" .right-pitch-
circle{",c+="width:"+l+"px;",c+="height:"+o+"px;",c+="bottom:"+p+"px;",c+="border-
top-right-radius:"+o+"px;",c+="border-bottom-right-
radius:"+o+"px;",c+="}"),document.getElementsByClassName("left-pitch-
circle")&&(c+=i+" .left-pitch-
circle{",c+="width:"+l+"px;",c+="height:"+o+"px;",c+="bottom:"+p+"px;",c+="border-
top-left-radius:"+o+"px;",c+="border-bottom-left-radius:"+o+"px;",c+="}"),n?
s.innerHTML=c:
(a.appendChild(s),s.appendChild(document.createTextNode(c)))}}function
setInHTML(e,t,i,a)
{t.innerHTML=e,a&&(t.innerHTML=replaceBrackets(t.innerHTML,a).replace(/&nbsp;/
g,"&ensp;")),setTimeout(function()
{sizeShapes(t),t.style.visibility="visible"},5)}function
formatJapanese(e,t,i,a,s,n,c){var r;if(r=e.match(/[^  &>;☷\n]+?\[[^\]]+\][^  
&<;☷\n]*/g)){c||(e=cleanUpSpaces(e));for(var o=0;o<r.length;o++){var
p,l,d=r[o],h=d.replace(/\[([^\]]+)\]/,""),v=d.match(/\[([^\]]+)\]/)
[1],u=d.replace(/\[[^\]]+\]/,"---SEPERATOR---");[p,l]=u.split("---
SEPERATOR---");var m,g="";-1!==v.indexOf(";")?([m,g]=v.split(";"),c||""!=m||
(m=p),g=-1!==g.indexOf(",")?g.split(","):[g]):m=v,g&&(g=g.filter(Boolean));var
f="";-1!==m.indexOf(",")&&([m,f]=m.split(",")),""===m||m.match(/^[\u3040-\u309f\
u30a0-\u30ff]+$/)||(m=""),c&&""==m&&p.match(/^[\u3040-\u309f\u30a0-\u30ff]+
$/)&&(m=p);var b,y,k="",w="",x="",C=!0,E=!1,j="",L="";if(g)
{b=fetchColoredPitchIds(g),[k,w]=fetchPitch(g[0]),w&&(w[0]?w[1].length>1?(C=!
1,x=pitchConvert(w[1][1].replace(/\d/g,""),!0)):E=!0:(C=!
1,w[1].length>1&&(x=w[1])));var T="";p.match(/^[\u3040-\u309f\u30a0-\u30ff]+
$/)&&""==m&&(T=p);var B="";C&&i&&(""!==m||""!==T||""!==f)&&(B=T||m,(j=E?
getPitchGraph(convertToHira(B+l),w[1]
[0],w[2],f):getPitchGraph(convertToHira(B+l),g[0],!1,f))?(L=" thumb-hover",j='<div
class="pitch-accent-popup '+k+'"><div class="pitch-graph-container">'+j+'</div><div
class="pitch-numbers">'+b+"</div></div>"):j=""),!j&&i&&(!n||n&&!C?j='<div
class="pitch-accent-popup no-ruby"><div
class="no-ruby-pitch">'+b+"</div></div>":E&&(j='<div class="pitch-accent-popup no-
ruby"><div class="no-ruby-pitch">'+b+"</div></div>"))}""===m&&""!==f&&i&&!
j&&(j='<div class="pitch-accent-popup"><div class="pitch-graph-
container">'+f+"&ensp;</div></div>"),y=getJEvents();var H="",M=m+l;if(f){M=f;var
P=h.match(/.*[^\u3040-\u309f\u30a0-\u30ff ]/);P||
(P=""),h=P+f.replace(m,"")}g.length>1&&n&&"coloredhover"!
==t&&a&&(H=fetchPitchShapes(g,b,m?m+l:"",f,i,h,M)),p.match(/^[\u3040-\u309f\u30a0-\
u30ff]+$/)&&(m=""),n||(k="",x=""),""===m&&c&&(m=p+l);if(g.length < 2){var A="
onclick=\"callPy('playAudio;"+h+";"+M+";100')\" "; }else{ var A="
onclick=\"callPy('playAudio;"+h+";"+M+";0')\" ";}"coloredkanji"==t?
e=e.replace(d,'<div class="j-migaku-cont"><span'+A+' class="japanese-word
'+k+x+L+'"'+y+">"+p+l+j+"</span>"+H+"</div>"):"kanji"==t?e=e.replace(d,"<span"+A+'
class="japanese-word"'+y+">"+p+l+j+"</span>"):"coloredkanjireading"==t||"kanjireadi
ng"==t?(m=fetchFuriWrapper(m,s),e=e.replace(d,'<div class="j-migaku-
cont"><span'+A+' class="japanese-word '+k+x+L+'"'+y+'><div
class="rubyMigaku">'+m+'<div class="rbMigaku"><span
class="kanji-ruby">'+p+"</span></div></div>"+l+j+"</span>"+H+"</div>")):"coloredhov
er"==t||"hover"==t?(m=fetchFuriWrapper(m,s),e=e.replace(d,"<span"+A+'
class="japanese-word unhovered-word '+k+x+L+'"'+y+'><div
class="rubyMigaku">'+m+'<div class="rbMigaku"><span
class="kanji-ruby">'+p+"</span></div></div>"+l+j+"</span>")):"coloredreading"!
=t&&"reading"!=t||(e=e.replace(d,'<div class="j-migaku-cont"><span'+A+'
class="japanese-word '+k+x+L+'"'+y+">"+m+l+j+"</span>"+H+"</div>"))}return e}return
c||(e=cleanUpSpaces(e)),e}(function(){const FG_FONT_SIZE=4;const
BUFFERED_OUTPUT=false;var PITCH_GRAPHS=true;const PITCH_SHAPES=true;for(var
jpText=document.getElementsByClassName("wrapped-japanese"),i=0;i<jpText.length;i++)
{var dType,inHT=jpText[i].innerHTML;if(-1===inHT.indexOf("[")||inHT.match(/\[\d/
gm)&&!inHT.match(/\[\D/gm))jpText[i].style.visibility="visible";else
if(dType=jpText[i].getAttribute("display-type")){dType=dType.toLowerCase();var
displayModes=["hover","coloredhover","coloredkanji","reading","coloredreading","kan
jireading","coloredkanjireading","kanji"];if(-1!=displayModes.indexOf(dType)){var
textMatches,txtM,brackMatches,colored=!0;"c"!==dType.charAt(0)&&(colored=!1),
[inHT,brackMatches]=bracketEscape(inHT);var htmlMatches,reading=!1;if("reading"!
=dType&&"coloredreading"!=dType?[inHT,htmlMatches]=htmlEscape(inHT):reading=!
0,BUFFERED_OUTPUT)
{if(jpText[i].style.visibility="visible",textMatches=inHT.match(/.{1,500}(?=\s|$)/
gm)){jpText[i].innerHTML="";for(var m=0;m<textMatches.length;m+
+)txtM=textMatches[m],doSetTimeout(m,txtM,jpText[i],textMatches.length,htmlMatches,
brackMatches,dType,PITCH_GRAPHS,PITCH_SHAPES,FG_FONT_SIZE,colored,reading)}}else
txtM=formatJapanese(inHT,dType,PITCH_GRAPHS,PITCH_SHAPES,FG_FONT_SIZE,colored,readi
ng),htmlMatches&&(txtM=returnHTML(txtM,htmlMatches)),setInHTML(txtM,jpText[i],htmlM
atches,brackMatches)}}}})()</script><!--###MIGAKU JAPANESE SUPPORT JS ENDS###-->

;;;;;;;;;;;;

@charset "utf-8";

@media screen and (min-width: 900px) {


/* Limit font loading to wide screens to avoid performance hits on mobile. */
@font-face {
font-family: "KanjiStrokeOrders";
src: local("KanjiStrokeOrders"), url("_kso.ttf");
}

@font-face {
font-family: "Yu Mincho";
src: local("Yu Mincho"), local("游明朝"), url("_yumin.ttf");
}

@font-face {
font-family: "Yu Mincho";
src: local("Yu Mincho Demibold"), local("游明朝 Demibold"),
url("_yumindb.ttf");
font-weight: 600;
}

b {
font-weight: 600;
}
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
.textleft {text-align: left;}
.card {
background-color: #fffaf0;
color: #2a1b0a;
font-family: "Noto Serif", "Noto Serif CJK JP", Yu Mincho, "Liberation Serif",
"Times New Roman", Times, Georgia,
Serif;
font-size: 24px;
text-align: center;
line-height: 1.4;
margin: 0 auto;
}

.card1 {
color: inherit;
}

.card2 .jpsentence ruby rt {


opacity: 0;
}

.card2 .jpsentence:hover ruby rt {


opacity: 1;
}

@media screen and (min-width: 820px) {


.card {
background-color: #e5d7c9;
display: flex;
justify-content: center;
}

.wrap {
width: 800px;
padding: 0 5px 0;
background-color: #fffaf0;
border-left: 1px solid #c9bcbc;
border-right: 1px solid #c9bcbc;
min-height: 100vh;
}

.wrap .wrap {
width: auto;
padding: 0;
min-height: 0;
border: 0;
}
}

hr {
margin: 2px 0;
clear: both;
border: 0;
border-top: 1px solid #c9bcbc;
}

/* links */
a {
color: #532f2f;
}

a:hover {
color: #722a2a;
}

a.hint {
text-decoration: none;
text-align: center;
display: block;
}

/* Hide furigana on front */


nokana ruby rt {
opacity: 0;
font-size: 0;
display: none;
}

notext b {
background-color: black;
color: transparent;
}

/* Top */
header {
display: flex;
clear: both;
}
header .tags {
border-radius: 0px 0px 3px 3px;
}

header>div:not(:last-child) {
margin-right: 3px;
}

/* Space between elements */

.sent-center {
display: flex;
align-items: center;
justify-content: center;
flex-flow: column nowrap;
}

/* Japanese sentence */

.jpsentence {
font-size: 35px;
}

/* Hide front side when the back is shown. */

.fside .jpsentence {
display: none;
}

/* English */

div.ensentence>a.hint {
color: #555;
font-size: 14px;
display: block;
border: 1px solid #ccc;
border-radius: 2.2px;
padding: 2px 10px;
margin: 4px 0;
}

div.ensentence>a.hint:hover {
color: #111;
background-color: rgba(0, 0, 0, 0.03);
}

/* Tags */

.tags {
font-family: "Noto Sans", "Noto Sans CJK JP", "Liberation Sans", Arial, Sans,
sans-serif;
text-align: center;
display: inline-block;
text-transform: lowercase;
background-color: #333;
color: #fffaf0;
font-weight: bold;
padding: 1px 3px;
margin: 0;
cursor: pointer;
border-radius: 3px;
font-size: 12px;
line-height: 14px;
}

/* AnkiDroid replay button */

.replaybutton {
margin: 0;
margin-right: 3px;
text-decoration: none;
}

.replaybutton span {
padding: 0;
font-size: 16px;
}

.replaybutton span svg {


fill: #fffaf0;
background: #333;
border-radius: 3px;
vertical-align: top;
min-width: 16px;
min-height: 16px;
}

/* PC replay button */

a.replay-button {
top: -0.125em;
position: relative;
margin: 0;
}

a.replay-button svg {
height: 1em;
width: 1em;
}

a.replay-button svg path {


fill: #fffaf0;
}

a.replay-button svg circle {


fill: #333;
}

/* Footer and links */

footer {
font-size: 16px;
text-align: center;
}

footer>a {
text-decoration: none;
}
footer>a:after {
content: "·";
color: brown;
display: inline-block;
width: 6px;
}

footer>a:last-child:after {
content: "";
width: 0;
}

/* Vocab */

.vocab {
margin-top: 16px;
}

.vocab div {
display: inline-block;
}

.vocab br {
display: none;
}

.vocab>.tags {
vertical-align: top;
}

.notes>.tags {
vertical-align: bottom;
}

/* Images */

.images {
margin: 10px 0;
display: grid;
justify-items: center;
align-items: start;
align-content: start;
justify-content: space-around;
gap: 5px;
grid-auto-columns: minmax(100px, 1fr);
grid-auto-rows: minmax(100px, auto);
}
.images br, .images > * {
display: none;
}
.images img {
display: block;
border-radius: 4px;
filter: sepia(33%);
max-width: 100%;
max-height: 95vh;
}
.images img:nth-child(3n+1) {
grid-column: 1;
}
.images img:nth-child(3n+2) {
grid-column: 2;
}
.images img:nth-child(3n+3) {
grid-column: 3;
}

/* Production cards */

.production b {
visibility: hidden;
}

.strokeorder {
text-align: center;
font-size: 150px;
font-family: KanjiStrokeOrders;
}

/* Morphman coloring */

.fside .jpsentence:hover [mtype="unknown"] {


background-color: #ffff99;
}

.fside .jpsentence:hover [mtype="seen"] {


background-color: #ffd1b3;
}

.fside .jpsentence:hover [mtype="known"] {


background-color: #b3e6cc;
}

.fside .jpsentence:hover [mtype="mature"] {


background-color: transparent;
}

.fside .jpsentence:hover [priority="true"] {


color: inherit;
}

.fside .jpsentence:hover [frequency="true"] {


color: inherit;
}

del.MorphManHide,
del.morphmanhide {
display: none;
}

/* Fix for Yomichan defs */

ul,
ol {
list-style-type: none;
display: inline;
margin: 0px;
padding: 0px;
}

/* Fix for Yomichan pitch accents */

.vocab ol>li {
display: inline;
}

.vocab ol>li:after {
content: "・";
}

.vocab ol>li:last-child:after {
content: "";
}

/* Night Mode */

.nightMode.card {
background-color: #2F2F31;
}

.nightMode .wrap {
color: #FFFFFF;
background-color: inherit;
}

.nightMode .tags {
background-color: #FFFFFF;
color: #2F2F31;
}

.nightMode a.replay-button svg path {


fill: #2F2F31;
}

.nightMode a.replay-button svg circle {


fill: #FFFFFF;
}

.nightMode .replaybutton span svg {


fill: #2F2F31;
background: #FFFFFF;
}

.nightMode a {
color: #c7493a;
}

.nightMode a:hover {
color: #a33327;
}

.nightMode .jpsentence b {
color: gray;
}

.nightMode .images>img {
filter: sepia(0%);
}

.nightMode div.ensentence>a.hint {
color: #FFFFFF;
border: 1px solid #FFFFFF;
}

.nightMode div.ensentence>a.hint:hover {
color: gray;
background-color: rgba(0, 0, 0, 0.20);
}

/* Don't select furigana */

.jpsentence ruby rt {
user-select: none;
}
.museika{width:22px;height:22px;border-radius:50% ;border:1px #db4130 dashed}.j-
migaku-cont{display:inline-block;}.pitch-numbers{display:inline-
block;position:relative;color:#000;font-size:18px;right:2px;padding:0 2px 8px
10px;bottom:7px;vertical-align:top;text-align:right}.thumb-
hover:hover{cursor:pointer}.hovered-word{cursor:pointer}.unhovered-word .kanji-
ruby{color:#000}.unhovered-word .kana-ruby{visibility:hidden}.unhovered-
word.japanese-word{color:#000;background:0 0}.pitch-
box{position:relative;}.japanese-word{position:relative;display:inline-block}.kana-
ruby{display:inline-block;text-align:justify!important}.pitch-accent-popup{box-
shadow:2px 2px rgba(0,0,0,.6);position:absolute;display:none;z-index:10;background-
color:#fff;border:1px solid #000;border-radius:5px;white-space:nowrap;padding:8px 0
0 4px;top:105%;left:-10%; font-size:32px}.mobile.pitch-accent-popup{box-shadow:2px
2px rgba(0,0,0,.6);position:absolute;display:none;z-index:10;background-
color:#fff;border:1px solid #000;border-radius:5px;white-space:nowrap;padding:8px 0
0 4px;top:105%;left:-10%; font-size:28px}.pitch-graph-
container{position:relative;display:inline-block;}.pitch-box,.pitch-drop,.pitch-
overbar{display:inline-block;}.japanese-word .pitch-overbar{background-
color:#000}.japanese-word .pitch-drop{background-color:#000}.pitch-
overbar{background-color:red;height:2px;width:100%;position:absolute;top:-
3px;left:0}.pitch-drop{background-
color:red;height:6px;width:2px;position:absolute;top:-3px;right:-2px}.no-
ruby{padding:2px 4px 2px 4px}.no-ruby-
pitch{height:100%;width:100%;margin:auto;text-align:center;line-
height:100%;}.pitch-shape-box{padding:4px;display:inline-
block;position:relative}.pitch-circle-box-right{display:inline-
block;position:relative}.pitch-circle-box-left{padding-right:1.5px;display:inline-
block;position:relative}.pitch-
diamond{width:8px;height:8px;transform:rotate(45deg);display:inline-
block;position:relative;bottom:2px}.left-pitch-circle,.right-pitch-
circle{height:12px;width:6px;display:inline-block;position:relative}.right-pitch-
circle{border-bottom-right-radius:12px;border-top-right-radius:12px}.left-pitch-
circle{border-bottom-left-radius:12px;border-top-left-radius:12px}.pitch-shape-
box .pitch-overbar{background-color:#000}.pitch-shape-box .pitch-drop{background-
color:#000}.rubyMigaku{display:inline-block;padding:0;margin:0;text-
align:center}.rtMigaku{padding:2px 0 0 0;margin:0;vertical-align:top;text-
align:center;line-height:100%}.kana-ruby{position:relative;bottom:-4px}.kana-
ruby1{font-size:10%}.kana-ruby2{font-size:20%}.kana-ruby3{font-size:30%}.kana-
ruby4{font-size:47%}.kana-ruby5{font-size:40%}.kana-ruby6{font-size:60%}.kana-
ruby7{font-size:70%}.kana-ruby8{font-size:80%}.kana-ruby9{font-size:90%}.kana-
ruby10{font-size:100%}.rbMigaku{display:inline-block;padding:0;margin:0}.wrapped-
japanese{visibility:hidden}.ankidroid_dark_mode .pitch-box .pitch-
drop,.ankidroid_dark_mode .pitch-box .pitch-overbar,.nightMode .pitch-box .pitch-
drop,.nightMode .pitch-box .pitch-overbar,.night_mode .pitch-box .pitch-
drop,.night_mode .pitch-box .pitch-overbar{background-color:#fff!
important}.ankidroid_dark_mode .pitch-accent-popup,.nightMode .pitch-accent-
popup,.night_mode .pitch-accent-popup{background-color:#000;border:1px solid
#fff;box-shadow:2px 2px rgba(0,0,0,.2)}.ankidroid_dark_mode .unhovered-word .kana-
ruby,.ankidroid_dark_mode .unhovered-word .kanji-
ruby,.ankidroid_dark_mode .unhovered-word.japanese-word,.nightMode .unhovered-
word .kana-ruby,.nightMode .unhovered-word .kanji-ruby,.nightMode .unhovered-
word.japanese-word,.night_mode .unhovered-word .kana-ruby,.night_mode .unhovered-
word .kanji-ruby,.night_mode .unhovered-word.japanese-word{color:#fff}.popup-
comma{color:#000}.ankidroid_dark_mode .popup-comma,.nightMode .popup-
comma,.night_mode .popup-
comma{color:#fff}.heiban{color:#005CE6;}.atamadaka{color:#E60000;}.nakadaka{color:#
E68A00;}.odaka{color:#00802B;}.kifuku{color:#AC00E6;}.bgHeiban{background-
color:#005CE6;}.bgAtamadaka{background-color:#E60000;}.bgNakadaka{background-
color:#E68A00;}.bgOdaka{background-color:#00802B;}.bgKifuku{background-
color:#AC00E6;}
/*###MIGAKU JAPANESE SUPPORT CSS ENDS###*/

You might also like