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

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] [pcb] mainline: redundant attributes: bug or feature?
In-reply-to: <20170815072851.cd3656b5676b6a1371d4d887@gmail.com>
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>
Comments: In-reply-to "Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Tue, 15 Aug 2017 07:28:51 +0200."
Mime-Version: 1.0
Message-Id: <20170815083008.1B63C804C771@turkos.aspodata.se>
Date: Tue, 15 Aug 2017 10:30:08 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
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

Niklas:
> > 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.

I use it for "documentation". In gschem, "T" can be multiline, but how
do you make a multiline attribute ?

E.g. for mcp16301.sym I have
T   400  3907   5 10  0 0   0 0 1
documentation=http://ww1.microchip.com/downloads/en/DeviceDoc/25004A.pdf
T   400  3685   5 10  0 0   0 0 1
documentation=http://ww1.microchip.com/downloads/en/AppNotes/01385A.pdf

Visually I'd be satisfied with
T   400  3907   5 10  0 0   0 0 3
documentation=
 http://ww1.microchip.com/downloads/en/DeviceDoc/25004A.pdf
 http://ww1.microchip.com/downloads/en/AppNotes/01385A.pdf

but I don't know if that would work for every thing in geda.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


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