Last active
August 10, 2017 15:36
-
-
Save DDoSolitary/20db2a518a00d212823723eef274a27d to your computer and use it in GitHub Desktop.
Normalize font settings for ass subtitle files
This file contains 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
#!/bin/bash | |
for i in *.ass; do | |
sed -i "s/\(\\\\fn@\?\)[^\}]*/\1$FONT/g" "$i" | |
sed -i "s/^\(Style: [^,]*,@\?\)[^,]*/\1$FONT/" "$i" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment