delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2017/08/15/04:43:34

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
From: geda AT psjt DOT org (Stephan =?utf-8?Q?B=C3=B6ttcher?=)
To: "Nicklas Karlsson \(nicklas.karlsson17\@gmail.com\) \[via geda-user\@delorie.com\]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] [pcb] mainline: redundant attributes: bug or feature?
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1708140646240 DOT 27212 AT igor2priv>
<xna832yyq0 DOT fsf AT envy DOT delorie DOT com>
<20170815072851 DOT cd3656b5676b6a1371d4d887 AT gmail DOT com>
Date: Tue, 15 Aug 2017 10:42:23 +0200
In-Reply-To: <20170815072851.cd3656b5676b6a1371d4d887@gmail.com> (Nicklas
Karlsson's message of "Tue, 15 Aug 2017 07:28:51 +0200")
Message-ID: <s6nefsdusr4.fsf@blaulicht.brux>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v7F8gQDk022302
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

"Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via
geda-user AT delorie DOT com]" <geda-user AT delorie DOT com> writes:

>> I suspect my thoughts were this: the user API should require/expect
>> unique keys (hence get-by-value) but the low level stuff should be able
>> to preserve (erroneous) redundant keys when loading/saving a *.pcb file.
>> Making load/store git friendly is a goal in pcb.
>
> Attribute with same name added several times may in sort of be
> interpreted as a list of values. In gschem it is possible to add
> several attributes with same name but it never make sense and it's not
> possible to know for sure which value is used.

At least these are supposed to be used multiple times, but they won't be
exported:

 net=«netname»:«pin»
 slotdef=«slot»:«pin»,…

I'd propose to convert multiple attributes with the same name into
semicolon separated lists at import.  And teach gnetlist to understand
those as well, for consistency.

-- 
Stephan

- Raw text -


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