diff --git a/README.md b/README.md index 5254bf6e6a39334737cc5e536dcdc3e2dcb1723d..6cef2e47b1d66cdf6b456151376db7320e4ccc40 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,7 @@ heart what's the planet number of Mars (4th). * `Credits`: Give credit to your source here #### Note types -* `Forward`: asks for _B_, given _A_ -* `Backward`: asks for _A_, given _B_ +* `Bijection`: asks for _B_, given _A_; asks for _A_, given _B_ #### Example ``` @@ -148,20 +147,14 @@ radicals. * `Audioaufnahme`: Unused * `Radikal finden anlegen`: If non-empty, add a card for recognizing the radical of the simplified character * `Radikal finden (繁體字) anlegen`: If non-empty, add a card for recognizing the radical of the traditional character -* `Schreiben anlegen`: If non-empty, add a card for writing the simplified character down +* `Schreiben (简体字) anlegen`: If non-empty, add a card for writing the simplified character down * `Zhuyin`: Unused * `Lesen (繁體字) anlegen`: If non-empty, add a card for reading the traditional character down * `Credits`: Give credit to your source here +* `Schreiben (繁體字) anlegen`: If non-empty, add a card for writing the simplified character down #### Note types -* `hear` -* `identify_radical` -* `identify_radical_traditional` -* `read_hanzi` -* `read_hanzi_traditional` -* `read_pinyin` -* `speak` -* `write` +* `Vokabeln` #### Example TODO \ No newline at end of file diff --git a/package.json b/package.json index d16de447c089f202f98426a365337269c7abad28..2bd35f38546ecea66c3d68854fc1fff5a6c1ba02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kartenaale-card-templates", - "version": "2.0.0", + "version": "3.0.0", "description": "HTML and data for Anki cards", "repository": "https://gitlab.phaidra.org/kartenaale/card-templates", "author": "Philipp Stadler <hello@phstadler.com>", diff --git a/src/templates/molaoshi/.template-spec.yaml b/src/templates/molaoshi/.template-spec.yaml index 3530da756a7ef3eeee041d72706f865b313eed00..bea2a308817fc1b2520bb38990d9d724357d0738 100644 --- a/src/templates/molaoshi/.template-spec.yaml +++ b/src/templates/molaoshi/.template-spec.yaml @@ -1,4 +1,4 @@ -template_version: 2024-07-20 10:00:00+00:00 +template_version: 2024-07-22 10:00:00+00:00 note_type: id: 2024-02-20 12:00:00+00:00 @@ -19,10 +19,11 @@ note_type: - Audioaufnahme - Radikal finden anlegen - Radikal finden (繁體字) anlegen - - Schreiben anlegen + - Schreiben (简体字) anlegen - Zhuyin - Lesen (繁體字) anlegen - Credits + - Schreiben (繁體字) anlegen card_types: - name: Hören @@ -33,7 +34,7 @@ card_types: template: read_hanzi - name: Lesen (繁體字) template: read_hanzi_traditional -- name: Schreiben +- name: Schreiben (简体字) template: write - name: Sprechen template: speak @@ -41,6 +42,8 @@ card_types: template: identify_radical - name: Radikal finden (繁體字) template: identify_radical_traditional +- name: Schreiben (繁體字) + template: write_traditional resource_paths: - '{{BUILD_PREFIX}}hanzi-data' diff --git a/src/templates/molaoshi/write/front.html b/src/templates/molaoshi/write/front.html index ed82b423a4db16d8ea4255cba9428a23ddca0da7..f58b50727815471bec5c23aef3eb3825309466ae 100644 --- a/src/templates/molaoshi/write/front.html +++ b/src/templates/molaoshi/write/front.html @@ -1,4 +1,4 @@ -{{#Deutsch}}{{#Schreiben anlegen}} +{{#Deutsch}}{{#Schreiben (简体字) anlegen}} <style> @import url(../../../components/global.css); </style> @@ -31,4 +31,4 @@ <script type="module"> import '../../../components/front' </script> -{{/Schreiben anlegen}}{{/Deutsch}} \ No newline at end of file +{{/Schreiben (简体字) anlegen}}{{/Deutsch}} \ No newline at end of file diff --git a/src/templates/molaoshi/write_traditional/back.html b/src/templates/molaoshi/write_traditional/back.html new file mode 100644 index 0000000000000000000000000000000000000000..adcbcd20a64566ed1d287bfc8cc4b08151614d50 --- /dev/null +++ b/src/templates/molaoshi/write_traditional/back.html @@ -0,0 +1,89 @@ +<div class="front-side-on-back"> + {{FrontSide}} +</div> + +<hr id="answer"> + +<div class="exercise back anki-template-hanyu-write-back"> + <dl class="translations"> + <dt>繁體字</dt> + <dd> + <span class="hanzi-print">{{繁體字}}</span> + <div class="strichfolge-animation is-traditional" highlight-radical="true"> + {{text:繁體字}} + </div> + </dd> + <dt>Pīnyīn</dt> + <dd>{{Pīnyīn}}</dd> + {{#Standardaussprache}} + <dt class="t2s-player-heading">汉语</dt> + <dd id="t2s-player-container" class="t2s-player-container"> + <div class="anki-droid-player"> + <tts style="display: none" service="android" voice="zh_CN"> + {{text:Standardaussprache}} + </tts> + </div> + <div class="anki-web-player"> + {{text:Standardaussprache}} + </div> + <div class="anki-builtin-player"> + {{tts zh_CN:Standardaussprache}} + </div> + </dd> + {{/Standardaussprache}} + <dt>Aufnahme</dt> + <dd>{{Audioaufnahme}}</dd> + <dt>Bemerkungen</dt> + <dd>{{Bemerkungen}}</dd> + <dt>Beispiele</dt> + <dd>{{Beispiele}}</dd> + <details class="answer-details"> + <summary> + <span class="answer-details-more">Mehr…</span> + <span class="answer-details-less">Weniger…</span> + </summary> + {{#简体字}} + <dt>简体字</dt> + <dd> + <span class="hanzi-print">{{简体字}}</span> + <div class="strichfolge-animation" highlight-radical="true"> + {{text:简体字}} + </div> + </dd> + {{/简体字}} + <dt>Radikal (繁體字)</dt> + <dd> + <span hanzi-data="{{text:繁體字}}" hanzi-kind="traditional" hanzi-prop="radical" class="hanzi-print"></span> + <div class="strichfolge-animation is-traditional" no-animate="true"> + <span hanzi-data="{{text:繁體字}}" hanzi-kind="traditional" hanzi-prop="radical"></span> + </div> + </dd> + {{#简体字}} + <dt>Radikal (简体字)</dt> + <dd> + <span hanzi-data="{{text:简体字}}" hanzi-prop="radical" class="hanzi-print"></span> + <div class="strichfolge-animation" no-animate="true"> + <span hanzi-data="{{text:简体字}}" hanzi-prop="radical"></span> + </div> + </dd> + {{/简体字}} + </details> + </dl> + + <details class="answer-details"> + <summary> + <span class="answer-details-more">Über das Pack…</span> + <span class="answer-details-less">Info verbergen…</span> + </summary> + + {{Credits}} + <div notice-file="KA_TEMPLATES_NOTICE"></div> + </details> +</div> + +<script type="module"> + import '../../../components/debug' +</script> +<script type="module"> + import '../../../components/back' +</script> \ No newline at end of file diff --git a/src/templates/molaoshi/write_traditional/front.html b/src/templates/molaoshi/write_traditional/front.html new file mode 100644 index 0000000000000000000000000000000000000000..91da9759cfe42eb6fa96e39a0bbde5c5febe7083 --- /dev/null +++ b/src/templates/molaoshi/write_traditional/front.html @@ -0,0 +1,34 @@ +{{#Deutsch}}{{#Schreiben (繁體字) anlegen}}{{#繁體字}} +<style> + @import url(../../../components/global.css); +</style> + +<div class="exercise front anki-template-hanyu-write-front"> + <header class="card-info"> + <aside class="exercise-category"> + {{Subdeck}} + </aside> + <aside class="exercise-kind"> + {{Card}} + </aside> + </header> + </header> + + <dl class="prompt translations"> + <dt>Deutsch</dt> + <dd>{{Deutsch}}</dd> + <dt>Bemerkungen</dt> + <dd>{{Bemerkungen (Vorderseite)}}</dd> + </dl> +</div> + +<!-- Suppress default speech output and do that from script instead --> +<tts style="display: none" service="android" voice="zh_CN"></tts> + +<script type="module"> + import '../../../components/debug' +</script> +<script type="module"> + import '../../../components/front' +</script> +{{/繁體字}}{{/Schreiben (繁體字) anlegen}}{{/Deutsch}} \ No newline at end of file