What would be the best way to remove/replace a list of special characters from titles when saving to disk/sending to device? I'd like to make sure certain characters like colons and commas aren't included and I don't like that Calibre defaults to replacing colons with an underscore. I'm not a coder so I'm kind of fumbling my way through this.
So far I've stumbled through some posts and the documentation to get the following to replace colons with nothing, but I'm not sure how to make it do the same for additional characters
Code:
{title: re(":","")}
By some miracle, I've come up with the following to do the above AND limit the file name length, so if the solution could be incorporated into this, that'd be even better.
Code:
{title:'sublist(re($, ":", ""), 0, 8, " ")'}
If there is a different way I should be doing this, let me know.