delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/09/06/18:31:42

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Can an attribute be attached to text for later inclusion in gnetlist backend?
X-Pgp-Agent: GPGMail
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <20160906213426.GA10224@localhost.localdomain>
Date: Tue, 6 Sep 2016 16:30:10 -0600
Message-Id: <5A8E8F14-D4A4-412E-A412-7D97A0306C7B@noqsi.com>
References: <CAGde_xMkqgbbfH81MPOLPfTaui0wRvmUctk31r-eE3=fQ+U0pA AT mail DOT gmail DOT com> <A9C29BBE-B381-4BD1-BD54-E0E27DF1307C AT noqsi DOT com> <20160823053301 DOT 865f671a1b40b5a422e59ce7 AT gmail DOT com> <da433c1d-c711-e0d8-f9ff-a6e843bfe266 AT sbcglobal DOT net> <AB0B2DAD-9075-4AEC-B33E-A57DA050B079 AT noqsi DOT com> <CAGde_xOYrkv-4eWyR4OOTT+XQMPcr4MxmT1xomB9uCneZBCT6A AT mail DOT gmail DOT com> <20160824185818 DOT GD14293 AT localhost DOT localdomain> <CAGde_xNfx_VmpWTm6EwHac2QaKQCRefs1cKK=s9gE8OOuMiWdA AT mail DOT gmail DOT com> <20160831221409 DOT GA2585 AT localhost DOT localdomain> <CAGde_xMDpUFy5P05Mg+zmzDtvbshvZAghR13F4UkSxxMqtw7yw AT mail DOT gmail DOT com> <20160906213426 DOT GA10224 AT localhost DOT localdomain>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1878.6)
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Sep 6, 2016, at 3:34 PM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via =
geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:

> Having been thinking before of
> all the ambiguous attribute names we have in geda where each
> gnetlist backend has its own vision on their use, now I think
> every one of them being non-compatible with others should have a
> different backend-specific name.

The way I do it in gnet-spice-noqsi is to have spice-specific attributes =
spice-prototype, spice-prolog, and spice-epilog. Those feed a simple =
macro expander that can *refer* to the old overloaded attribute names. =
There are built-in defaults for the spice-prototype attribute selected =
by the device attribute.
So, for example, the default prototype for device=3DRESISTOR is

R? %pinseq value@ model-name@ spice-args@ w=3D l=3D area=3D temp=3D=93

This does the following:

1. Insures the refdes starts with R.

2. Uses pinseq to order the connections, as in the past.

3. Uses the value attribute for the resistance, as in the past.

4. Picks up other optional attributes.

The user can override this with a spice-prototype attribute to get any =
output desired. This approach avoids getting in the way of other back =
ends, while most often doing the =93right thing=94 by default.

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJXz0NzAAoJEF1Aj/0UKykRirYP/jtjbGVwU/L88AXoNzs4gwmg
0GhzhEmsCE0Idi9rsTWWSmpaHnrgEKFDCQ5c0g2uSrg46dcwAp00iDKzBSFs2hnJ
v5juz00gZ9l9fyG+vSUWckiKdLBP6BTexcQT81jZubNf+A/pwSTncJ9sMLQ6Ns1W
GUsqfZuMhvHmOg6uSC1zGIpYuG6OvH+B4f1MUGM8Q4WqEU3boy0mfG538rvDRg9s
HLcGholbeHTugPwZmzum2g3/WaE5eibE4olOhc9HHoGRZpyJ8IV1343SGTZCczpn
fI/sMnJahPo+vI3ZCWr/rHW6S+V8uj9cnGx52qM52z4dUFAHklfej9nPilDDAfgK
Eh2hz/ZOXY+BDAgLnXruWuHH+DlDF5xV2GTrnkP8MZOJnn4Rq1Pe0a6/tBI/cIMO
sG8UWVQCE0roUoeSD0q+GRhmFPnm2q3OvWd1vxuEo++g2t7do+avyRou6NN8JD+j
RnhcPMi3Iu+Zn++rYGOVuwbvALMCQfOnxBN+bfvih5CyzEBH16cgtlZb7WApixUM
9lf8/kzSWLbyiSFOfSUSUVvmm9jKpaLVxd402nUSOLGAP0qe9wvKS58T8Eji9q5M
NvDwml7K36+Yzupvjf5pBGSK7liMlFrOJGE4ISttKFYyl6NjWH9RoKWSjfUSjyoE
cy2URTL8aLcvXlSOkgQg
=vm5x
-----END PGP SIGNATURE-----

--Apple-Mail=_F51EB531-7069-4EC4-B165-002753997BD7--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019