ruby rendering of readings, audio fixes in "~"notes
This commit is contained in:
parent
c31749ba24
commit
49524d1d02
56
deck.json
56
deck.json
@ -88,6 +88,7 @@
|
||||
"googletts-072073e2-b22eaf27-3fee013c-593b62c5-0b807e63.mp3",
|
||||
"googletts-074e337c-9088cdd1-0b9b2983-da0a1982-5756d082.mp3",
|
||||
"googletts-07600290-e7e56403-a2bf6d57-ab678cc5-4a9b9300.mp3",
|
||||
"googletts-0778e66c-267f42f9-415f7844-6ecaa13d-1b7b5a9e.mp3",
|
||||
"googletts-07956bb4-ab77ccf8-efad24d3-3f9c3e9f-6261520e.mp3",
|
||||
"googletts-07bc3de1-493f0881-66a525bb-e5b48339-32f155fd.mp3",
|
||||
"googletts-07cc859a-83f9c80d-309e6d2a-d0de929d-255f638e.mp3",
|
||||
@ -115,7 +116,6 @@
|
||||
"googletts-0dd90f50-adead74b-5d94eca7-805d4fb7-6a6a6a69.mp3",
|
||||
"googletts-0e0791b0-bb279e3f-8417ac4a-9853b667-faacfb2a.mp3",
|
||||
"googletts-0e183e7c-747db56a-43a3f215-a51d085f-41daca8e.mp3",
|
||||
"googletts-0e4ae3dd-78e6851d-c82a8e86-0f04ffa4-af2884c9.mp3",
|
||||
"googletts-0e5e2077-b99103b0-9a48b2c8-7a32ab08-478b94ec.mp3",
|
||||
"googletts-0e63f64e-1bb91190-082a7eee-62879d5f-997f2edf.mp3",
|
||||
"googletts-0e98e473-5b6029b4-57f56186-24fe9333-5154054e.mp3",
|
||||
@ -126,9 +126,9 @@
|
||||
"googletts-1071d05f-bf19d65a-14399236-25f08c5b-638d2210.mp3",
|
||||
"googletts-1089fcbf-f340325a-989a5df0-e96d07b1-0fc9f8bd.mp3",
|
||||
"googletts-110cb9d9-58b5d8ba-aab9c542-19af50a0-e7395899.mp3",
|
||||
"googletts-113759d6-697a305f-0bf622c2-9cb3ae90-27f3a5f4.mp3",
|
||||
"googletts-11867015-817c5e39-6e4b23be-7d7e9eaf-9496a473.mp3",
|
||||
"googletts-11c9c139-e581ada6-432e896f-834ca699-41a6edb3.mp3",
|
||||
"googletts-11f8000a-be4335ba-a03ecb89-88cdd326-c2702e85.mp3",
|
||||
"googletts-12905c77-83377da0-27f76dc0-5848f733-1348a513.mp3",
|
||||
"googletts-1297e853-faee9b10-ea612930-113214d7-c8324b03.mp3",
|
||||
"googletts-12a6cf26-2dce86e2-afeef9f5-a3fe67e5-31438439.mp3",
|
||||
@ -383,7 +383,6 @@
|
||||
"googletts-49a2aa6d-e1118600-cdc8bd12-21e06c41-d8440b02.mp3",
|
||||
"googletts-49fe49fe-b3ac1fe6-35532a28-7ca62603-4fb9a5dc.mp3",
|
||||
"googletts-4a02f18c-5650aa07-80b0c3a4-b3a81a9d-bc63b9e3.mp3",
|
||||
"googletts-4a06b23e-c2648529-328fe5d9-56a0bffe-e18a2108.mp3",
|
||||
"googletts-4a0e27ae-cfc9ad6c-e501174c-d74242e7-26fffd80.mp3",
|
||||
"googletts-4a166858-a540efc1-51b26165-c180e0e6-c9621e7e.mp3",
|
||||
"googletts-4a279ce9-b7301707-e134ccf1-e27dd6c2-ec36bfc2.mp3",
|
||||
@ -450,6 +449,7 @@
|
||||
"googletts-57a27c61-208a63b1-fd608b59-a0146697-637a1e21.mp3",
|
||||
"googletts-57e4ee46-67a726ff-0cc04597-c572a12a-916f90a4.mp3",
|
||||
"googletts-584667d9-e78f2c9c-dc0f7355-c71a686e-812157d0.mp3",
|
||||
"googletts-589261fe-05dbf66e-ebd268d9-4bf64dd1-8f690bff.mp3",
|
||||
"googletts-58df8110-e71694ca-7fb1027e-89043c75-7f01f859.mp3",
|
||||
"googletts-5915e710-589b149d-8cfdfec1-18936a85-c01629b2.mp3",
|
||||
"googletts-59196a71-fe69ae48-5aeba9a9-11622d9e-197c10b1.mp3",
|
||||
@ -510,7 +510,6 @@
|
||||
"googletts-63f7a261-f5f1e31f-0c15a094-8e315ea7-e5aa887d.mp3",
|
||||
"googletts-64373730-b78027ef-d867ff08-b1acfa9a-610fdaf2.mp3",
|
||||
"googletts-644b3d7d-63e6a9d3-b7997fea-e6d18ac2-93889922.mp3",
|
||||
"googletts-6453a2cb-f1e7073b-7aa42b39-d39ff486-284d6f8a.mp3",
|
||||
"googletts-6492868f-2cb2ac83-d9e274c8-b8ae873c-ce85ef05.mp3",
|
||||
"googletts-6524425a-d18c3ba7-cb00cc75-fc11691c-0eb0b420.mp3",
|
||||
"googletts-65fbf256-7b490227-5a8496cd-d0993059-9e4b9b66.mp3",
|
||||
@ -570,6 +569,7 @@
|
||||
"googletts-71ffe19a-a187739b-6883b71b-9140e5af-1e9d3259.mp3",
|
||||
"googletts-722e3773-dd7ebc5e-9b830a45-69971e10-0f772e54.mp3",
|
||||
"googletts-7236861e-43b5c48e-be4e44e7-ec21e923-da51f95a.mp3",
|
||||
"googletts-72978219-a0e204a2-2fb033e5-1adac32c-6f8125ed.mp3",
|
||||
"googletts-72e87b7d-1403cb55-dc5e8cd1-67876087-3b017277.mp3",
|
||||
"googletts-72ffc682-ba109ee4-8fdd5a34-ec0e05c7-29d731b7.mp3",
|
||||
"googletts-7305023d-0c310ec0-596d4ed9-6e170845-025611e4.mp3",
|
||||
@ -689,7 +689,6 @@
|
||||
"googletts-8e0f7e84-88ad5dda-881f8b54-6e78eb3b-5d3f9afe.mp3",
|
||||
"googletts-8f7165a6-946b4d41-dacdbf9c-006d38b8-66663d5f.mp3",
|
||||
"googletts-8fa477da-1f92800e-f820770d-0d2f3a76-6a0453b8.mp3",
|
||||
"googletts-8ff4ae3f-4068040b-93bc9196-e2f6d472-0103167e.mp3",
|
||||
"googletts-900d5fff-4fb2645b-71ddf549-f798aa03-8c25ed58.mp3",
|
||||
"googletts-9016156d-445843db-35f29970-7590d634-f6d46f65.mp3",
|
||||
"googletts-9079355d-a3853236-678ae380-edadaa56-94012379.mp3",
|
||||
@ -734,6 +733,7 @@
|
||||
"googletts-9bf3acf9-a188fa4f-f6a8d521-c49f276c-50d0622a.mp3",
|
||||
"googletts-9bf54919-53ea9cdd-aa1cbfef-550eb5c1-c3358c62.mp3",
|
||||
"googletts-9bfc62ed-f1f8f1e1-51e98da7-d22abdeb-dee6ccd2.mp3",
|
||||
"googletts-9c1799e0-026f709d-e3284ae5-96b61900-e1a3a4ae.mp3",
|
||||
"googletts-9c23aa0c-0166ed74-b08fafeb-1d681e78-6ec48817.mp3",
|
||||
"googletts-9c763dd3-ac22d8c2-9c69ebf3-faf99ecd-b428cc80.mp3",
|
||||
"googletts-9c7bdfc6-7b32b217-1738e0c6-0621814e-bbdbed20.mp3",
|
||||
@ -923,6 +923,7 @@
|
||||
"googletts-c8c6e956-fc3667cc-586422af-b74ca12a-6c3443e8.mp3",
|
||||
"googletts-c945b8a5-1c35b578-d0daf4f5-7b390580-3495a342.mp3",
|
||||
"googletts-c94d3058-670a5b3f-bb988c26-40fb20f2-7cf932f9.mp3",
|
||||
"googletts-c95af626-dbe0c515-ef2d3852-d986ba48-114eb2cb.mp3",
|
||||
"googletts-c989b2c9-ab00c0ae-816859f4-8195feec-461abdcb.mp3",
|
||||
"googletts-c9b4adea-24bc4000-931706c1-3adafcc0-ead5470e.mp3",
|
||||
"googletts-c9dc6378-8d23fd6f-401db76e-c86264dc-7cf9a849.mp3",
|
||||
@ -1010,7 +1011,6 @@
|
||||
"googletts-de9253a7-ee2e3605-c5725ac7-7a4301a9-ba702a32.mp3",
|
||||
"googletts-de9e38fa-11b0a8c6-cb12e9bc-e85d3c9a-d5b6bbae.mp3",
|
||||
"googletts-deb8bab0-fcdf13df-59ac0e0c-3329c4a3-24c10f37.mp3",
|
||||
"googletts-df0340a0-5d54dcc3-5afc3a96-339f0a4d-1478f450.mp3",
|
||||
"googletts-df8174ab-ceab3413-c8426d5a-4f4b32d0-24a7fbc7.mp3",
|
||||
"googletts-e02b5f0d-56e9c067-ac45d069-eafb6d3d-f6b670b1.mp3",
|
||||
"googletts-e055a76e-c6c3b7ad-f05a526b-85206948-caa3c761.mp3",
|
||||
@ -1144,7 +1144,7 @@
|
||||
{
|
||||
"__type__": "NoteModel",
|
||||
"crowdanki_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
"css": "@font-face {\n font-family: 'IPAGothic';\n font-style: normal;\n font-weight: 400;\n src: url(_ipag.ttf) format('truetype');\n }\n:root{\n\t--highlight: #5E81AC;\n\t--least-important:#4C566A;\n\t--highlight2: #BF616A;\n\t--slight_highlight: #434C5E;\n\t--default: #2E3440;\n\t--hint: #5E81AC;\n\t--dark_hint:#B48EAD;\n\t--dark_default:#E5E9F0;\n\t--dark_highlight:#5E81AC;\n\t--dark_slight_highlight: #88C0D0;\n}\nbody {\nmargin: 0;\n}\n.chapter{\n\ttext-style:normal;\n\ttop:0;\n\ttext-decoration:none;\n\tpadding-right:10px;\n\tcolor:var(--least-important);\n\tfont-family: Helvetica,Arial,Verdana,sans-serif;\n\tfont-size: 20px;\n\ttext-align:right;\n\tfloat:right;\n\tpadding-top:10px;\n}\n.nightMode .chapter{\n\tcolor: var(--least-important);\n}\n.MeaningBack2{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--slight_highlight);\n\tfont-size: 40px;\n\tmargin-top: 7vh;\n\tpadding-left: 10px;\n\tfont-style: normal;\n}\n.nightMode .MeaningBack2{\n\tcolor:var(--dark_slight_highlight);\n}\n.container {\ndisplay: flex;\nflex-direction: column;\nheight: 97vh;\njustify-content: center;\nalign-items: stretch;\n}\n.card-content {\nflex: 1;\npadding: 20px;\npadding-top:0;\npadding-bottom:0;\n}\n.footer {\n\tmargin: 10px;\n\tmargin-bottom: 0px;\n\tmargin-top:0px;\n}\n.card {\n\tmargin-top: 0px;\n\theight: 100%;\n\tfont-family: Helvetica, \"IPAGothic\", Arial,Verdana,sans-serif;\n}\n.parent {\n white-space: nowrap;\n padding-top: 30vh;\n}\n.parentBack {\n white-space: nowrap;\n padding-top: 10vh;\n}\n#JapaneseFront{\n\tmargin-top:30vh;\n\tfont-size: 120px;\n \tfont-family: IPAGothic;\n\tcolor: var(--highlight);\n\theight:120px;\n}\n.nightMode #JapaneseFront{\n\tcolor: var(--dark_highlight);\n}\n#JapaneseBack{\n\tfont-size: 120px;\n \tfont-family: IPAGothic;\n\tcolor: var(--highlight);\n}\n.nightMode #JapaneseBack{\n\tcolor: var(--dark_highlight);\n}\n#no {\n\tcolor:var(--least-important);\n\tfont-family: Helvetica,Arial,Verdana,sans-serif;\n\tfont-size: 20px;\n\ttext-align:right;\n\tfloat:right;\n}\n.nightMode #no {\n\tcolor:var(--least-important);\n}\n.MeaningBack{\n\tmargin-top:15vh;\n\ttext-align:center;\n\tfont-size: 40px;\n \tfont-family: Helvetica;\n\tcolor: var(--highlight);\n}\n.nightMode .MeaningBack{\n\tcolor: var(--dark_highlight);\n}\n.MeaningFrontContainer{\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 80vh;\n\twidth:90vw;\n\tjustify-content:center;\n}\n.MeaningFront{\n \tfont-family: Helvetica;\n\tfont-size: 50px;\n\tcolor: var(--highlight);\n\ttext-align:left;\n\thyphens: auto;\n\tjustify-content: center;\n}\n.nightMode .MeaningFront{\n\tcolor: var(--dark_highlight);\n}\n.JapaneseBack{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--slight_highlight);\n\tfont-size: 40px;\n\tpadding-top: 10vh;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\n.nightMode .JapaneseBack{\n\tcolor: var(--dark_slight_highlight);\n}\n.ReadingBack{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--least-important);\n\tfont-size: 40px;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\n.nightMode .ReadingBack{\n\tcolor: var(--least-important);\n}\n.PartOfSpeechBack{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--least-important);\n\tfont-size: 30px;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\n.nightMode .PartOfSpeechBack{\n\tcolor: var(--least-important);\n}\n.card .TonBack{\n\tdisplay:none;\n\talign:center;\n\ttext-align:center;\n\tpadding-top:25px;\n\tpadding-bottom: 5px;\n}\n\n/* ANDROID SETTINGS */\n.android .container {\n\theight: 95vh; /*AnkiDroid seems to calculate vh with area below buttons*/\n}\n.android .card .nightMode {\n\tbackground-color:#000000;\n}\n.android .TonBack{\n\tdisplay: float;\n}",
|
||||
"css": "@font-face {\n font-family: 'IPAGothic';\n font-style: normal;\n font-weight: 400;\n src: url(_ipag.ttf) format('truetype');\n }\n:root{\n\t--highlight: #5E81AC;\n\t--least-important:#4C566A;\n\t--highlight2: #BF616A;\n\t--slight_highlight: #434C5E;\n\t--default: #2E3440;\n\t--hint: #5E81AC;\n\t--dark_hint:#B48EAD;\n\t--dark_default:#E5E9F0;\n\t--dark_highlight:#5E81AC;\n\t--dark_slight_highlight: #88C0D0;\n}\nbody {\nmargin: 0;\n}\n.chapter{\n\ttext-style:normal;\n\ttop:0;\n\ttext-decoration:none;\n\tpadding-right:10px;\n\tcolor:var(--least-important);\n\tfont-family: Helvetica,Arial,Verdana,sans-serif;\n\tfont-size: 20px;\n\ttext-align:right;\n\tfloat:right;\n\tpadding-top:10px;\n}\n.nightMode .chapter{\n\tcolor: var(--least-important);\n}\n.MeaningBack2{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--slight_highlight);\n\tfont-size: 40px;\n\tmargin-top: 7vh;\n\tpadding-left: 10px;\n\tfont-style: normal;\n}\n.nightMode .MeaningBack2{\n\tcolor:var(--dark_slight_highlight);\n}\n.container {\ndisplay: flex;\nflex-direction: column;\nheight: 97vh;\njustify-content: center;\nalign-items: stretch;\n}\n.card-content {\nflex: 1;\npadding: 20px;\npadding-top:0;\npadding-bottom:0;\n}\n.footer {\n\tmargin: 10px;\n\tmargin-bottom: 0px;\n\tmargin-top:0px;\n}\n.card {\n\tmargin-top: 0px;\n\theight: 100%;\n\tfont-family: Helvetica, \"IPAGothic\", Arial,Verdana,sans-serif;\n}\n.parent {\n white-space: nowrap;\n padding-top: 30vh;\n}\n.parentBack {\n white-space: nowrap;\n padding-top: 10vh;\n}\n#JapaneseFront{\n\tmargin-top:30vh;\n\tfont-size: 120px;\n \tfont-family: IPAGothic;\n\tcolor: var(--highlight);\n\theight:120px;\n}\n.nightMode #JapaneseFront{\n\tcolor: var(--dark_highlight);\n}\n#JapaneseBack{\n\tfont-size: 120px;\n \tfont-family: IPAGothic;\n\tcolor: var(--highlight);\n}\n\n#JapaneseBack rt{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--slight_highlight);\n\tfont-size: 50px;\n\tmargin-top: 7vh;\n\tpadding-left: 10px;\n\tfont-style: normal;\n}\n.nightMode #JapaneseBack{\n\tcolor: var(--dark_highlight);\n}\n#no {\n\tcolor:var(--least-important);\n\tfont-family: Helvetica,Arial,Verdana,sans-serif;\n\tfont-size: 20px;\n\ttext-align:right;\n\tfloat:right;\n}\n.nightMode #no {\n\tcolor:var(--least-important);\n}\n.MeaningBack{\n\tmargin-top:15vh;\n\ttext-align:center;\n\tfont-size: 40px;\n \tfont-family: Helvetica;\n\tcolor: var(--highlight);\n}\n.nightMode .MeaningBack{\n\tcolor: var(--dark_highlight);\n}\n.MeaningFrontContainer{\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 80vh;\n\twidth:90vw;\n\tjustify-content:center;\n}\n.MeaningFront{\n \tfont-family: Helvetica;\n\tfont-size: 50px;\n\tcolor: var(--highlight);\n\ttext-align:left;\n\thyphens: auto;\n\tjustify-content: center;\n}\n.nightMode .MeaningFront{\n\tcolor: var(--dark_highlight);\n}\n.JapaneseBack{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--slight_highlight);\n\tfont-size: 40px;\n\tpadding-top: 10vh;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\n.nightMode .JapaneseBack{\n\tcolor: var(--dark_slight_highlight);\n}\n.JapaneseBack rt{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--least-important);\n\tfont-size: 40px;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\nruby{\n\truby-position: under;\n}\n\n.nightMode .ReadingBack{\n\tcolor: var(--least-important);\n}\n.PartOfSpeechBack{\n\tfont-family: Helvetica, IPAGothic;\n\tcolor: var(--least-important);\n\tfont-size: 30px;\n\tfont-style: normal;\n\tmargin-bottom:auto;\n}\n.nightMode .PartOfSpeechBack{\n\tcolor: var(--least-important);\n}\n.card .TonBack{\n\tdisplay:none;\n\talign:center;\n\ttext-align:center;\n\tpadding-top:25px;\n\tpadding-bottom: 5px;\n}\n\n/* ANDROID SETTINGS */\n.android .container {\n\theight: 95vh; /*AnkiDroid seems to calculate vh with area below buttons*/\n}\n.android .card .nightMode {\n\tbackground-color:#000000;\n}\n.android .TonBack{\n\tdisplay: float;\n}",
|
||||
"flds": [
|
||||
{
|
||||
"font": "Liberation Sans",
|
||||
@ -1235,7 +1235,7 @@
|
||||
"tags": [],
|
||||
"tmpls": [
|
||||
{
|
||||
"afmt": "<div class=\"container\">\n\t<span class=chapter>{{chapter}}</span>\n\t<div class=\"card-content\">\n\t\t<div class=JapaneseBack>{{Japanese}}</div>\n\t\t<span class=ReadingBack>{{Reading}}</span>\n\t\t<div class=PartOfSpeechBack>{{part_of_speech}}</div>\n\n\t\t<div class=TonBack>{{sound}}</div>\n\t\t<div class=MeaningBack> {{Meaning}} </div>\n\t</div>\n\t<div class=\"footer\">\n\t\t<div id=\"no\">\n\t\t\t{{Index}}\n\t\t</div><!-- index-->\n\t</div><!-- footer -->\n</div><!-- container -->\n",
|
||||
"afmt": "<div class=\"container\">\n\t<span class=chapter>{{chapter}}</span>\n\t<div class=\"card-content\">\n\t\t<!--<div class=JapaneseBack>{{Japanese}}</div>-->\n\t\t<div class=JapaneseBack id=fill_composites_here></div>\n\t\t<!--<span class=ReadingBack>{{Reading}}</span>-->\n\t\t<div class=PartOfSpeechBack>{{part_of_speech}}</div>\n\n\t\t<div class=TonBack>{{sound}}</div>\n\t\t<div class=MeaningBack> {{Meaning}} </div>\n\t</div>\n\t<div class=\"footer\">\n\t\t<div id=\"no\">\n\t\t\t{{Index}}\n\t\t</div><!-- index-->\n\t</div><!-- footer -->\n</div><!-- container -->\n\n\n<html>\n\n</html>\n\n<script>\ngenerate_vocab();\n\nfunction generate_vocab(){\n\tlet japanese = \"{{Japanese}}\";\n\tlet readings = \"{{Reading}}\".split(\"・\");\n\tlet currentpos = 0;\n\tacc = '<ruby>';\n\tfor (let i = currentpos; i < readings.length; i++){\n\t\tlet j = readings[i].length;\n\t\tif(japanese.slice(currentpos, currentpos + j) == readings[i]){\n\t\t\t\tacc+= '<rb>' + japanese.slice(currentpos, currentpos + j) + '</rb><rt></rt>';\n\t\t\t\tcurrentpos+=j\n\t\t} else{\n\t\t\tacc+= '<rb>' + japanese[currentpos] + '</rb><rt>' + readings[i] + '</rt>';\n\t\t\tcurrentpos++;\n\t\t}\n\t};\n\t//if reading was for multiple kanjis, adjust reading to be displayed for the last kanjis combined\n\tif(japanese[currentpos]){\n\t\tpos=acc.lastIndexOf(\"</rb>\");\n\t\tacc = acc.slice(0, pos) + japanese.slice(currentpos, japanese.length) + acc.slice(pos, acc.length);\n\t}\n\n\tacc += '</ruby>';\n \tconsole.log(\"final acc:\", acc);\n\tdocument.getElementById('fill_composites_here').innerHTML= acc;\n};\n</script>\n\n",
|
||||
"bafmt": "",
|
||||
"bfont": "",
|
||||
"bqfmt": "",
|
||||
@ -1246,7 +1246,7 @@
|
||||
"qfmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n\n<div class=\"container\">\n<span class=chapter>{{chapter}}</span>\n<div class=\"card-content\">\n\t<div class=\"parent\" style=\"white-space:nowrap;\">\n\t\t<span href=\"#\" class=resize id=JapaneseFront>\n\t\t\t{{Japanese}}\n\t\t</span>\n\t</div>\n</div>\n\n<div class=\"footer\">\n\t<div id=\"no\">\n\t\t{{Index}}\n\t</div><!-- index-->\n</div><!-- footer -->\n\n</div><!-- container -->\n\n<script>\nresize();\n\nvar rtime;\nvar timeout = false;\nvar delta = 100;\n$(window).resize(function() {\n rtime = new Date();\n if (timeout === false) {\n timeout = true;\n setTimeout(resizeend, delta);\n }\n});\nfunction resizeend() {\n if (new Date() - rtime < delta) {\n setTimeout(resizeend, delta);\n } else {\n timeout = false; \n resize();\n } \n}\nfunction resize() { \n\t$('.resize').each(function(i, obj) {\n\t\t$(this).css('font-size', '8em');\n\n\t\twhile ($(this).width() > $(this).parent().width()) {\n\t\t\t$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + \"px\");\n\t\t}\n\t});\n}\n</script>"
|
||||
},
|
||||
{
|
||||
"afmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<div class=\"container\">\n\t<span class=chapter>{{chapter}}</span>\n\t<div class=\"card-content\">\n\t\t<div class=MeaningBack2>{{Meaning}}</div>\n\t\t<div class=TonBack>{{sound}}</div>\n\t\t<div class=\"parentBack\" style=\"white-space:nowrap;\">\n\t\t<span href=\"#\" class=resize id=JapaneseBack>\n\t\t\t{{Japanese}}\n\t\t</span>\n\t\t</div>\n\t\t<div class=ReadingBack> {{Reading}} </div>\n\t\t<div class=PartOfSpeechBack> {{part_of_speech}} </div>\n</div>\n\n\t<div class=\"footer\">\n\t\t<div id=\"no\">\n\t\t\t{{Index}}\n\t\t</div><!-- index-->\n\t</div><!-- footer -->\n</div><!-- container -->\n\n\n<script>\nresize();\n\nvar rtime;\nvar timeout = false;\nvar delta = 100;\n$(window).resize(function() {\n rtime = new Date();\n if (timeout === false) {\n timeout = true;\n setTimeout(resizeend, delta);\n }\n});\nfunction resizeend() {\n if (new Date() - rtime < delta) {\n setTimeout(resizeend, delta);\n } else {\n timeout = false; \n resize();\n } \n}\nfunction resize() { \n\t$('.resize').each(function(i, obj) {\n\t\t$(this).css('font-size', '8em');\n\n\t\twhile ($(this).width() > $(this).parent().width()) {\n\t\t\t$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + \"px\");\n\t\t}\n\t});\n}\n</script>",
|
||||
"afmt": "<script src=\"_jquery.min.js\" type=\"text/javascript\"></script>\n<div class=\"container\">\n\t<span class=chapter>{{chapter}}</span>\n\t<div class=\"card-content\">\n\t\t<div class=MeaningBack2>{{Meaning}}</div>\n\t\t<div class=TonBack>{{sound}}</div>\n\t\t<div class=\"parentBack\" style=\"white-space:nowrap;\">\n\t\t<span href=\"#\" class=resize id=JapaneseBack>\n\t\t</span>\n\t\t</div>\n\t\t<div class=PartOfSpeechBack> {{part_of_speech}} </div>\n</div>\n\n\t<div class=\"footer\">\n\t\t<div id=\"no\">\n\t\t\t{{Index}}\n\t\t</div><!-- index-->\n\t</div><!-- footer -->\n</div><!-- container -->\n\n\n<script>\ngenerate_vocab();\n\nfunction generate_vocab(){\n\tlet japanese = \"{{Japanese}}\";\n\tlet readings = \"{{Reading}}\".split(\"・\");\n\tlet currentpos = 0;\n\tacc = '<ruby>';\n\tfor (let i = currentpos; i < readings.length; i++){\n\t\tlet j = readings[i].length;\n\t\tif(japanese.slice(currentpos, currentpos + j) == readings[i]){\n\t\t\t\tacc+= '<rb>' + japanese.slice(currentpos, currentpos + j) + '</rb><rt></rt>';\n\t\t\t\tcurrentpos+=j\n\t\t} else{\n\t\t\tacc+= '<rb>' + japanese[currentpos] + '</rb><rt>' + readings[i] + '</rt>';\n\t\t\tcurrentpos++;\n\t\t}\n\t};\n\t//if reading was for multiple kanjis, adjust reading to be displayed for the last kanjis combined\n\tif(japanese[currentpos]){\n\t\tpos=acc.lastIndexOf(\"</rb>\");\n\t\tacc = acc.slice(0, pos) + japanese.slice(currentpos, japanese.length) + acc.slice(pos, acc.length);\n\t}\n\n\tacc += '</ruby>';\n \tconsole.log(\"final acc:\", acc);\n\tdocument.getElementById('JapaneseBack').innerHTML= acc;\n};\n</script>\n\n<script>\nresize();\n\nvar rtime;\nvar timeout = false;\nvar delta = 100;\n$(window).resize(function() {\n rtime = new Date();\n if (timeout === false) {\n timeout = true;\n setTimeout(resizeend, delta);\n }\n});\nfunction resizeend() {\n if (new Date() - rtime < delta) {\n setTimeout(resizeend, delta);\n } else {\n timeout = false; \n resize();\n } \n}\nfunction resize() { \n\t$('.resize').each(function(i, obj) {\n\t\t$(this).css('font-size', '8em');\n\n\t\twhile ($(this).width() > $(this).parent().width()) {\n\t\t\t$(this).css('font-size', (parseInt($(this).css('font-size')) - 1) + \"px\");\n\t\t}\n\t});\n}\n</script>\n\n",
|
||||
"bafmt": "",
|
||||
"bfont": "",
|
||||
"bqfmt": "",
|
||||
@ -8602,7 +8602,7 @@
|
||||
"fields": [
|
||||
"490",
|
||||
"~君",
|
||||
"~くん",
|
||||
"~・くん",
|
||||
"name suffix",
|
||||
"",
|
||||
"Using 「じゃん」 instead of 「じゃない」 to confirm",
|
||||
@ -8831,7 +8831,7 @@
|
||||
"guy (derogatory)",
|
||||
"",
|
||||
"Showing contempt for an action with 「~やがる」",
|
||||
"[sound:googletts-df0340a0-5d54dcc3-5afc3a96-339f0a4d-1478f450.mp3]"
|
||||
"[sound:googletts-c95af626-dbe0c515-ef2d3852-d986ba48-114eb2cb.mp3]"
|
||||
],
|
||||
"guid": "OIU|k2Ma>-",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
@ -9176,7 +9176,7 @@
|
||||
"above",
|
||||
"",
|
||||
"That’s a wrap!",
|
||||
"[sound:googletts-4a06b23e-c2648529-328fe5d9-56a0bffe-e18a2108.mp3]"
|
||||
"[sound:googletts-11f8000a-be4335ba-a03ecb89-88cdd326-c2702e85.mp3]"
|
||||
],
|
||||
"guid": "lz{Jj5%)c~",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
@ -9577,7 +9577,7 @@
|
||||
"fields": [
|
||||
"555",
|
||||
"~時間",
|
||||
"~じ・かん",
|
||||
"~・じ・かん",
|
||||
"counter for span of hour(s)",
|
||||
"",
|
||||
"Causative-Passive Forms",
|
||||
@ -9952,7 +9952,7 @@
|
||||
"fields": [
|
||||
"580",
|
||||
"~階",
|
||||
"~かい",
|
||||
"~・かい",
|
||||
"counter for story/floor",
|
||||
"",
|
||||
"Other substitutions",
|
||||
@ -10072,7 +10072,7 @@
|
||||
"fields": [
|
||||
"588",
|
||||
"~様",
|
||||
"~さま",
|
||||
"~・さま",
|
||||
"honorific name suffix",
|
||||
"",
|
||||
"Other substitutions",
|
||||
@ -10523,7 +10523,7 @@
|
||||
"618",
|
||||
"嫌",
|
||||
"いや",
|
||||
"嫌[いや](na-adj) disagreeable; unpleasant",
|
||||
"disagreeable; unpleasant",
|
||||
"na-adj",
|
||||
"Using 「しまう」 with other verbs",
|
||||
"[sound:googletts-e055a76e-c6c3b7ad-f05a526b-85206948-caa3c761.mp3]"
|
||||
@ -10628,7 +10628,7 @@
|
||||
"625",
|
||||
"お寿司",
|
||||
"お・す・し",
|
||||
"お寿司[おvすvし]- sushi",
|
||||
"sushi",
|
||||
"",
|
||||
"Using 「こと」 to say whether something has happened",
|
||||
"[sound:googletts-89e3b26e-c496de8d-80a9c471-38655a8b-30484500.mp3]"
|
||||
@ -10657,7 +10657,7 @@
|
||||
"fields": [
|
||||
"627",
|
||||
"~度",
|
||||
"~ど",
|
||||
"~・ど",
|
||||
"counter for number of times",
|
||||
"",
|
||||
"Using 「こと」 to say whether something has happened",
|
||||
@ -10732,7 +10732,7 @@
|
||||
"fields": [
|
||||
"632",
|
||||
"~回",
|
||||
"~かい",
|
||||
"~・かい",
|
||||
"counter for number of times",
|
||||
"",
|
||||
"Using 「かもしれない」 to express uncertainty",
|
||||
@ -11812,11 +11812,11 @@
|
||||
"fields": [
|
||||
"704",
|
||||
"~時",
|
||||
"~じ",
|
||||
"~・じ",
|
||||
"counter for hours",
|
||||
"",
|
||||
"Guessing at an outcome using 「~そう」",
|
||||
"[sound:googletts-113759d6-697a305f-0bf622c2-9cb3ae90-27f3a5f4.mp3]"
|
||||
"[sound:googletts-0778e66c-267f42f9-415f7844-6ecaa13d-1b7b5a9e.mp3]"
|
||||
],
|
||||
"guid": "4KLGMJ;<v",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
@ -13867,11 +13867,11 @@
|
||||
"fields": [
|
||||
"841",
|
||||
"~際",
|
||||
"~さい",
|
||||
"~・さい",
|
||||
"on the occasion of",
|
||||
"",
|
||||
"Sequential relative clauses in formal language",
|
||||
"[sound:googletts-8ff4ae3f-4068040b-93bc9196-e2f6d472-0103167e.mp3]"
|
||||
"[sound:googletts-72978219-a0e204a2-2fb033e5-1adac32c-6f8125ed.mp3]"
|
||||
],
|
||||
"guid": "yE5$u>!So4",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
@ -14827,7 +14827,7 @@
|
||||
"fields": [
|
||||
"905",
|
||||
"~ヶ月",
|
||||
"~か・げつ",
|
||||
"~・か・げつ",
|
||||
"counter for span of month(s)",
|
||||
"",
|
||||
"「おろか」It’s not even worth considering",
|
||||
@ -15292,11 +15292,11 @@
|
||||
"fields": [
|
||||
"936",
|
||||
"~方",
|
||||
"~かた",
|
||||
"~・かた",
|
||||
"way of doing ~",
|
||||
"",
|
||||
"Using 「めく」 to indicate an atmosphere of a state",
|
||||
"[sound:googletts-0e4ae3dd-78e6851d-c82a8e86-0f04ffa4-af2884c9.mp3]"
|
||||
"[sound:googletts-9c1799e0-026f709d-e3284ae5-96b61900-e1a3a4ae.mp3]"
|
||||
],
|
||||
"guid": "EAHV@Uc^d(",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
@ -16417,11 +16417,11 @@
|
||||
"fields": [
|
||||
"1011",
|
||||
"~年",
|
||||
"~ねん",
|
||||
"~・ねん",
|
||||
"counter for year",
|
||||
"",
|
||||
"Using 「であろう」 to express likelihood",
|
||||
"[sound:googletts-6453a2cb-f1e7073b-7aa42b39-d39ff486-284d6f8a.mp3]"
|
||||
"[sound:googletts-589261fe-05dbf66e-ebd268d9-4bf64dd1-8f690bff.mp3]"
|
||||
],
|
||||
"guid": "jrfk_=k(BM",
|
||||
"note_model_uuid": "7438e0a2-a6d2-11eb-a150-9cb6d013a4a3",
|
||||
|
BIN
media/_ipag.ttf
BIN
media/_ipag.ttf
Binary file not shown.
BIN
media/googletts-0778e66c-267f42f9-415f7844-6ecaa13d-1b7b5a9e.mp3
Normal file
BIN
media/googletts-0778e66c-267f42f9-415f7844-6ecaa13d-1b7b5a9e.mp3
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
media/googletts-11f8000a-be4335ba-a03ecb89-88cdd326-c2702e85.mp3
Normal file
BIN
media/googletts-11f8000a-be4335ba-a03ecb89-88cdd326-c2702e85.mp3
Normal file
Binary file not shown.
Binary file not shown.
BIN
media/googletts-589261fe-05dbf66e-ebd268d9-4bf64dd1-8f690bff.mp3
Normal file
BIN
media/googletts-589261fe-05dbf66e-ebd268d9-4bf64dd1-8f690bff.mp3
Normal file
Binary file not shown.
Binary file not shown.
BIN
media/googletts-72978219-a0e204a2-2fb033e5-1adac32c-6f8125ed.mp3
Normal file
BIN
media/googletts-72978219-a0e204a2-2fb033e5-1adac32c-6f8125ed.mp3
Normal file
Binary file not shown.
Binary file not shown.
BIN
media/googletts-9c1799e0-026f709d-e3284ae5-96b61900-e1a3a4ae.mp3
Normal file
BIN
media/googletts-9c1799e0-026f709d-e3284ae5-96b61900-e1a3a4ae.mp3
Normal file
Binary file not shown.
BIN
media/googletts-c95af626-dbe0c515-ef2d3852-d986ba48-114eb2cb.mp3
Normal file
BIN
media/googletts-c95af626-dbe0c515-ef2d3852-d986ba48-114eb2cb.mp3
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user