My clipboard inserter isn’t hooking text from subs, and I’m not sure why. It might have to do with a file location issue with my Anki collection media path, or the script being installed wrongly.
I have my collection path set to “local prefix = utils.join\_path(os.getenv(‘HOME’), \[\[Library/Application Support/Anki2/User 1/collection.media\]\])”
And my script is installed at /Users/<user>/.config/mpv/scripts/animecards\_v35.lua
1 comment
As long as the script is running your collection path shouldn’t have any effect on clipboard interaction. A few things to check in case you haven’t already:
– Is the issue with the script or the texthooker page? When a line should have been copied, can you paste it manually?
– Is your Anki profile called “User 1”?
– Are your subs really text and not images (like DVD or Blu-ray subs)?
—
If all else fails, let me shamelessly plug [my own card creation mpv script](https://github.com/Ben-Kerman/immersive). It uses a slightly different method for copying to clipboard, so maybe that could solve your issue
Configuration is probably a bit more difficult than for Anacreon’s script (though just testing clipboard interactions doesn’t require any), but it gives you more flexibility with your workflow (most notably supporting dictionaries and lookups directly in mpv)