aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--anki-card-temlate/.gitignore2
-rw-r--r--anki-card-temlate/back-template.m4 (renamed from back-template.m4)0
-rw-r--r--anki-card-temlate/card.css (renamed from card/card.css)0
-rw-r--r--anki-card-temlate/card.html (renamed from card/card.html)0
-rw-r--r--anki-card-temlate/card.js (renamed from card/card.js)0
-rw-r--r--anki-card-temlate/front-template.m4 (renamed from front-template.m4)0
-rw-r--r--anki-card-temlate/makefile (renamed from makefile)4
-rw-r--r--anki-card-temlate/readme.md70
-rw-r--r--readme.md71
-rw-r--r--yomichan/custom.css22
11 files changed, 100 insertions, 71 deletions
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 3145967..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-*.html
-*.min.*
diff --git a/anki-card-temlate/.gitignore b/anki-card-temlate/.gitignore
new file mode 100644
index 0000000..7bfb9f9
--- /dev/null
+++ b/anki-card-temlate/.gitignore
@@ -0,0 +1,2 @@
+*-template.html
+*.min.*
diff --git a/back-template.m4 b/anki-card-temlate/back-template.m4
index 1a0607d..1a0607d 100644
--- a/back-template.m4
+++ b/anki-card-temlate/back-template.m4
diff --git a/card/card.css b/anki-card-temlate/card.css
index 8c2b0d0..8c2b0d0 100644
--- a/card/card.css
+++ b/anki-card-temlate/card.css
diff --git a/card/card.html b/anki-card-temlate/card.html
index 71ca300..71ca300 100644
--- a/card/card.html
+++ b/anki-card-temlate/card.html
diff --git a/card/card.js b/anki-card-temlate/card.js
index 0509c3e..0509c3e 100644
--- a/card/card.js
+++ b/anki-card-temlate/card.js
diff --git a/front-template.m4 b/anki-card-temlate/front-template.m4
index bb1fdb9..bb1fdb9 100644
--- a/front-template.m4
+++ b/anki-card-temlate/front-template.m4
diff --git a/makefile b/anki-card-temlate/makefile
index cef3be7..8b715d3 100644
--- a/makefile
+++ b/anki-card-temlate/makefile
@@ -2,10 +2,10 @@ all: back-template.html front-template.html
.PRECIOUS: card.min.js
-card.min.js: card/card.js
+card.min.js: card.js
sed 's/\/\/.*$$//g' $< | tr '\n' ' ' | sed 's/\t//g' | sed 's/ */ /g' > $@
-card.min.css: card/card.css
+card.min.css: card.css
cat $< | tr '\n' ' ' | sed 's/\t//g' | sed 's/ */ /g' > $@
%.html: %.m4
diff --git a/anki-card-temlate/readme.md b/anki-card-temlate/readme.md
new file mode 100644
index 0000000..9de275d
--- /dev/null
+++ b/anki-card-temlate/readme.md
@@ -0,0 +1,70 @@
+# anki sentence mining template
+
+work in progress
+
+this is an anki card template for sentence mining. it has fields for a foreign
+sentence, foreign word, translated word and an optional translated sentence. it
+supports a markdown-like [syntax](#syntax) for adding furigana that is visible
+on either both sides or only on the back side.
+
+## example
+
+### input
+
+|Field|Value|
+|-|-|
+|Complete sentence|`[家](うち)の{主}(あるじ)を*なめるなよ*…`|
+|Target word reading|`舐める【なめる】`|
+|Target word translation|`To underestimate`|
+|Complete sentence translation|`Don't underestimate the master of the house...`|
+
+### front
+
+<div class="card front" align="center" style="border: solid 2px gray; padding: 10px;">
+<span class="sentence parsed">家の<ruby>主<rt class="visible">あるじ</rt></ruby>を<b>なめるなよ</b>…</span>
+</div>
+
+### back
+
+<div class="card back" align="center" style="border: solid 2px gray; padding: 10px;">
+<span class="sentence parsed"><ruby>家<rt class="hidden">うち</rt></ruby>の<ruby>主<rt class="visible">あるじ</rt></ruby>を<b>なめるなよ</b>…</span>
+<hr class="split">
+<span class="target-word-reading">舐める【なめる】</span><br>
+<span class="target-word-translation">To underestimate</span><br>
+<span class="sentence-translation">Don't underestimate the master of the house...</span>
+</div>
+
+## syntax
+
+html is passed through, so inline styling (should) still work.
+
+|input|html output|example|
+|-|-|-|
+|`[kanji](furigana)`|`<ruby>kanji<rt>furigana</rt></ruby>`<br>(furigana visible on back side only)|<ruby>kanji<rt>furigana</rt></ruby>|
+|`{kanji}(furigana)`|`<ruby>kanji<rt>furigana</rt></ruby>`<br>(furigana visible on both sides)|<ruby>kanji<rt>furigana</rt></ruby>|
+|`*text*`|`<b>text</b>` (bold)|<b>text</b>|
+|`a\nb`|`a<br>b` (line break)|a<br>b|
+|`\\`|`\` (backslash)|\\|
+|`\[escaped](this)`|`[escaped](this)` (escaped furigana)|\[escaped](this)|
+
+## set-up
+
+i don't know how to create a teplate deck (if that's even a thing), so these
+are instructions to apply to an empty deck.
+
+1. run `make` to generate files
+2. Under Tools > Manage note types > (note type here) > Fields, make sure the
+ following fields exist (might be case-sensitive):
+ | |name|description|
+ |-|----|-----------|
+ |1|Complete sentence|Complete sentence with furigana and target word in bold|
+ |2|Target word reading|Dictionary reading of word (with word type)|
+ |3|Target word translation|(In context) translation of target word|
+ |4|Complete sentence translation|Complete sentence translation|
+3. In the 'Browse' view, click on Cards... (you might need to create a
+ temporary card in a deck) and paste the contents of front-template.html and
+ back-template.html in the front template and back template of the card type.
+ Make sure the Styling tab doesn't contain any code as this will override the
+ built-in styles.
+4. Profit
+
diff --git a/readme.md b/readme.md
index 9de275d..ef78a39 100644
--- a/readme.md
+++ b/readme.md
@@ -1,70 +1,7 @@
-# anki sentence mining template
+# refold tools
-work in progress
+this is a repo with language learning stuff:
-this is an anki card template for sentence mining. it has fields for a foreign
-sentence, foreign word, translated word and an optional translated sentence. it
-supports a markdown-like [syntax](#syntax) for adding furigana that is visible
-on either both sides or only on the back side.
-
-## example
-
-### input
-
-|Field|Value|
-|-|-|
-|Complete sentence|`[家](うち)の{主}(あるじ)を*なめるなよ*…`|
-|Target word reading|`舐める【なめる】`|
-|Target word translation|`To underestimate`|
-|Complete sentence translation|`Don't underestimate the master of the house...`|
-
-### front
-
-<div class="card front" align="center" style="border: solid 2px gray; padding: 10px;">
-<span class="sentence parsed">家の<ruby>主<rt class="visible">あるじ</rt></ruby>を<b>なめるなよ</b>…</span>
-</div>
-
-### back
-
-<div class="card back" align="center" style="border: solid 2px gray; padding: 10px;">
-<span class="sentence parsed"><ruby>家<rt class="hidden">うち</rt></ruby>の<ruby>主<rt class="visible">あるじ</rt></ruby>を<b>なめるなよ</b>…</span>
-<hr class="split">
-<span class="target-word-reading">舐める【なめる】</span><br>
-<span class="target-word-translation">To underestimate</span><br>
-<span class="sentence-translation">Don't underestimate the master of the house...</span>
-</div>
-
-## syntax
-
-html is passed through, so inline styling (should) still work.
-
-|input|html output|example|
-|-|-|-|
-|`[kanji](furigana)`|`<ruby>kanji<rt>furigana</rt></ruby>`<br>(furigana visible on back side only)|<ruby>kanji<rt>furigana</rt></ruby>|
-|`{kanji}(furigana)`|`<ruby>kanji<rt>furigana</rt></ruby>`<br>(furigana visible on both sides)|<ruby>kanji<rt>furigana</rt></ruby>|
-|`*text*`|`<b>text</b>` (bold)|<b>text</b>|
-|`a\nb`|`a<br>b` (line break)|a<br>b|
-|`\\`|`\` (backslash)|\\|
-|`\[escaped](this)`|`[escaped](this)` (escaped furigana)|\[escaped](this)|
-
-## set-up
-
-i don't know how to create a teplate deck (if that's even a thing), so these
-are instructions to apply to an empty deck.
-
-1. run `make` to generate files
-2. Under Tools > Manage note types > (note type here) > Fields, make sure the
- following fields exist (might be case-sensitive):
- | |name|description|
- |-|----|-----------|
- |1|Complete sentence|Complete sentence with furigana and target word in bold|
- |2|Target word reading|Dictionary reading of word (with word type)|
- |3|Target word translation|(In context) translation of target word|
- |4|Complete sentence translation|Complete sentence translation|
-3. In the 'Browse' view, click on Cards... (you might need to create a
- temporary card in a deck) and paste the contents of front-template.html and
- back-template.html in the front template and back template of the card type.
- Make sure the Styling tab doesn't contain any code as this will override the
- built-in styles.
-4. Profit
+- [anki sentence mining card template](anki-card-temlate)
+- [yomichan theme](yomichan)
diff --git a/yomichan/custom.css b/yomichan/custom.css
new file mode 100644
index 0000000..6c132ab
--- /dev/null
+++ b/yomichan/custom.css
@@ -0,0 +1,22 @@
+.search-header { margin-top: 12px; }
+.search-options { display: none; }
+#content-body { background-color: #000000; }
+.tag .tag-label { background-color: unset; }
+.tag {
+ border: 2px solid var(--tag-color);
+ border-radius: 6px;
+}
+.frequency-group-tag { border: none !important; }
+.tag .tag-body::before { display: none; }
+.frequency-value {
+ color: var(--tag-color);
+ font-weight: bold;
+}
+.search-textbox-container {
+ border-radius: 6px;
+ overflow: hidden;
+}
+@media (hover: none) {
+ .entry .actions .action-button { padding: 16px; }
+ .search-header .search-button { width: 48px; }
+}