diff --git a/templates/Japanese fallback/Recognition/back.html b/templates/Japanese fallback/Recognition/back.html index 4e70039..5f87c4a 100644 --- a/templates/Japanese fallback/Recognition/back.html +++ b/templates/Japanese fallback/Recognition/back.html @@ -1,57 +1,63 @@ -
{{FrontSide}}
-
-
- {{morphHighlight:furigana:SentFurigana}} - {{^SentFurigana}}{{furigana:SentKanji}}{{/SentFurigana}} -
+
+
{{FrontSide}}
-{{#SentEng}} -
-
eng
-
- {{SentEng}} -
-
-{{/SentEng}} +
+
+ {{edit:furigana:SentFurigana}} + {{^SentFurigana}}{{edit:furigana:SentKanji}}{{/SentFurigana}} +
+ {{#SentEng}} +
{{hint:SentEng}}
+ {{/SentEng}} +
-
-{{VocabAudio}}{{SentAudio}} -{{VocabPitchPattern}}{{^VocabPitchPattern}}{{kana:VocabFurigana}}{{/VocabPitchPattern}} -{{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}}{{#VocabKanji}}【{{kanji:VocabKanji}}】{{/VocabKanji}} -
+
+ {{VocabAudio}}{{SentAudio}}{{VocabPitchPattern}} + {{^VocabPitchPattern}}{{text:kana:VocabFurigana}}{{/VocabPitchPattern}} + {{#VocabPitchNum}}{{VocabPitchNum}}{{/VocabPitchNum}} + {{#VocabKanji}}【{{text:kanji:VocabKanji}}】{{/VocabKanji}} +
-{{#VocabDef}} -
{{furigana:VocabDef}}
-{{/VocabDef}} + {{#VocabDef}} +
{{edit:furigana:VocabDef}}
+ {{/VocabDef}} + {{#Notes}} +
+
Notes
+
{{furigana:Notes}}
+
+ {{/Notes}} + {{#Image}} +
{{Image}}
+ {{/Image}} -{{#Image}}
{{Image}}
{{/Image}} +
-{{#Notes}} -
-
Notes
-
-
{{furigana:Notes}}
-
-
-{{/Notes}} - -
- - + +
\ No newline at end of file + 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(); +