Mail Archives: geda-user/2016/01/19/10:34:59
--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
On Jan 19, 2016, at 8:07 AM, 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> wrote:
>=20
> On 19/01/16 14:11, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via
> geda-user AT delorie DOT com] wrote:
>>=20
>>>>> 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.
Yes.
> 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!!
Wouldn=92t be hard to make a gnetlist plugin that uppercases device =
attributes.
>>=20
>>>>> 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=3D0 attribute which =
gsymcheck
>>> complains about:
>>>=20
>>> $ find . -type f -name \*.sym | xargs perl -i -ne 'if =
(m/^numslots\=3D0/) {
>>> undef($old); } else { print $old if $old; undef($old); if (m/^T /) { =
$old =3D
>>> $_; } 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.
>=20
> 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
>>=20
>> ...
>>> Great, I'd like to test that.
>> You haven't even recompile gnetlist for that. Just use something
>> like:
>>=20
>> gnetlist -m ./gnetlist/scheme/*partslist*.scm -g partslist3 -o - =
test.sch
>>=20
>> ...
>>>>> 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).
>>=20
>> 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.
One nice thing about gnet-bom and gnet-bom2 is that they yield TSV files =
that are easy to post-process for a variety of purposes using tools =
ranging from the simple (AWK) to the extremely complicated =
(Mathematica).
>=20
> 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... !!
>=20
> MJE
>=20
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQIcBAEBCgAGBQJWnldKAAoJEF1Aj/0UKykROSwP/0lV2I6D6hq+1DWjLCdstqn5
N3XiCkjdDuX2lTf88kCJ6jy5WCOFK1pmuP6rLnrX6bXdX3vidMgC6o7b9e/20rdu
eCb6weT1yvsgHhk/kF0DZns8vA20+WU+JJoXrA0/y/NfzX7kEKyg/brYfTyHXSAV
9/abRf0RUf3STiYLG5qSIk5YWeyHofEXKNQqJ9cCoqR9XXXqtMzwtmBtDSXx6Jvg
jZLM+hihYs/3KQ1dmc/U0wwA+iZUvDt6YL7Swj5Sb8/fAHvxAxCSaXs8gQadQKTj
KSukyZ8ff0KRWWGjOp35+jN54DMnu8u5K5mCvkgV+w3OMPRUzEA4eesh+XfTBUAX
jei3WneZQlCJ6uKaZJ0xMdus8b9uEdr4Sb4Xbbt8jJ9fJ+xfyD3r/I8EnqX78Osr
vQ1biXBNcmO/Q4DF6cw68Q/mxZNUNvcFWk4VaT/bE9OsmdTe+MhpYTRtfTSqi3OD
qFaudJUWGgqyx+eMjHzGwLi9XeekMo93IAoeChygcRymLHC/fCsRjOgxU/g/lp3+
4ryc24A8gzIeNq4RfYCrp1VTIRN+TviAC57RwUEJeSfU3HBopg9490MOup61bA3H
jwxEU2VjQdeJB+ALJYNpWr/NJBtGJ0HxWBgN0oH550dd7OCuRd88958fQFskKQ5i
DFcRsFIQqJM2ld6XBp8W
=QzoD
-----END PGP SIGNATURE-----
--Apple-Mail=_2B319DBF-D69B-48CD-998B-972DA641F475--
- Raw text -