kicad-library-utils icon indicating copy to clipboard operation
kicad-library-utils copied to clipboard

Solves Issue #321: Check for space separated keywords

Open JacobEFO opened this issue 4 years ago • 3 comments

A naive approach to handling space separated keywords fixing #321

The thought was, that it would be more interesting to find keywords separated with a list of illegal symbols, such as: ,.:;?!<>

Currently allowing especially hyphen (-) to get through, because it appears to be used already within keywords. A primary issue atm is, that some symbols such as within CPLD_Xilinx.lib contain no "K" field in its .dcm file. This triggered an error, that I handle with a try/except.

if the error is triggered it appends to the warnings, that symbols appear to not have any keywords. If illegal characters are found within the keywords, an error is appended saying it found the following illegal characters and prints them.

I would like to hear, what you think of the solution, and what specific sort of characters should be searched for within the keywords.

JacobEFO avatar Mar 07 '20 21:03 JacobEFO