diff --git a/templates/Japanese fallback/README.md b/templates/Japanese fallback/README.md new file mode 100644 index 0000000..cf44316 --- /dev/null +++ b/templates/Japanese fallback/README.md @@ -0,0 +1,90 @@ +# Japanese fallback + +This card template was brought to you by フェリペ. It is based on [Japanese sentences](https://github.com/Ajatt-Tools/AnkiNoteTypes/tree/main/templates/Japanese%20sentences#japanese-sentences) and on card [template provided by a DJT user](https://tatsumoto-ren.github.io/blog/discussing-various-card-templates.html#fallback-cards). + +![gif](gif1-example.gif) + +Fallback cards (FBCs) are similar to SWCs and TSCs at first: you’ve got the target word on the front of the card and whatever you need to understand it on the back, an example sentence and pitch accent information -- if you make cards using [Mpvacious](https://github.com/Ajatt-Tools/mpvacious), you’ve also got the audio of the example sentence and an image. (That looks like SWCs, right?) When you hover over the target word a sentence appears, giving you the context in which you found the target word. +FBCs allow you do the following: +* Have a backup when you go like, “what the hell am I looking at?!” (hence its [name](https://www.oxfordlearnersdictionaries.com/definition/english/fallback?q=fallback)) +* Forget about context-dependent memories but still benefit from TSCs, since you’re testing yourself on the target word and still have the benefits that [TSCs can provide](https://tatsumoto-ren.github.io/blog/discussing-various-card-templates.html#targeted-sentence-cards-or-mpvacious-cards) on the back; +* Be flexible. A word becomes easier as you get familiar with it -- by seeing it on your immersion or on Anki. At first you can use the hover feature to review the card as a TSC, and later as a SWC when you’re already familiar with the word and don’t need a backup plan anymore. + +## Converting TSCs into FBCs (and vice versa) + +It’s easy to convert your Mpvacious, TSC, cards into FBCs. Select the cards you want to convert, > Change note type > select “Fallback card” and make sure that each field is matching with each other. +![gif](gif2-notecon.gif) + +## Footer + +![image](image1.png) + +I’ve changed the original footers of Japanese sentences to match my needs. “Ichi.moe” is better than Jisho to parse sentences, in my opinion. “Images” puts the target word on Google JP, rather than the whole sentence. “Sentences” searchs the target word on Sentence Search, giving you more example sentences (tip: you can you can mine cards from that site). +Here’s the original footer of Japanese sentences: +``` + +``` +![image](image2.png) + +## Included card types + +### 1: Recognition + +This card type tests your reading comprehension. +On the front side, there is a target word, when you hover over it, an example sentence appears. +On the back there's the sentence you found your target word. On the back you can put the definitions and pronunciations of the target word, as well as pictures and sentence audio -- I use Mpvacious and Yomichan to create cards from anime, so all that work is done for me. +The note type also contains a separate field for Japanese pitch accent pattern. +I use [this Anki add-on](https://ankiweb.net/shared/info/1225470483) to generate pitch accents. + +### 2: Production + +This card type is designed to teach you how to write the target word. +To make a production card select the desired note in the Anki Browser +and fill the MakeProductionCard field with any text you like. +The target word on the new card is replaced with its kana reading, +and your goal is to write it in kanji. +The back of the card includes a stroke order diagram for the target word. + +For further explanation, see [Writing Japanese guide](https://tatsumoto-ren.github.io/blog/writing-japanese.html). + +## Yomichan settings + +![screenshot](yomichan_anki_settings.webp) + +Adding `{cloze-prefix}{cloze-body}{cloze-suffix}` to the settings +lets you automatically highlight the target word. + +## Japanese Support settings + +To configure the [Japanese support](https://ankiweb.net/shared/info/3918629684) add-on, +open Anki and go to Tools > Add-ons > Japanese Support > Config. +My config looks like this: + +``` +{ + "dstFields": [ + "SentFurigana", + "VocabFurigana" + ], + "furiganaSuffix": " (furigana)", + "noteTypes": [ + "japanese", + "subs2srs" + ], + "skipNumbers": false, + "srcFields": [ + "SentKanji", + "VocabKanji" + ] +} +``` + +Make sure to apply these settings to be able to generate furigana when using this Note Type. + +It’s good to try new things out, so give it a try. You might like it. \ No newline at end of file diff --git a/templates/Japanese fallback/gif1-example.gif b/templates/Japanese fallback/gif1-example.gif new file mode 100644 index 0000000..b1c5209 Binary files /dev/null and b/templates/Japanese fallback/gif1-example.gif differ diff --git a/templates/Japanese fallback/gif2-notecon.gif b/templates/Japanese fallback/gif2-notecon.gif new file mode 100644 index 0000000..d8aad47 Binary files /dev/null and b/templates/Japanese fallback/gif2-notecon.gif differ diff --git a/templates/Japanese fallback/image1.png b/templates/Japanese fallback/image1.png new file mode 100644 index 0000000..65fa4e3 Binary files /dev/null and b/templates/Japanese fallback/image1.png differ diff --git a/templates/Japanese fallback/image2.png b/templates/Japanese fallback/image2.png new file mode 100644 index 0000000..954a408 Binary files /dev/null and b/templates/Japanese fallback/image2.png differ diff --git a/templates/Japanese fallback/template.json b/templates/Japanese fallback/template.json new file mode 100644 index 0000000..bac5686 --- /dev/null +++ b/templates/Japanese fallback/template.json @@ -0,0 +1,32 @@ +{ + "modelName": "Japanese fallback", + "inOrderFields": [ + "SentKanji", + "SentFurigana", + "SentEng", + "SentAudio", + "MorphManFocus", + "VocabKanji", + "VocabFurigana", + "VocabPitchPattern", + "VocabPitchNum", + "VocabDef", + "VocabAudio", + "Image", + "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.jpsentence b { color: grey; }\n\n/* links */\na { color: gray; }\na:hover { color: #722a2a ; }\na.hint { text-decoration: none; text-align: left; 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/* Fallback config */\n\n/*\n#flip[data-line]::after {\n position:absolute;\n font-size: 50%; \n content: \"\u21f5\";\n}\n*/\n\n#flip[data-line=\"\"]::after {\n content: \"\";\n}\n \n#flip[data-line]:hover span, .hover[data-line] span {\n display:none;\n}\n \n#flip[data-line=\"\"]:hover span, .hover[data-line=\"\"] span {\n display:block;\n}\n \n#flip:hover::before, .hover::before {\n content: attr(data-line);\n}\n\n/* Fallback sentence */\n.fallback { font-size: 45px; }\n.fallback { text-align: center; }\n.fallback:hover { text-align: left; }\n\n/* Fallback config */", + "cardTemplates": [ + { + "Name": "Recognition", + "Front": "\n
\n\t{{#MorphManFocus}}\n\t\t
{{MorphManFocus}}
\n\t{{/MorphManFocus}}\n\t{{#Tags}}\n\t\t
{{Tags}}
\n\t{{/Tags}}\n
\n\n
{{furigana:VocabKanji}}
\n \n\n\n\n\n
\n\t
{{VocabPitchNum}}
\n\t
{{kana:VocabFurigana}}
\n
\n\n", + "Back": "
{{FrontSide}}
\n
\n
\n\t{{morphHighlight:furigana:SentFurigana}}\n\t{{^SentFurigana}}{{furigana:SentKanji}}{{/SentFurigana}}\n
\n\n{{#SentEng}}\n
\n
eng
\n\t
\n\t\t{{SentEng}}\n
\n
\n{{/SentEng}}\n\n
\n{{VocabAudio}}{{SentAudio}}\n{{VocabPitchPattern}}{{^VocabPitchPattern}}{{kana:VocabFurigana}}{{/VocabPitchPattern}}\n{{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}}{{#VocabKanji}}\u3010{{kanji:VocabKanji}}\u3011{{/VocabKanji}}\n
\n\n{{#VocabDef}}\t\n
{{furigana:VocabDef}}
\n{{/VocabDef}}\n\n{{#Image}}
{{Image}}
{{/Image}}\n\n{{#Notes}}\n
\n
Notes
\n
\n\t
{{furigana:Notes}}
\n
\n
\n{{/Notes}}\n\n
\n\n