From 2c5b2594d81427a20677b58435e4eccdf9264dad Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sat, 27 Nov 2021 14:20:36 +0300 Subject: [PATCH] update japanese sentences --- templates/Japanese sentences/template.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/Japanese sentences/template.json b/templates/Japanese sentences/template.json index 2378245..88f25a8 100644 --- a/templates/Japanese sentences/template.json +++ b/templates/Japanese sentences/template.json @@ -16,17 +16,17 @@ "Notes", "MakeProductionCard" ], - "css": "@charset \"utf-8\";\n@font-face {\n\tfont-family: \"KanjiStrokeOrders\";\n\tsrc:\n\t\tlocal(\"KanjiStrokeOrders\"),\n\t\turl(\"_kso.ttf\");\n}\n@font-face {\n\tfont-family: \"Yu Mincho\";\n\tsrc:\n\t\tlocal(\"Yu Mincho\"),\n\t\tlocal(\"\u6e38\u660e\u671d\"),\n\t\turl(\"_yumin.ttf\");\n}\n@font-face {\n\tfont-family: \"Yu Mincho\";\n\tsrc:\n\t\tlocal(\"Yu Mincho Demibold\"),\n\t\tlocal(\"\u6e38\u660e\u671d Demibold\"),\n\t\turl(\"_yumindb.ttf\");\n\tfont-weight: 600;\n}\n\n* { box-sizing: border-box; padding: 0; margin: 0; }\n.card {\n\tbackground-color: #FFFAF0;\n\tcolor: #2A1B0A;\n\tfont-family:\t\"Noto Serif\",\n\t\t\t\t\t\t\t\t\t\"Noto Serif CJK JP\",\n\t\t\t\t\t\t\t\t\tYu Mincho,\n\t\t\t\t\t\t\t\t\t\"Liberation Serif\",\n\t\t\t\t\t\t\t\t\t\"Times New Roman\",\n\t\t\t\t\t\t\t\t\tTimes,\n\t\t\t\t\t\t\t\t\tGeorgia,\n\t\t\t\t\t\t\t\t\tSerif;\n\tfont-size: 24px;\n\ttext-align: left;\n\tline-height: 1.4;\n\tmax-width: 800px;\n\tmargin: 0 auto;\n}\n.card1 { }\n.card2 .jpsentence ruby rt { opacity: 0; }\n.card2 .jpsentence:hover ruby rt { opacity: 1; }\n\nhr { margin: 2px 0; clear: both; }\nb { font-weight: 600; }\n\n/* links */\na { color: #532f2f; }\na:hover { color: #722a2a ; }\na.hint { text-decoration: none; text-align: center; display: block; }\n\n/* Hide furigana on front */\nnokana ruby rt { opacity:0.0; font-size:0; display: none; }\nnotext b { background-color: black; color:transparent; }\n\n/* Top */\nheader { font-size: 14px; line-height: 18px; clear: both; }\nheader > div:not(:last-child) { margin-right: 3px; }\n\n/* Space between elements */\n.images { margin-top: 16px; }\n.images > img { margin-bottom: 16px; }\n\n/* Japanese sentence */\n.jpsentence { font-size: 35px; }\n\n.tags {\n\tfont-family: \"Noto Sans\", \"Noto Sans CJK JP\", \"Liberation Sans\", Arial, Sans, sans-serif;\n\ttext-align: center;\n\tdisplay: inline-block;\n\ttext-transform: lowercase;\n\tbackground-color: #333;\n\tcolor: #FFFAF0;\n\tfont-weight: bold;\n\tpadding: 1px 3px;\n\tmargin: 0;\n\tcursor: pointer;\n\tborder-radius: 3px;\n\tfont-size: 12px;\n\tline-height: 14px;\n}\n\n/* AnkiDroid peplay button */\n.replaybutton { margin: 0; margin-right: 3px; text-decoration: none; }\n.replaybutton span { padding: 0; font-size: 16px; }\n.replaybutton span svg {\n\tfill: #FFFAF0;\n\tbackground: #333;\n\tborder-radius: 3px;\n\tvertical-align: top; \n\tmin-width: 16px;\n\tmin-height: 16px;\n}\n\n/* PC peplay button */\na.replay-button { top: -.125em; position: relative; }\na.replay-button svg {\n\theight: 1em;\n\twidth: 1em;\n}\na.replay-button svg path { fill: #FFFAF0; }\na.replay-button svg circle { fill: #333; }\n\n/* Footer and links */\nfooter {font-size: 16px; text-align: center; }\nfooter>a { text-decoration: none; }\nfooter > a:after {content:\"\u00b7\"; color: brown; display: inline-block; width: 6px; }\nfooter > a:last-child:after {content:\"\"; width: 0; }\n\n/* Vocab */\n.vocab { margin-top: 16px; }\n.vocab div { display: inline-block; }\n.vocab br { display: none; }\n.vocab > .tags { vertical-align: top; }\n.notes > .tags { vertical-align: bottom; }\n\n/* Images */\n.images {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tflex-direction: row;\n\talign-items: flex-start;\n\talign-content: space-between;\n\tjustify-content: space-evenly;\n}\n.images > img {\n\tmax-width: 47%;\n\tborder-radius: 4px;\n\tfilter: sepia(33%);\n}\n.images>img:only-child {\n max-width: 100%;\n}\n\n/* Production cards */\n.production b { visibility: hidden; }\n.strokeorder {\n\ttext-align: center;\n\tfont-size: 150px;\n\tfont-family: KanjiStrokeOrders;\n}\n\n/* Morphman coloring */\n.fside .jpsentence:hover [mtype=unknown] { background-color: #ffff99; }\n.fside .jpsentence:hover [mtype=seen] { background-color: #ffd1b3; }\n.fside .jpsentence:hover [mtype=known] { background-color: #b3e6cc; }\n.fside .jpsentence:hover [mtype=mature] { background-color: transparent; }\n.fside .jpsentence:hover [priority=true] { }\n.fside .jpsentence:hover [frequency=true] { }\n\ndel.MorphManHide, del.morphmanhide {display:none;}\n\n/* Fix for Yomichan defs */\nul, ol {\n list-style-type: none; \n display: inline;\n margin: 0px;\n padding: 0px;\n}\n/* Fix for Yomichan pitch accents */\n.vocab ol > li { display: inline; }\n.vocab ol > li:after { content: \"\u30fb\"; }\n.vocab ol > li:last-child:after { content: \"\"; }\n\n/* Night Mode */\n.nightMode .jpsentence b { color: gray; }\n.nightMode .tags { background-color: #f0f0f0; color: #333;}\n.nightMode a.replay-button svg path { fill: #2F2F31; }\n.nightMode a.replay-button svg circle { fill: white; }\n.nightMode .replaybutton span svg {fill: #2F2F31;\tbackground: white;}\n.nightMode.card { color: #f0f0f0}\n.nightMode a { color: #ccc; }\n.nightMode a:hover { color: #eee; }\n.nightMode .jpsentence b { color: gray; }\n.nightMode footer > a:after { color: white; }", + "css": "@charset \"utf-8\";\n\n@font-face {\n font-family: \"KanjiStrokeOrders\";\n src: local(\"KanjiStrokeOrders\"), url(\"_kso.ttf\");\n}\n\n@font-face {\n font-family: \"Yu Mincho\";\n src: local(\"Yu Mincho\"), local(\"\u6e38\u660e\u671d\"), url(\"_yumin.ttf\");\n}\n\n@font-face {\n font-family: \"Yu Mincho\";\n src: local(\"Yu Mincho Demibold\"), local(\"\u6e38\u660e\u671d Demibold\"), url(\"_yumindb.ttf\");\n font-weight: 600;\n}\n\n* {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.card {\n background-color: #fffaf0;\n color: #2a1b0a;\n font-family: \"Noto Serif\", \"Noto Serif CJK JP\", Yu Mincho, \"Liberation Serif\", \"Times New Roman\", Times, Georgia,\n Serif;\n font-size: 24px;\n text-align: left;\n line-height: 1.4;\n margin: 0 auto;\n}\n\n.card1 {\n color: inherit;\n}\n\n.card2 .jpsentence ruby rt {\n opacity: 0;\n}\n\n@media screen and (min-width: 820px) {\n .card {\n background-color: #E5D7C9;\n display: flex;\n justify-content: center;\n }\n .wrap {\n width: 800px;\n padding: 0 5px 0;\n background-color: #fffaf0;\n border-left: 1px solid #c9bcbc;\n border-right: 1px solid #c9bcbc;\n min-height: 100vh;\n }\n .wrap .wrap {\n width: auto;\n padding: 0;\n min-height: 0;\n border: 0;\n }\n}\n\n.card2 .jpsentence:hover ruby rt {\n opacity: 1;\n}\n\nhr {\n margin: 2px 0;\n clear: both;\n border: 0;\n border-top: 1px solid #c9bcbc;\n}\n\nb {\n font-weight: 600;\n}\n\n/* links */\na {\n color: #532f2f;\n}\n\na:hover {\n color: #722a2a;\n}\n\na.hint {\n text-decoration: none;\n text-align: center;\n display: block;\n}\n\n/* Hide furigana on front */\nnokana ruby rt {\n opacity: 0;\n font-size: 0;\n display: none;\n}\n\nnotext b {\n background-color: black;\n color: transparent;\n}\n\n/* Top */\nheader {\n display: flex;\n clear: both;\n}\n\nheader .tags {\n border-radius: 0px 0px 3px 3px;\n}\n\nheader > div:not(:last-child) {\n margin-right: 3px;\n}\n\n/* Space between elements */\n.images {\n margin-top: 16px;\n}\n\n.images > img {\n margin-bottom: 16px;\n}\n\n/* Japanese sentence */\n\n.jpsentence {\n display: flex;\n justify-content: center;\n font-size: 35px;\n}\n.fside .jpsentence { display: none; }\n\n.tags {\n font-family: \"Noto Sans\", \"Noto Sans CJK JP\", \"Liberation Sans\", Arial, Sans, sans-serif;\n text-align: center;\n display: inline-block;\n text-transform: lowercase;\n background-color: #333;\n color: #fffaf0;\n font-weight: bold;\n padding: 1px 3px;\n margin: 0;\n cursor: pointer;\n border-radius: 3px;\n font-size: 12px;\n line-height: 14px;\n}\n\n/* AnkiDroid replay button */\n.replaybutton {\n margin: 0;\n margin-right: 3px;\n text-decoration: none;\n}\n\n.replaybutton span {\n padding: 0;\n font-size: 16px;\n}\n\n.replaybutton span svg {\n fill: #fffaf0;\n background: #333;\n border-radius: 3px;\n vertical-align: top;\n min-width: 16px;\n min-height: 16px;\n}\n\n/* PC replay button */\na.replay-button {\n top: -0.125em;\n position: relative;\n margin: 0;\n}\n\na.replay-button svg {\n height: 1em;\n width: 1em;\n}\n\na.replay-button svg path {\n fill: #fffaf0;\n}\n\na.replay-button svg circle {\n fill: #333;\n}\n\n/* Footer and links */\nfooter {\n font-size: 16px;\n text-align: center;\n}\n\nfooter > a {\n text-decoration: none;\n}\n\nfooter > a:after {\n content: \"\u00b7\";\n color: brown;\n display: inline-block;\n width: 6px;\n}\n\nfooter > a:last-child:after {\n content: \"\";\n width: 0;\n}\n\n/* Vocab */\n.vocab {\n margin-top: 16px;\n}\n\n.vocab div {\n display: inline-block;\n}\n\n.vocab br {\n display: none;\n}\n\n.vocab > .tags {\n vertical-align: top;\n}\n\n.notes > .tags {\n vertical-align: bottom;\n}\n\n/* Images */\n.images {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n align-items: flex-start;\n align-content: space-between;\n justify-content: space-evenly;\n}\n\n.images > img {\n max-width: 47%;\n border-radius: 4px;\n filter: sepia(33%);\n}\n\n.images > img:only-child {\n max-width: 100%;\n}\n\n/* Production cards */\n.production b {\n visibility: hidden;\n}\n\n.strokeorder {\n text-align: center;\n font-size: 150px;\n font-family: KanjiStrokeOrders;\n}\n\n/* Morphman coloring */\n.fside .jpsentence:hover [mtype=\"unknown\"] {\n background-color: #ffff99;\n}\n\n.fside .jpsentence:hover [mtype=\"seen\"] {\n background-color: #ffd1b3;\n}\n\n.fside .jpsentence:hover [mtype=\"known\"] {\n background-color: #b3e6cc;\n}\n\n.fside .jpsentence:hover [mtype=\"mature\"] {\n background-color: transparent;\n}\n\n.fside .jpsentence:hover [priority=\"true\"] {\n color: inherit;\n}\n\n.fside .jpsentence:hover [frequency=\"true\"] {\n color: inherit;\n}\n\ndel.MorphManHide,\ndel.morphmanhide {\n display: none;\n}\n\n/* Fix for Yomichan defs */\nul,\nol {\n list-style-type: none;\n display: inline;\n margin: 0px;\n padding: 0px;\n}\n\n/* Fix for Yomichan pitch accents */\n.vocab ol > li {\n display: inline;\n}\n\n.vocab ol > li:after {\n content: \"\u30fb\";\n}\n\n.vocab ol > li:last-child:after {\n content: \"\";\n}\n\n/* Night Mode */\n.nightMode .jpsentence b {\n color: gray;\n}\n\n.nightMode .tags {\n background-color: #f0f0f0;\n color: #333;\n}\n\n.nightMode a.replay-button svg path {\n fill: #2f2f31;\n}\n\n.nightMode a.replay-button svg circle {\n fill: white;\n}\n\n.nightMode .replaybutton span svg {\n fill: #2f2f31;\n background: white;\n}\n\n.nightMode.card {\n color: #f0f0f0;\n}\n\n.nightMode a {\n color: #ccc;\n}\n\n.nightMode a:hover {\n color: #eee;\n}\n\n.nightMode .jpsentence b {\n color: gray;\n}\n\n.nightMode footer > a:after {\n color: white;\n}\n", "cardTemplates": [ { "Name": "Recognition", - "Front": "\n\n
\n\t{{#MorphManFocus}}\n\t\t
{{MorphManFocus}}
\n\t{{/MorphManFocus}}\n\t{{#Tags}}\n\t\t
{{Tags}}
\n\t{{/Tags}}\n
\n\n
\n\t{{morphHighlight:furigana:SentKanji}}\n\t{{^SentKanji}}\n\t\t{{kanji:SentFurigana}}\n\t{{/SentKanji}}\n
\n\n
\n\t
{{VocabPitchNum}}
\n\t
{{kana:VocabFurigana}}
\n
\n\n", - "Back": "
{{FrontSide}}
\n
\n
\n\t{{edit:furigana:SentFurigana}}\n\t{{^SentFurigana}}{{furigana:SentKanji}}{{/SentFurigana}}\n
\n\n{{#SentEng}}\n\t
\n\t\t{{hint:SentEng}}\n\t
\n{{/SentEng}}\n\n
\n{{VocabAudio}}{{SentAudio}}\n{{VocabPitchPattern}}{{^VocabPitchPattern}}{{kana:VocabFurigana}}{{/VocabPitchPattern}}\n{{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}}{{#VocabKanji}}\u3010{{VocabKanji}}\u3011{{/VocabKanji}}\n
\n\n{{#VocabDef}}\t\n
{{edit:furigana:VocabDef}}
\n{{/VocabDef}}\n\n{{#Notes}}\t\n
\n\t
Notes
\n\t
{{furigana:Notes}}
\n
\n{{/Notes}}\n\n{{#Image}}
{{Image}}
{{/Image}}\n\n
\n\n