Sorry, but I could not find a working solution from any solutions that Google gave me (a couple of “recipes” on some site were pretty close, but they were old, and I don’t know, t found something that gives me the result I'm looking for.
I rename the files, so I have a function that spits out the file name, for this I just use test_string: So, all dots, (and underscores) and so on are deleted first - since these are the most common things that all these professors do differently, and does it all without problems (or watching) without deleting. 5 Examples:
test_string_1 = 'legal.studies.131.race.relations.in.the.United.States.'
'legal.studies' → "Legal Studies"
test_string_2 = 'mediastudies the triumph of bluray over hddvd'
'mediastudies' →' Media Studies', 'bluray' → 'Blu-ray,' hddvd '->' HD DVD '
test_string_3 = 'computer Science Microsoft vs unix'
'computer science' → 'computer science', 'unix' → 'UNIX'
test_string_4 = 'Perception - metamers dts'
"Perception" would already be nice (but who cares), the big picture is that they want to store audio information there, so "dts" → DTS
test_string_5 = 'Perception - Cue Integration - flashing dot example aac20 xvid'
'aac20' → 'AAC2.0', 'xvid' → 'XviD'
I am currently running this through something like:
new_string = re.sub(r'(?i)Legal(\s|-|)Studies', 'Legal Studies', re.sub(r'(?i)Sociology', 'Sociology', re.sub(r'(?i)Media(\s|-|)Studies', 'Media Studies', re.sub(r'(?i)UNIX', 'UNIX', re.sub(r'(?i)Blu(\s|-|)ray', 'Blu-ray', re.sub(r'(?i)HD(\s|-|)DVD', 'HD DVD', re.sub(r'(?i)xvid(\s|-|)', 'XviD', re.sub(r'(?i)aac(\s|-|)2(\s|-|\.|)0', 'AAC2.0', re.sub(r'(?i)dts', 'DTS', re.sub(r'\.', r' ', original_string.title()))))))))))
I crushed them all in one line; because I do not change / update it and (how my brain / ADD works), the easier it is to have it as little as possible / out of the way, while I do other things as soon as I do not bother with this part anymore.
So with my example:
new_test_string_1 = 'Legal Studies 131 Race Relations In The United States'
new_test_string_2 = 'Media Studies The Triumph Of Blu-ray Over HD DVD'
new_test_string_3 = 'Computer Science Microsoft Vs UNIX'
new_test_string_4 = 'Perception - Metamers DTS'
new_test_string_5 = 'Perception - Cue Integration - Flashing Dot Example AAC2.0 XviD'
, , , - . - , d , (, //whatevers , , , , ). , //.
: , ( , , , , , , ).
, , (, ).
P.S.
. /, , , Blu-ray, HD DVD, DTS, AAC2.0, XviD ..