sparkfunX / Buzzard

Software tools for EAGLE silkscreen generation
100 stars 18 forks source link

Error < > start end flag ? #33

Open Witawat opened 2 years ago

Witawat commented 2 years ago

image

i can't make < > in flag how to fix ?

Witawat commented 2 years ago

i fix it

not work python C:/EAGLE9.6.2/examples/ulps/examples/Buzzard-master/buzzard.py -w a-o lib -f FredokaOne (5V-Dc)

is work python C:/EAGLE9.6.2/examples/ulps/examples/Buzzard-master/buzzard.py -w a-o lib -f FredokaOne "(5V-Dc)"

and support < > and space bar

int selectedStart = 0;
string startTag[] = {" ", "(", "/", "\\", "<", ">", "["};
int selectedEnd = 0;
string endTag[] = {" ", ")", "/", "\\", "<", ">", "]"};

commandToRun += " & " + s + '"' + startTag[selectedStart] + label + endTag[selectedEnd] + '"';

dronecz commented 2 years ago

@Witawat awesome catch of my mistake! Many thanks for your fix. @NPoole could you pls merge this PR, so my script will work in all cases of use? Many thanks to you both!