mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: caff0abfc8a3200f276415e93cb7fad15ae4cc09
Parent: 285419d729838e31f92b96711ac8ce00fb284c9a
Author: Ren Tatsumoto
Date:   Fri, 29 Jan 2021 20:25:50 +0300

add example config

Diffstat:
A.github/RELEASE/subs2srs.conf | 89+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
MREADME.md | 95+++----------------------------------------------------------------------------
2 files changed, 92 insertions(+), 92 deletions(-)

diff --git a/.github/RELEASE/subs2srs.conf b/.github/RELEASE/subs2srs.conf @@ -0,0 +1,89 @@ +#################### +# General settings # +#################### + +# The deck will be created if it doesn't exist. Subdecks are supported. +deck_name=Bank::subs2srs + +# Model names are listed in `Tools -> Manage note types` menu in Anki. +model_name=Japanese sentences + +# Field names as they appear in the selected note type. +sentence_field=SentKanji +audio_field=SentAudio +image_field=Image + +# The tag that is added to new notes. +# Leave nothing after `=` to disable tagging completely. +note_tag=subs2srs +#note_tag= + +# Size of the font used in the menu +menu_font_size=24 + +############################################## +# Togglebles. Possble values: `yes` or `no`. # +############################################## + +# When mpv starts, automatically copy subs to the clipboard as they appear on screen. +# This option can be also toggled in the addon's OSD menu. +autoclip=no + +# Remove all spaces from the subtitle text. +# Only makes sense for languages without spaces like Japanese. +nuke_spaces=yes + +# if set to `yes`, the volume of the outputted audio file +# depends on the volume of the player at the time of export +tie_volumes=no + +# Remove text in parentheses that may interfere with Yomichan +# before copying subtitles to the clipboard +clipboard_trim_enabled=yes + +################## +# Image settings # +################## + +# Snapshot format. +snapshot_format=webp +#snapshot_format=jpg + +# Quality of produced image files. 0 = lowest, 100=highest. +snapshot_quality=15 + +# Image dimensions +# If either (but not both) of the width or height parameters is -2, +# the value will be calculated preserving the aspect-ratio. +snapshot_width=-2 +snapshot_height=200 + +################## +# Audio settings # +################## + +# Audio format. +audio_format=opus +#audio_format=mp3 + +# Sane values are 16k-32k for opus, 64k-128k for mp3. +audio_bitrate=18k + +# Set a pad to the dialog timings. 0.5 = half a second +audio_padding=0.0 +#audio_padding=0.5 + +####################################### +# Forvo support (Yomichan users only) # +####################################### + +# yes - fetch audio from Forvo if Yomichan couldn't find the audio (default) +# always - always fetch audio from Forvo and replace the audio added by Yomichan +# no - never use Forvo +use_forvo=yes + +# Vocab field should be equal to {expression} field in Yomichan +vocab_field=VocabKanji + +# Vocab Audio field should be equal to {audio} field in Yomichan +vocab_audio_field=VocabAudio diff --git a/README.md b/README.md @@ -157,98 +157,9 @@ If a parameter is not specified in the config file, the default value will be used. mpv doesn't tolerate spaces before and after `=`. -Example configuration file: -``` -#################### -# General settings # -#################### - -# The deck will be created if it doesn't exist. Subdecks are supported. -deck_name=Bank::subs2srs - -# Model names are listed in `Tools -> Manage note types` menu in Anki. -model_name=Japanese sentences - -# Field names as they appear in the selected note type. -sentence_field=SentKanji -audio_field=SentAudio -image_field=Image - -# The tag that is added to new notes. -# Leave nothing after `=` to disable tagging completely. -note_tag=subs2srs -#note_tag= - -# Size of the font used in the menu -menu_font_size=24 - -############################################## -# Togglebles. Possble values: `yes` or `no`. # -############################################## - -# When mpv starts, automatically copy subs to the clipboard as they appear on screen. -# This option can be also toggled in the addon's OSD menu. -autoclip=no - -# Remove all spaces from the subtitle text. -# Only makes sense for languages without spaces like Japanese. -nuke_spaces=yes - -# if set to `yes`, the volume of the outputted audio file -# depends on the volume of the player at the time of export -tie_volumes=no - -# Remove text in parentheses that may interfere with Yomichan -# before copying subtitles to the clipboard -clipboard_trim_enabled=yes - -################## -# Image settings # -################## - -# Snapshot format. -snapshot_format=webp -#snapshot_format=jpg - -# Quality of produced image files. 0 = lowest, 100=highest. -snapshot_quality=15 - -# Image dimensions -# If either (but not both) of the width or height parameters is -2, -# the value will be calculated preserving the aspect-ratio. -snapshot_width=-2 -snapshot_height=200 - -################## -# Audio settings # -################## - -# Audio format. -audio_format=opus -#audio_format=mp3 - -# Sane values are 16k-32k for opus, 64k-128k for mp3. -audio_bitrate=18k - -# Set a pad to the dialog timings. 0.5 = half a second -audio_padding=0.0 -#audio_padding=0.5 - -####################################### -# Forvo support (Yomichan users only) # -####################################### - -# yes - fetch audio from Forvo if Yomichan couldn't find the audio (default) -# always - always fetch audio from Forvo and replace the audio added by Yomichan -# no - never use Forvo -use_forvo=yes - -# Vocab field should be equal to {expression} field in Yomichan -vocab_field=VocabKanji - -# Vocab Audio field should be equal to {audio} field in Yomichan -vocab_audio_field=VocabAudio -``` +<p align="center"> + <a href="https://github.com/Ajatt-Tools/mpvacious/blob/master/.github/RELEASE/subs2srs.conf">Example configuration file</a> +</p> Sentence field should be first in the note type settings. Otherwise Anki won't allow mpvacious to add new notes.