Create PyKiCad-CaseSensitiveLibCure_RevA_25Feb2014.py

From BZR4646 on KiCad is supporting case sensitive Symbol names at Eeschema. This might cause a problem for older schematics created with librarys containing mixed case symbol names. This symbolnames got convertet to uppercase only names in schematic files. Switching to case sensitive, KiCad now will not recognise this uppercase converted names in library files with mixed case names.
This Python 3 skript will read some KiCad library files, extract the names, and convert them to upper case, by keeping a list with the original name and the upper case converted name.
Then the schematic file will be searched for component names. This names will be compared with names from the uppercase side of the list. If found, they will be replaced by the original version.
The converted KiCad schematic is saved with a "-UpConverted.sch" suffix.
Known problems: subschematics have to be converted by there own.
Symbols starting with " ~ " will not be recognized.
Do not forget to rename the files manually for proper working subschematics!
If you encounter problems: Please contact the author at:
bernd.wiebus@gmx.de