Guest User

Untitled

a guest
Dec 22nd, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 KB | None | 0 0
  1. Mp3tag action: Title case and text corection
  2. --------------------------------------------
  3. [#0]
  4. T=4
  5. F=_ALL
  6. 1=.*(https|www).*
  7. 2=
  8. 3=0
  9.  
  10. [#1]
  11. T=4
  12. F=_ALL
  13. 1=(%20|_| | )
  14. 2=
  15. 3=0
  16.  
  17. [#2]
  18. T=4
  19. F=_DIRECTORY
  20. 1=(%20|_| | )
  21. 2=
  22. 3=0
  23.  
  24. [#3]
  25. T=2
  26. F=_ALL
  27. 1=\u2019
  28. 2='
  29. 3=0|0
  30.  
  31. [#4]
  32. T=2
  33. F=_DIRECTORY
  34. 1=\u2019
  35. 2='
  36. 3=0|0
  37.  
  38. [#5]
  39. T=4
  40. ! Uppercase for 1st letter after specified characters =
  41. F=_TAG
  42. 1=([-({ _.+\\x{201c}"])(\\l)(?# for tags)
  43. 2=$1$upper($2)
  44. 3=1
  45.  
  46. [#6]
  47. T=4
  48. ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
  49. F=_TAG
  50. 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)
  51. 2=$lower($1)
  52. 3=1
  53.  
  54. [#7]
  55. T=4
  56. ! Common Latinisms to lowercase =
  57. F=_TAG
  58. 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
  59. 2=$lower($1)
  60. 3=1
  61.  
  62. [#8]
  63. T=4
  64. ! Force uppercase for named acronyms and some common Roman numerals =
  65. F=_TAG
  66. 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
  67. 2=$upper($1)
  68. 3=0
  69. [#14]
  70.  
  71. [#9]
  72. T=4
  73. ! Correct common Scottish names =
  74. F=_TAG
  75. 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
  76. 2=$1$caps2($2,-)
  77. 3=1
  78.  
  79. [#10]
  80. T=4
  81. ! Correct bad capitalization within contractions (source text error) =
  82. F=_TAG
  83. 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
  84. 2=$1$lower($2)
  85. 3=0
  86.  
  87. [#11]
  88. T=4
  89. ! Title case for first word =
  90. F=_TAG
  91. 1=^(\\l)(?# 1st letter)
  92. 2=$upper($1)
  93. 3=1
  94.  
  95. [#12]
  96. T=4
  97. ! Title case for last word, even when it is a named article or preposition =
  98. F=_TAG
  99. 1=\\b(\\w*)\\s*[.!?]?\\s*?$(?# last word, regardless of trailing spaces or punctuation)
  100. 2=$caps2($1)
  101. 3=0
  102.  
  103. [#13]
  104. T=4
  105. ! Uppercase for 1st letter after specified characters =
  106. F=_FILENAME
  107. 1=([-({ _.+])(\\l)(?# lowercase letter follows word boundary)
  108. 2=$1$upper($2)
  109. 3=1
  110.  
  111. [#14]
  112. T=4
  113. ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
  114. F=_FILENAME
  115. 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)
  116. 2=$lower($1)
  117. 3=1
  118.  
  119. [#15]
  120. T=4
  121. ! Title case for words after all types of single quote marks =
  122. F=_FILENAME
  123. 1=(\\s(\\x{2027}|\\x{2018}|\\x{2019})\\l)(?# a space and a single quote)
  124. 2=$upper($1)
  125. 3=1
  126.  
  127. [#16]
  128. T=4
  129. ! Force common Latinisms to lowercase =
  130. F=_FILENAME
  131. 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
  132. 2=$lower($1)
  133. 3=1
  134.  
  135. [#17]
  136. T=4
  137. ! Force uppercase for named abbreviations, acronyms, and a few Roman numerals =
  138. F=_FILENAME
  139. 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)
  140. 2=$upper($1)
  141. 3=0
  142.  
  143. [#18]
  144. T=4
  145. ! Correct common Scottish names =
  146. F=_FILENAME
  147. 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
  148. 2=$1$caps2($2,-)
  149. 3=1
  150.  
  151. [#19]
  152. T=4
  153. ! Correct bad capitalization within contractions (source text error) =
  154. F=_FILENAME
  155. 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
  156. 2=$1$lower($2)
  157. 3=1
  158.  
  159. [#20]
  160. T=4
  161. ! Title case for first word =
  162. F=_FILENAME
  163. 1=^(\\l)(?# 1st letter of file name)
  164. 2=$upper($1)
  165. 3=1
  166.  
  167. [#21]
  168. T=4
  169. ! Title case for last word prior to the file extension =
  170. F=_FILENAME
  171. 1=(\\s[a-z]+)(\\.\\w{2,5})$(?# $1 is last word before file extension)
  172. 2=$caps2($1)$2
  173. 3=0
  174.  
  175. [#22]
  176. T=4
  177. ! Uppercase for 1st letter after dash =
  178. F=_DIRECTORY
  179. 1=-(\\s)
  180. 2=-$upper($1)
  181. 3=0
  182.  
  183. [#23]
  184. T=4
  185. ! Articles, conjunctions, & short prepositions to lowercase, except after punctuation =
  186. F=_DIRECTORY
  187. 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)
  188. 2=$lower($1)
  189. 3=1
  190.  
  191. [#24]
  192. T=4
  193. ! Title case for words after all types of single quote marks =
  194. F=_DIRECTORY
  195. 1=(\\s(\\x{2027}|\\x{2018}|\\x{2019})\\l)(?# a space and a single quote)
  196. 2=$upper($1)
  197. 3=1
  198.  
  199. [#25]
  200. T=4
  201. ! Force common Latinisms to lowercase =
  202. F=_DIRECTORY
  203. 1=\\b(Alias|Ca|Circa|E\\.G|Et\\sAl|Etc|I\\.E|Opus|Per|Ps|Sic|Versus|Vs)\\b(?# a few Latinisms)
  204. 2=$lower($1)
  205. 3=1
  206.  
  207. [#26]
  208. T=4
  209. ! Force uppercase for named abbreviations, acronyms, and a few Roman numerals =
  210. F=_DIRECTORY
  211. 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)
  212. 2=$upper($1)
  213. 3=0
  214.  
  215. [#27]
  216. T=4
  217. ! Correct common Scottish names =
  218. F=_DIRECTORY
  219. 1=\\b(Mc|Mac)([a-z]{3,})(?# Scottish names with 3 or more letters after "Mc" or "Mac")
  220. 2=$1$caps2($2,-)
  221. 3=1
  222.  
  223. [#28]
  224. T=4
  225. ! Correct bad capitalization within contractions (source text error) =
  226. F=_DIRECTORY
  227. 1=(\\l(?:'|\\x{2019}))(\\u\\W)(?# $2 is last letter of contractions & possessive nouns)
  228. 2=$1$lower($2)
  229. 3=1
  230.  
  231. [#29]
  232. T=4
  233. ! Title case for first word =
  234. F=_DIRECTORY
  235. 1=^(\\l)(?# 1st letter of file name)
  236. 2=$upper($1)
  237. 3=1
  238.  
  239. [#30]
  240. T=4
  241. ! Title case for last word in title, even when it is a named article or preposition =
  242. F=_DIRECTORY
  243. 1=\\b(\\w*)\\s*[.!?]?\\s*?$(?# last word, regardless of trailing spaces or punctuation)
  244. 2=$caps2($1)
  245. 3=0
  246.  
  247. [#31]
  248. T=4
  249. F=_ALL
  250. 1=(acoustic|alternate|alternative|bonus|clean|demo|edit|instrumental|live|mix|remix|take|track|remastered|session|version)
  251. 2=$caps3($1)
  252. 3=0
  253.  
  254. [#32]
  255. T=4
  256. F=_DIRECTORY
  257. 1=(acoustic|alternate|alternative|bonus|clean|demo|edit|instrumental|live|mix|remix|take|track|remastered|session|version)
  258. 2=$caps3($1)
  259. 3=0
  260.  
  261. [#33]
  262. T=2
  263. F=TITLE
  264. 1=$*
  265. 2=%title% (Bonus Track)
  266. 3=0|0
  267.  
  268. [#34]
  269. T=2
  270. F=TITLE
  271. 1=*
  272. 2=
  273. 3=0|0
  274.  
  275. [#35]
  276. T=2
  277. F=_ALL
  278. 1=[Bonus Track]
  279. 2=(Bonus Track)
  280. 3=0|0
  281.  
  282. [#36]
  283. T=2
  284. F=_DIRECTORY
  285. 1=[Bonus Track]
  286. 2=(Bonus Track)
  287. 3=0|0
  288.  
  289. [#37]
  290. T=4
  291. ! Title case for last word prior to bracket =
  292. F=_ALL
  293. 1=(\\w*)(\\s*\\()
  294. 2=$caps3($1)$2
  295. 3=0
  296.  
  297. [#38]
  298. T=2
  299. F=_ALL
  300. 1=(Bonus Track)
  301. 2=[Bonus Track]
  302. 3=0|0
  303.  
  304. [#39]
  305. T=2
  306. F=_DIRECTORY
  307. 1=(Bonus Track)
  308. 2=[Bonus Track]
  309. 3=0|0
  310.  
Advertisement
Add Comment
Please, Sign In to add comment