This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- tc2sc_sub.lua | |
| -- 快捷键: Ctrl+t | |
| -- 依赖: opencc (必须), ffmpeg (仅提取内封字幕时需要) | |
| local mp = require 'mp' | |
| local utils = require 'mp.utils' | |
| local msg = require 'mp.msg' | |
| -- OpenCC 配置文件,默认为繁转简 (Traditional to Simplified) | |
| local OPENCC_CONFIG = "t2s.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name OpenCC 繁简转换器 | |
| // @name:en OpenCC Chinese Converter | |
| // @namespace https://gist.github.com/Backsoon0/6d9ea3def62b61e5796f10efde6528d1 | |
| // @version 1.1 | |
| // @description 多向繁简转换工具:支持繁→简 / 简→繁 / 短语转换,可通过菜单随时切换,偏好自动保存。基于 opencc-js 1.3.1。 | |
| // @description:en Multi-directional Chinese converter: Traditional↔Simplified with phrase support. Switch modes via menu, preferences auto-saved. Powered by opencc-js 1.3.1. | |
| // @author Backsoon0 | |
| // @license MIT | |
| // @match *://*/* |