summaryrefslogtreecommitdiff
path: root/config/mpv/scripts/subs2srsa/howto/goldendict.md
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-04-05 02:59:37 +0200
committernavewindre <boneyaard@gmail.com>2025-04-05 02:59:37 +0200
commitb24463f3d045783b8f4e72926054d53b908e150f (patch)
tree036f976e217128b9e4acf3854f72908c27dec17b /config/mpv/scripts/subs2srsa/howto/goldendict.md
parent398e41be4daf339bd55862520c528a7d93b83fb6 (diff)
a
Diffstat (limited to 'config/mpv/scripts/subs2srsa/howto/goldendict.md')
-rw-r--r--config/mpv/scripts/subs2srsa/howto/goldendict.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/config/mpv/scripts/subs2srsa/howto/goldendict.md b/config/mpv/scripts/subs2srsa/howto/goldendict.md
new file mode 100644
index 0000000..7f355c6
--- /dev/null
+++ b/config/mpv/scripts/subs2srsa/howto/goldendict.md
@@ -0,0 +1,45 @@
+# Modifying cards added with GoldenDict
+
+You can add a card first using GoldenDict,
+and then append an audio clip and a picture to it.
+
+**Note:** the only version of GoldenDict that can create Anki cards with configurable fields is
+[xiaoyifang's goldendict](https://github.com/xiaoyifang/goldendict-ng).
+Read [Setting up GoldenDict](https://tatsumoto-ren.github.io/blog/setting-up-goldendict.html) and
+[How to connect with Anki](https://github.com/xiaoyifang/goldendict-ng/blob/staged/website/docs/topic_anki.md)
+if you are new to GoldenDict.
+
+To send subtitles from `mpv` directly to GoldenDict,
+append the following line to `subs2srs.conf`:
+
+```
+autoclip_method=goldendict
+```
+
+**Note:** If `goldendict` is not in the PATH,
+you have to [add it to the PATH](https://wiki.archlinux.org/title/Environment_variables#Per_user).
+
+1) Press <kbd>a</kbd> to open `advanced menu`.
+2) Press <kbd>t</kbd> to toggle the `autoclip` option.
+
+Now as subtitles appear on the screen,
+they will be immediately sent to GoldenDict instead of the system clipboard.
+
+1) Open GoldenDict.
+2) Play a video in `mpv`.
+3) When you find an unknown word,
+ select the definition text,
+ right-click and select "send word to anki" to make a card,
+ or press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>N</kbd>.
+4) Go back to mpv and add an image and an audio clip
+ to the card you've just made by pressing <kbd>m</kbd> while the `advanced menu` is open.
+ Pressing <kbd>Shift+m</kbd> will overwrite any existing data in media fields.
+
+https://github.com/Ajatt-Tools/mpvacious/assets/69171671/0fc02d24-d320-4d2c-b7a9-cb478e9f0067
+
+Don't forget to set the right timings and join lines together
+if the sentence is split between multiple subs.
+To do it, enter interactive selection by pressing <kbd>c</kbd>
+and seek to the next or previous subtitle.
+
+To pair Mecab and GoldenDict, install [gd-tools](https://github.com/Ajatt-Tools/gd-tools).