Index: trunk/pcblib/parametric/common.awk =================================================================== --- trunk/pcblib/parametric/common.awk (revision 433) +++ trunk/pcblib/parametric/common.awk (revision 434) @@ -341,3 +341,15 @@ element_arc(xhalf, y1, arcr, arcr, 0, 180) } + +# decide whether x is true or false +# returns 1 if true +# returns 0 if false +function tobool(x) +{ + if (x == int(x)) + return (int(x) != 0) + + x = tolower(x) + return (x == "true") || (x == "yes") || (x == "on") +} Index: trunk/pcblib/parametric/connector.awk =================================================================== --- trunk/pcblib/parametric/connector.awk (revision 433) +++ trunk/pcblib/parametric/connector.awk (revision 434) @@ -19,9 +19,9 @@ P["ny"] = int(P["ny"]) eshift=tolower(P["eshift"]) - etrunc=tolower(P["etrunc"]) - if ((eshift != "x") && (eshift != "y") && (eshift != "")) - error("eshift must be x or y (got: ", eshift ")"); + etrunc=tobool(P["etrunc"]) + if ((eshift != "x") && (eshift != "y") && (eshift != "") && (eshift != "none")) + error("eshift must be x or y or none (got: ", eshift ")"); element_begin("", "CONN1", P["nx"] "*" P["ny"] ,0,0, 0, -step)