Footprint naming : Illegal characters

I’ve seen the footprint naming conventions; is there a reference anywhere as to which characters are illegal for naming footprints (or other kicad files)?

Additionally, I see that footprints more often have spaces swapped out for underscores per the naming conventions, but nothing specifically says spaces are illegal.

Let me put it like this (and this applies to all computers, programs and operating systems in the world):
If you stick with:A…Z, a…z, 0…9 and _
you’ll never have to spend a second searching for odd results and unwanted side effects.
Simple, no?

1 Like

Hyphen - should be ok too. The forward and back slashes are definite no-nos due their use as path separators.

According to the KiCAD FP naming page the OP links to, they’re not OK. And I’d never use them myself. They also signify negative values, command options etc.

We’re talking about footprint names here, not command line options, etc. There are a few examples on that web page that use hyphens, e.g. DIP-24, and Samtec_LSHM-110-xx.x-x-DV-S_2x10-1SH_P0.50mm_Vertical Since _ is the field separator, negative values (negative dimensions? maybe negative temperature coefficients) cause no problem.

Period is also used.

1 Like

Yes, well my reply was perhaps “over-careful”.
But the point was, that all other characters are context-sensitive, and that it’s a darn good idea to avoid them.
Good habits keep you out of trouble.

From THE BIBLE :slightly_smiling_face:: KLC (Kicad Library Conventions)

G1 General Guidelines.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.