www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/09/26/10:54:33

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 26 Sep 2021 16:53:37 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] empty attributes
In-Reply-To: <20210926135647.144558587FD6@turkos.aspodata.se>
Message-ID: <alpine.DEB.2.21.2109261635430.2476@nimbus>
References: <20210925133011 DOT D0B918587B70 AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2109251919580 DOT 1189 AT nimbus> <20210925194712 DOT 152EA8587FD0 AT turkos DOT aspodata DOT se> <20210926135647 DOT 144558587FD6 AT turkos DOT aspodata DOT se>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
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

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-1752078100-1632668017=:2476
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Sun, 26 Sep 2021, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> http://wiki.geda-project.org/geda:symbols
> says about the same, but also that you can use "unknown" to specify
> a empty value.

The value "unknown" is not the same thing as an empty value; it means the 
value inherited from the symbol file should be discarded.  However, this 
doesn't apply to certain attributes which, like refdes=, are handled 
specially.

> I cannot find anything in the wiki that says a final space isn't 
> permitted.

As far as I know, a trailing space is perfectly legal, but I'd expect all 
kinds of problems with the resulting netlists (most output formats aren't 
"space-safe"), so I wouldn't recommend using this.

> Prepending a space:
> $ grep unknown top.sch
> refdes= unknown
> […]
> $ cat top.net
> U?/unnamed_net4 U?R2-2 U?R1-2
> unnamed_net2    U?R2-1 R3-1
> unnamed_net1    U?R1-1 R3-2
>
> makes lepton puke, geda just applies the default refdes.

"refdes= unknown" is not a valid attribute, so it's treated like any other 
non-attribute text object, which means it's ignored for netlisting 
purposes (unless a backend explicitly looks for text objects, which is a 
rather new mechanic which I don't believe any backend uses).

> And geda folks, just stuffing in the default refdes, just makes the user 
> scratching its head, just what in the **** went wrong.

In the absence of a refdes= attribute, the value inherited from the symbol 
file is used.  Since this is pretty obviously not what the user intended, 
gnetlist treats this as an error from version 1.10.0 on.

> Now, thoose spaces will probably confuse any netlist reader downstream, 
> so I don't know why they are allowed, required to be within citation 
> marks or quoted.

Applying proper quoting is done in the netlist backend.  gEDA/gaf's 
`tedax' backend does this correctly, as well.  I'm not sure what the 
proper quoting for PCB would be, but patches to src/backend/gnet_pcbfwd.py 
are welcome.

> so it would probably be best to drop the old netlist format and replace 
> it with tEDAx

It would be best to fix the backend.  If you prefer exporting your 
schematics in tEDAx format (and your layout program supports this), you 
are free to do so.

Roland

--8323329-1752078100-1632668017=:2476--

- Raw text -


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