delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/11/19/13:38:00

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.7.2 01/07/2005 (debian 1:2.7.2-18) with nmh-1.3
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] git mirror of gedasymbols.org
In-reply-to: <E5ECF326-39B6-4325-B3C0-66EAD03186AE@noqsi.com>
References: <20121116030224 DOT 5c7750ee AT akka> <201211160225 DOT qAG2PrVD005630 AT envy DOT delorie DOT com> <20121116035513 DOT 14519 DOT qmail AT stuge DOT se> <201211160357 DOT qAG3vUXo017504 AT envy DOT delorie DOT com> <20121116041216 DOT 16057 DOT qmail AT stuge DOT se> <201211160428 DOT qAG4Sh3h018631 AT envy DOT delorie DOT com> <llhhn9x25t DOT ln2 AT skate DOT rswarbrick> <k88cd4$3i2$1 AT ger DOT gmane DOT org> <20121117163351 DOT 14988 DOT qmail AT stuge DOT se> <5C6FC5CD-A358-476D-A8CA-C9AF2E72A914 AT noqsi DOT com> <20121117185520 DOT 25698 DOT qmail AT stuge DOT se> <E2A7C157-E0AB-437B-B8FD-1DA96C64AF39 AT noqsi DOT com> <k89b87$fip$1 AT ger DOT gmane DOT org> <B8C80ED4-E795-41D2-9D76-513A7D09666C AT noqsi DOT com> <k8bv02$1ca$1 AT ger DOT gmane DOT org> <9C626D0F-7D63-4FBE-8D63-37A2FFAD96FE AT noqsi DOT com> <CAM2RGhQXd_-f3AD2W0iNTvbUU0o8O727f0sR=vkEjC-zg0PmVw AT mail DOT gmail DOT com> <71EA2CF8-8F64-4A51-B7C4-5F26EE8F4088 AT noqsi DOT com> <CAM2RGhR3tC52C8Jj9171a5xogwPy9PA_6DrOBF=F3742cbvAhg AT mail DOT gmail DOT com> <CAM2RGhRPE5YpB4p6hBbZwUE-DF4vdMCn-UoZONe9bNPHX+FN-Q AT mail DOT gmail DOT com> <D904E454-596B-4B02-82B6-0CA2EC854690 AT noqsi DOT com> <CAM2RGhS0OpcuScxH8zVyeiSKHOs8Z!
! 6eFO6_c0ZznN+ZkccYgig AT mail DOT gmail DOT com> <25B41A6E-E2ED-4EEB-ADAE-558B8BCFB993 AT noqsi DOT com> <20121119145732 DOT 2B114813BDB3 AT turkos DOT aspodata DOT se> <E5ECF326-39B6-4325-B3C0-66EAD03186AE AT noqsi DOT com>
Comments: In-reply-to John Doty <jpd AT noqsi DOT com>
message dated "Mon, 19 Nov 2012 09:10:54 -0700."
Mime-Version: 1.0
Message-Id: <20121119182107.98F08813BDB7@turkos.aspodata.se>
Date: Mon, 19 Nov 2012 19:21:07 +0100 (CET)
From: karl AT aspodata DOT se (Karl Hammar)
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

John Doty:
> On Nov 19, 2012, at 7:57 AM, Karl Hammar wrote:
> 
> >> On Nov 19, 2012, at 6:50 AM, Evan Foss wrote:
> >>> Oh when I used Omega on resistors the old ones would fail. SDB might
> >>> have fixed it but there was some reason that I can not remember for
> >>> not using it.
> >> How should "mΩ" be translated?
> > milli Ohm.
> SPICE won't understand that (can't have that space).

Sorry, I jumped in the middle of thread.
My gut feeling is then that 10 mΩ should be translated to 0.01 and
and 10MΩ to 10000000, and to leave out the multiplier in the output.

But from what I understand that would be a change in behaviour,
and they are never fun.

I'd say, keep current unless you specify a e.g. -SI option to get
the above.

> In SPICE, either "m" or "M" is "milli".
> The actual unit is a comment, so SPICE will accept 1000MHz as the
> value of a one ohm resistor.
> But Unicode is troublesome in a format based on Hollerith encoding ;-).

Are you saying that we need to put a "H" i col. 6 also?

> >> What about "MΩ"?
> > mega Ohm.
> That would be "meg" in SPICE. The challenge here is to avoid
> translating "M" spuriously.

We are talking syntax of units/values, so given attribute
"value=10mΩ", accept whitespace before or after the number but not
between multiplier and unit. If something else than a number is last
it must be an unit. Accept Ohm as an alias for Ω, u for µ, else keep it
strictly SI-style, that's my take. Shall I write a prototype parser
for testing?

> > Some people write KΩ, and what is a Kelvin Ohm ?
> It's wrong. Some people write mHz for megahertz, that's wrong too.
> I'm sometimes a pulsar astronomer, so I actually use mHz for
> millihertz.

Yes, and I recently bought a signal gen. and one req. was mHz range.

> > Don't do that is the answer.
> >> Should "m" by itself represent "meter" (SI) or "0.001" (SPICE).
> > m by itself is just a lone m, ask the author what he means by it.
> > A number plus m as in 10 m is 10 meter.
> > If spice treat 10m as 0.01, I would call that a local anomaly.
> We're talking about SPICE netlisting here, and under what
> circumstances (if any) the netlister should attempt to translate
> standard SI notation into its SPICE equivalent.

Don't break current behaviour, add new options to get any changed
behaviour.

> Asking the author is not a practical option in an automated process.

Maybe one shouldn't put a lone m there then.

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