delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/19/10:08:50

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <569E5132.5070904@iee.org>
Date: Tue, 19 Jan 2016 15:07:30 +0000
From: "M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] gnetlist -g partlist3 in error
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> <20160119091756 DOT B960981053DB AT turkos DOT aspodata DOT se> <CAMvDHVA+dW81TzJAkAvFnB_kaAgO9Rr4Er-QQ0rNzte1GOHgyA AT mail DOT gmail DOT com> <20160119123332 DOT 3A27581053DB AT turkos DOT aspodata DOT se> <CAMvDHVBo50FJFi9n-Tcvux4ZngRcvBZS2cyQENA7pODEptL9fg AT mail DOT gmail DOT com>
In-Reply-To: <CAMvDHVBo50FJFi9n-Tcvux4ZngRcvBZS2cyQENA7pODEptL9fg@mail.gmail.com>
X-Provags-ID: V03:K0:UZ0RbmNW51U4amFNDAiNgCV0fFegxG4QIdvbY4IzcF+2GXMO2Gz
BpP0B8o8ToZPIaHMM8xe3eNLRF9oBekTnUja1xLQ63VduFTk1w9Dg4r5fHl0n/34sk4vUcU
TumnU/7kvyv3+LCiVNHN5zGIKnNfcm8ZWargleKQXbnxgCOV+WKNUGxPcAq4MeY3ZoG79c/
LyQuHoljod76h6k8l9rkQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:tfAVrFtS8BE=:jLKMjH/xv8F8m8rF6FS2i3
zxLJJU9nqsNz0WeCJ0JPH4zPrp6o2yLJU1d/pJdYiFayNaoSX/+aIDzvr9/GiHZJOJDdRGy+T
oYRwbG70m7zQlPdf2ja2ZO28C63XS6MHQtiM5jXFSXaeb2/nku5P4UOha8sqxMzVFWowZAivX
2fH1GytSrE+WHHs3id14cmOric8RnMi3B/URb3LxmYGmrNJR1/GLtwVFF1o8dcaboGlSttj+F
Tj9CAuEu2t/+8/bgGIgyUFZwtGGIHYCEWZQT/cIaBZYnIAVUrugX1PaRKmUb6T+lDgHZBKG4O
IwG8uq1PngW/0IIaJDWkijOonZ7J0ixHbg9AgWN9WG7dmzSfs6OqUlUHmCk2BcK7Qk614XQMK
iOhxf/YiRpgSTu4W/sgAlEHqmEqmiN4eo+ilRXIXsNT3T+JkQN9+hOofpWxPpTiy0UkD96KxP
jyxm9jLlmqkI8mgMTi+8CkNSTg2iJemM7tH1VoRzhluPSPzQa831h5lDr6IqG/LhMncwg6a9P
7UawptSJL4RkIjYfYSCloE4JuDGRXCndiz8LuQSJ3i8PYPikZKkxLp6ruZ9LDaA20pSFrEf1R
toy/IV0w4QvfrstbLwE3siKuAY0eVENax1VqWuY4COgOzQdY5u3gRflL8MIdfNHU4N1P5Yuvg
iW9MCkoL9ujdMnzLztgovfT7pFLBL43uAX3c8s7g7wCWGxhPgK+VrCN/Vua9pjsSJg1n/X25o
74JqNAkHX10mQXpc
Reply-To: geda-user AT delorie DOT com

On 19/01/16 14:11, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
geda-user AT delorie DOT com] wrote:
>
>>>> But I do think the output should not have its case changed.
>>> Then we could not join "Resistor 10k" and "resistor 10k" and count
>>> them together in some cases.
>> I think the best thing is to push that problem down to the user.
> Agreed
It would be really nice to do this, but you quickly find that the
program is second-guessing you, and more often than not, the wrong way.
Best to flag it to the user in some way, let them decide. I hate the
Office apps when they decide they think they know better and auto
something, only for you to have to undo it!!
>
>>>> If you want to change anything, wouldn't it be better to have a
>>>> separate
>>>> sch/sym beautifier script ?
>>> Why not? However, at least basic things have to be done well.
>> 1, In 2010 I did one to remove numslots=0 attribute which gsymcheck
>>    complains about:
>>
>> $ find . -type f -name \*.sym | xargs perl -i -ne 'if (m/^numslots\=0/) {
>> undef($old); } else { print $old if $old; undef($old); if (m/^T /) {  $old =
>> $_; } else { print; }}'
> gsymcheck is broken. I have rewritten it in scheme (see the
> gsymcheck branch in the above repository on github) and used as a
> module for gschem to check symbols interactively. However, I won't
> work on it further yet since I have some other thoughts :)
I'd really like to see an interactive gsymcheck .. must check this out.

Also, are your "thoughts" published anywhere .. like on the github, like
peterbrett .. always nice to read where other people's ideas are at.
>> 2, upcase 1st char of device attribute.
> It's easy to do using Scheme, if you want, isn't it ;)
I feel strongly that you keep to All Caps or All Lower, no mixing or it
makes a pain to read/check. Again, perhaps a means of flagging up to the
user for correction would be really handy.
>> Any more, do you have a list ?
> No
>
> ...
>> Great, I'd like to test that.
> You haven't even recompile gnetlist for that. Just use something
> like:
>
> gnetlist -m ./gnetlist/scheme/*partslist*.scm -g partslist3 -o - test.sch
>
> ...
>>>> And it would be nice if columns lined up as in first example above.
>>> The same. I believe this is a business for some post-processing
>>> program, since we just output a TSV lists.
>> Hmm, maybe we could provide a postprocessor.
> gnetlist is our postprocessor. You can load your custom/preferred
> functions either before or after loading backends and thus change
> its behaviour (e.g., using the -m option mentioned before).
>
> Cheers,
>   Vladimir
I have to admit, I really like gnetlist and use the bom2 processor
regularly to generate spreadsheets for parts lists. I can do any further
sorting/processing in the spreadsheet, and filter different parts, add
order codes and supplier all easily from there. It also allows me to
perform some basic checking IN the spreadsheet, as resistors that are
10k and 10K soon show up together. The only grind is you have to go back
to the schematic editor and correct, but once it's right, it's right.

I'm about to do a board design, so I'll have to make some notes as I go
along of the usual 'gotchas' that I come across... !!

MJE

- Raw text -


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