Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mp3tag action: Title case and text corection
- --------------------------------------------
- [#0]
- T=4
- F=_ALL
- 1=.*(https|www).*
- 2=
- 3=0
- [#1]
- T=4
- F=_ALL
- 1=(%20|_| | )
- 2=
- 3=0
- [#2]
- T=4
- F=_DIRECTORY
- 1=(%20|_| | )
- 2=
- 3=0
- [#3]
- T=2
- F=_ALL
- 1=\u2019
- 2='
- 3=0|0
- [#4]
- T=2
- F=_DIRECTORY
- 1=\u2019
- 2='
- 3=0|0
- [#5]
- T=4
- ! Uppercase for 1st letter after specified characters =
- F=_TAG
- 1=([-({ _.+\\x{201c}"])(\\l)(?# for tags)
- 2=$1$upper($2)
- 3=1
- [#6]
- T=4
- ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
- F=_TAG
- 1=(?<!&|:|;|-|/|!|\\.|\\?|\\+)(\\s+\\b(A|After|Along|An|And|As|At|Below|But|By|Down|For|From|In|Into|Nor|Of|Off|On|Onto|Or|Out|Over|So|Than|The|Till|To|Under|Until|Up|Upon|W|With)\\b)
- 2=$lower($1)
- 3=1
- [#7]
- T=4
- ! Common Latinisms to lowercase =
- F=_TAG
- 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
- 2=$lower($1)
- 3=1
- [#8]
- T=4
- ! Force uppercase for named acronyms and some common Roman numerals =
- F=_TAG
- 1=\\b(Abc|Aho|Aka|Asv|Bbc|BD|Cbs|Cd|Dvd|Fr|Gb|Gi|Ii|Iii|Irs|Iv|Ix|LP|Mgm|Moa|Nbc|Nbcr|Npr|Ny|Nyc|Obc|Ok|Oop|Obc|Ost|Otr|Rca|Rpm|Tv|Uk|Usa|Uso|Va|Vi|Vii|Viii|Wbur|Wor|Xx)\\b
- 2=$upper($1)
- 3=0
- [#14]
- [#9]
- T=4
- ! Correct common Scottish names =
- F=_TAG
- 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
- 2=$1$caps2($2,-)
- 3=1
- [#10]
- T=4
- ! Correct bad capitalization within contractions (source text error) =
- F=_TAG
- 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
- 2=$1$lower($2)
- 3=0
- [#11]
- T=4
- ! Title case for first word =
- F=_TAG
- 1=^(\\l)(?# 1st letter)
- 2=$upper($1)
- 3=1
- [#12]
- T=4
- ! Title case for last word, even when it is a named article or preposition =
- F=_TAG
- 1=\\b(\\w*)\\s*[.!?]?\\s*?$(?# last word, regardless of trailing spaces or punctuation)
- 2=$caps2($1)
- 3=0
- [#13]
- T=4
- ! Uppercase for 1st letter after specified characters =
- F=_FILENAME
- 1=([-({ _.+])(\\l)(?# lowercase letter follows word boundary)
- 2=$1$upper($2)
- 3=1
- [#14]
- T=4
- ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
- F=_FILENAME
- 1=(?<!&|;|-|!|\\.|\\+)(\\s+\\b(A|After|Along|An|And|As|At|Below|But|By|Down|For|From|In|Into|Nor|Of|Off|On|Onto|Or|Out|Over|Than|The|Till|To|Under|Until|Up|Upon|W|With)\\b)
- 2=$lower($1)
- 3=1
- [#15]
- T=4
- ! Title case for words after all types of single quote marks =
- F=_FILENAME
- 1=(\\s(\\x{2027}|\\x{2018}|\\x{2019})\\l)(?# a space and a single quote)
- 2=$upper($1)
- 3=1
- [#16]
- T=4
- ! Force common Latinisms to lowercase =
- F=_FILENAME
- 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
- 2=$lower($1)
- 3=1
- [#17]
- T=4
- ! Force uppercase for named abbreviations, acronyms, and a few Roman numerals =
- F=_FILENAME
- 1=\\b(Abc|Aho|Aka|Asv|Bbc|Cbs|Cd|Dvd|Fr|Gb|Gi|Ii|Iii|Irs|Iv|Ix|LP|Mgm|Moa|Nbc|Nbcr|Npr|Ny|Nyc|Obc|Ok|Obc|Oop|Ost|Otr|Rca|Rpm|Tv|Uk|Usa|Uso|Va|Vi|Vii|Viii|Wbur|Wor|Xx)\\b(?# abbreviations, acronyms, a few Roman numerals)
- 2=$upper($1)
- 3=0
- [#18]
- T=4
- ! Correct common Scottish names =
- F=_FILENAME
- 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
- 2=$1$caps2($2,-)
- 3=1
- [#19]
- T=4
- ! Correct bad capitalization within contractions (source text error) =
- F=_FILENAME
- 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
- 2=$1$lower($2)
- 3=1
- [#20]
- T=4
- ! Title case for first word =
- F=_FILENAME
- 1=^(\\l)(?# 1st letter of file name)
- 2=$upper($1)
- 3=1
- [#21]
- T=4
- ! Title case for last word prior to the file extension =
- F=_FILENAME
- 1=(\\s[a-z]+)(\\.\\w{2,5})$(?# $1 is last word before file extension)
- 2=$caps2($1)$2
- 3=0
- [#22]
- T=4
- ! Uppercase for 1st letter after dash =
- F=_DIRECTORY
- 1=-(\\s)
- 2=-$upper($1)
- 3=0
- [#23]
- T=4
- ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
- F=_DIRECTORY
- 1=(?<!&|;|-|!|\\.|\\+)(\\s+\\b(A|After|Along|An|And|As|At|Below|But|By|Down|For|From|In|Into|Nor|Of|Off|On|Onto|Or|Out|Over|Than|The|Till|To|Under|Until|Up|Upon|W|With)\\b)
- 2=$lower($1)
- 3=1
- [#24]
- T=4
- ! Title case for words after all types of single quote marks =
- F=_DIRECTORY
- 1=(\\s(\\x{2027}|\\x{2018}|\\x{2019})\\l)(?# a space and a single quote)
- 2=$upper($1)
- 3=1
- [#25]
- T=4
- ! Force common Latinisms to lowercase =
- F=_DIRECTORY
- 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
- 2=$lower($1)
- 3=1
- [#26]
- T=4
- ! Force uppercase for named abbreviations, acronyms, and a few Roman numerals =
- F=_DIRECTORY
- 1=\\b(Abc|Aho|Aka|Asv|Bbc|Cbs|Cd|Dvd|Fr|Gb|Gi|Ii|Iii|Irs|Iv|Ix|LP|Mgm|Moa|Nbc|Nbcr|Npr|Ny|Nyc|Obc|Ok|Obc|Oop|Ost|Otr|Rca|Rpm|Tv|Uk|Usa|Uso|Va|Vi|Vii|Viii|Wbur|Wor|Xx)\\b(?# abbreviations, acronyms, a few Roman numerals)
- 2=$upper($1)
- 3=0
- [#27]
- T=4
- ! Correct common Scottish names =
- F=_DIRECTORY
- 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
- 2=$1$caps2($2,-)
- 3=1
- [#28]
- T=4
- ! Correct bad capitalization within contractions (source text error) =
- F=_DIRECTORY
- 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
- 2=$1$lower($2)
- 3=1
- [#29]
- T=4
- ! Title case for first word =
- F=_DIRECTORY
- 1=^(\\l)(?# 1st letter of file name)
- 2=$upper($1)
- 3=1
- [#30]
- T=4
- ! Title case for last word in title, even when it is a named article or preposition =
- F=_DIRECTORY
- 1=\\b(\\w*)\\s*[.!?]?\\s*?$(?# last word, regardless of trailing spaces or punctuation)
- 2=$caps2($1)
- 3=0
- [#31]
- T=4
- F=_ALL
- 1=(acoustic|alternate|alternative|bonus|clean|demo|edit|instrumental|live|mix|remix|take|track|remastered|session|version)
- 2=$caps3($1)
- 3=0
- [#32]
- T=4
- F=_DIRECTORY
- 1=(acoustic|alternate|alternative|bonus|clean|demo|edit|instrumental|live|mix|remix|take|track|remastered|session|version)
- 2=$caps3($1)
- 3=0
- [#33]
- T=2
- F=TITLE
- 1=$*
- 2=%title% (Bonus Track)
- 3=0|0
- [#34]
- T=2
- F=TITLE
- 1=*
- 2=
- 3=0|0
- [#35]
- T=2
- F=_ALL
- 1=[Bonus Track]
- 2=(Bonus Track)
- 3=0|0
- [#36]
- T=2
- F=_DIRECTORY
- 1=[Bonus Track]
- 2=(Bonus Track)
- 3=0|0
- [#37]
- T=4
- ! Title case for last word prior to bracket =
- F=_ALL
- 1=(\\w*)(\\s*\\()
- 2=$caps3($1)$2
- 3=0
- [#38]
- T=2
- F=_ALL
- 1=(Bonus Track)
- 2=[Bonus Track]
- 3=0|0
- [#39]
- T=2
- F=_DIRECTORY
- 1=(Bonus Track)
- 2=[Bonus Track]
- 3=0|0
Advertisement
Add Comment
Please, Sign In to add comment