delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/19/04:19:28

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] gnetlist -g partlist3 in error
In-reply-to: <CAMvDHVAqu0Hute-JPRrxRSvy19H1cU4f0ZZ=Lu_6QZeA-q=PUA@mail.gmail.com>
References: <20151218205019 DOT 1C1FF809D78C AT turkos DOT aspodata DOT se> <20151223141117 DOT D51F6809D795 AT turkos DOT aspodata DOT se> <20151230211705 DOT GE4099 AT localhost DOT localdomain> <20151231021429 DOT EE320809D79B AT turkos DOT aspodata DOT se> <20151231185752 DOT 78437809D79A AT turkos DOT aspodata DOT se> <20151231191107 DOT BCADE809D79A AT turkos DOT aspodata DOT se> <CAMvDHVAqu0Hute-JPRrxRSvy19H1cU4f0ZZ=Lu_6QZeA-q=PUA AT mail DOT gmail DOT com>
Comments: In-reply-to "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Tue, 19 Jan 2016 10:56:36 +0300."
Mime-Version: 1.0
Message-Id: <20160119091756.B960981053DB@turkos.aspodata.se>
Date: Tue, 19 Jan 2016 10:17:56 +0100 (CET)
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

Vladimir:
> I'm working on the fix for this bug.

Do you know where the problem is ?

> Meanwhile, seeing your gnetlist output, I have a question to
> all using the gnetlist partslist* backends:
> 
> - Would it be better to upcase or downcase the device= attributes?
>   Otherwise, depending on sorted values, we have, e.g. "Resistor"
>   or "resistor" in various rows, which is probably not "the Right
>   Thing". I believe devices should be sorted case-insensitively
>   and output uppercase.

"Ideally we should change all sym's".

In the printouts I made, I gravitated towards camelcase with initial 
capital for the device attribute to keep columns short. Like in:

DiodeSchottky sod323_nxp_a.fp             RB751V40         16 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D15 D17 D19 D21 D23
DiodeZener    SOD80                       3.3V              6 D14 D16 D18 D20 D22 D24
Driver        DIP16                       ST232ECN          1 sU1
Inductor      bi_hm78d_128.fp             2720uH            2 5L1 acL1
Mechanical    fibox_tempo_TA191209T_4p.fp OBO_T60           1 M1
Memory        so_08_a.fp                  MB85RC16V         1 U5
OpAmp         so_14_a.fp                  TS514AID          2 U2 U4
PwrLinReg     sot23_5.fp                  NCP700BSN3.3V     1 3U1
PwrLinReg     to220.fp                    7812              1 U3
PwrLinReg     to220.fp                    LM317             1 pU1
PwrLinReg     to220.fp                    LM337             1 nU1
PwrSwReg      so_08_a.fp                  MC33063           2 5U1 acU1
Resistor      m1608_a.fp                  2.2               1 acRsc1

if you upcase it, it would look a little thick:

DIODESCHOTTKY sod323_nxp_a.fp             RB751V40         16 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D15 D17 D19 D21 D23
DIODEZENER    SOD80                       3.3V              6 D14 D16 D18 D20 D22 D24
DRIVER        DIP16                       ST232ECN          1 sU1
INDUCTOR      bi_hm78d_128.fp             2720uH            2 5L1 acL1
MECHANICAL    fibox_tempo_TA191209T_4p.fp OBO_T60           1 M1
MEMORY        so_08_a.fp                  MB85RC16V         1 U5
OPAMP         so_14_a.fp                  TS514AID          2 U2 U4
PWRLINREG     sot23_5.fp                  NCP700BSN3.3V     1 3U1
PWRLINREG     to220.fp                    7812              1 U3
PWRLINREG     to220.fp                    LM317             1 pU1
PWRLINREG     to220.fp                    LM337             1 nU1
PWRSWREG      so_08_a.fp                  MC33063           2 5U1 acU1
RESISTOR      m1608_a.fp                  2.2               1 acRsc1

maybe its best to let the user handle that. He/she can change device
attributs to suit his/her taste.

But I do think the output should not have its case changed.

If you want to change anything, wouldn't it be better to have a separate
sch/sym beautifier script ?

///

Have you considered the way I sorted the values, like in:

Capacitor     m1608_a.fp                  18p               2 C4 C5
Capacitor     m2012_a.fp                  330p              2 5C2 acC2
Capacitor     m2012_a.fp                  10n               2 3C2 C14
Capacitor     m2012_a.fp                  100n             13 C6 C7 C8 C9 C10 C12 C13 C15 C17 sC1 sC2 sC3 sC4
Capacitor     m2012_a.fp                  1u                7 3C1 3C3 C16 nC1 nC2 pC1 pC2
Capacitor     m3216_a.fp                  10u               1 C11
...
Resistor      m1608_a.fp                  2.2               1 acRsc1
Resistor      m1608_a.fp                  3.3               1 5Rsc1
Resistor      m1608_a.fp                  100               1 nRb3
Resistor      m1608_a.fp                  330               3 R9 nRb2 pRt1
Resistor      m1608_a.fp                  470               2 R3 pRt2
Resistor      m1608_a.fp                  680               3 R1 R5 R7
Resistor      m1608_a.fp                  1k               13 R2 R4 R6 R8 R11 R17 R18 R19 R20 R21 R22 acRt3 nRt1
Resistor      m1608_a.fp                  3.3k              3 R10 R14 R16
Resistor      m1608_a.fp                  6.8k              2 R13 R15
Resistor      m1608_a.fp                  10k               8 5Rb1 R12 R23 R24 acRb1 nRb1 pRb1 pRb3
Resistor      m1608_a.fp                  15k               2 5Rt1 5Rt2
Resistor      m1608_a.fp                  33k               1 acRt2
Resistor      m1608_a.fp                  47k               1 pRb2
Resistor      m1608_a.fp                  100k              1 acRt1

instead of purely alfabetical ?
You could also possible merge say 1000 and 1k, and align the col. at
the decimal point, as in

  2.2
100
  3.3k
 47k

And it would be nice if columns lined up as in first example above.

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