Mail Archives: geda-user/2015/02/08/11:50:43
--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
> On 8 Feb 2015, at 13:41, Christian Riggenbach <criggenbach AT magahugu DOT ch> wr=
ote:
>=20
>> On Sunday 08 February 2015 13.27:12 you wrote:
>> It might be enough to simply allow an attribute:
>> script=3D"<attribute>=3D<expression>".
>=20
> Then we wouldn't have straight lua anymore, as it requieres another pass w=
ith=20
> the parser.
I didn't explain myself fully. When writing the data file gschem would take a=
ny script attributes and write the value as an additional attribute, so the o=
bject would have:
script=3D"<attribute>=3D<expression>"
<attribute>=3D<expression>
The second would be evaluated on a subsequent load and the former would pres=
erve the source expression, particularly if visible serving to document how t=
he value was calculated. This would require no additional GUI support from g=
schem.
Chris=
--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div><br></div><div>On 8 Feb 2015, at 13:41=
, Christian Riggenbach <<a href=3D"mailto:criggenbach AT magahugu DOT ch">crigge=
nbach AT magahugu DOT ch</a>> wrote:<br><br></div><blockquote type=3D"cite"><div=
><span>On Sunday 08 February 2015 13.27:12 you wrote:</span><br><blockquote t=
ype=3D"cite"><span>It might be enough to simply allow an attribute:</span><b=
r></blockquote><blockquote type=3D"cite"><span>script=3D"<attribute>=3D=
<expression>".</span><br></blockquote><span></span><br><span>Then we w=
ouldn't have straight lua anymore, as it requieres another pass with </span>=
<br><span>the parser.</span><br></div></blockquote><br><div>I didn't explain=
myself fully. When writing the data file gschem would take any script attri=
butes and write the value as an additional attribute, so the object would ha=
ve:</div><div><div><font color=3D"#000000"><span style=3D"background-color: r=
gba(255, 255, 255, 0);"><br></span></font></div><div><font color=3D"#000000"=
><span style=3D"background-color: rgba(255, 255, 255, 0);">script=3D"<att=
ribute>=3D<expression>"</span></font></div></div><div><span style=3D=
"background-color: rgba(255, 255, 255, 0);"><attribute>=3D<expressi=
on></span></div><div><span style=3D"background-color: rgba(255, 255, 255,=
0);"><br></span></div><div><span style=3D"background-color: rgba(255, 255, 2=
55, 0);">The second would be evaluated on a subsequent load and the former w=
ould preserve the source expression, particularly if visible serving to docu=
ment how the value was calculated. This would require no additional GUI supp=
ort from gschem.</span></div><div><span style=3D"background-color: rgba(255,=
255, 255, 0);"><br></span></div><div><span style=3D"background-color: rgba(=
255, 255, 255, 0);">Chris</span></div></body></html>=
--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A--
- Raw text -