Mail Archives: geda-user/2016/02/16/13:48:41
--Apple-Mail=_BA9E70ED-3DD6-4206-8D61-D51897E4E2E7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=windows-1252
On Feb 16, 2016, at 11:14 AM, DJ Delorie <dj AT delorie DOT com> wrote:
>=20
>> On the other hand, we already use "/" for discerning hierarchy, so =
that
>> already implies a certain restriction of legal characters within a =
net-name
>> portion. I'm sure we may also run into problems with our existing =
format,
>> with "-", where "-" is present in the net-name, and/or pin-name. =
(U1-1,
>> U2-2 etc..)
>=20
> You're talking about "what are legal characters for refdes's and
> netnames" but I'm talking about "what characters should gnetlist be
> able to handle properly". At the level of "what strings get passed
> through without gnetlist crashing" it should be UTF-8.
gschem works fine with UTF-8. gnetlist doesn=92t crash when it sees =
UTF-8, although back ends generally seem to substitute =93?=94 for UTF-8 =
characters in output for some reason, even though the data passed to the =
back end is proper. Something about Guile output, I think.
>=20
> Sure there are syntax-related characters like / and - but those aren't
> problems *for gnetlist* as long as it passes them downstream
> correctly.
>=20
> If we decide we want to allow characters like / and - in netnames,
> refdes's, and whatnot, then we need to come up with a way for those
> names to be communicated between gschem and downstream without
> corruption or confusion - assuming downstream has a way of doing so.
> gsch2pcb uses '-' between refdes and pin, but File->Import doesn't,
> for example, so if we want to allow '-' in a netname, either gsch2pcb
> needs to be prepared to see two '-'s or we have to deprecate it in
> favor of File->Import.
>=20
As far as I know, the only character gschem can=92t put into a refdes or =
netname is NULL. So, a robustly coded back end should, in principle, =
alias anything in UTF-8 that the downstream will find troublesome. Most =
of our back ends are not that fussy.
John Doty Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com
--Apple-Mail=_BA9E70ED-3DD6-4206-8D61-D51897E4E2E7
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
iQIcBAEBCgAGBQJWw274AAoJEF1Aj/0UKykRgLkP/A5wioV0mm2EIAi9/HVckS+f
sVZBidlc73c9/KPKmX7z5q5ZTMQ+owMFCQJrnsvvjga3N/sjF1Yt6BCu8RPkE/XM
QiLUspJIH7FlQlQ0gIDp41ew/kimkBMx6Kn/y/0DCwsIokU429GqzxdSrtg+XcMT
/cs5ueIUVkMYKzgTlx790XIGKB73ivYL7twSjyZwFI3jwO1K74qntg+zMn+sHDaj
4ZRo9oMLpHVxM4fASlXNbAb3EjgUFagTjmbzZk1XbVcb5iIxjACnHiBcgzdzo+tF
9c+908oHUbwcgKHPBA6o1T5O1NAvJ/BV6dfRCFMjYw+m187CfsyTmXu9e11Uv0ph
0CYaVFiJhWmp8xzeVlexKzY/pzdP1GzfAGTGzSewj8mFGkM/ZMoSmEhjnkBi6XZW
t806W/5siEVY99kd4ZBwtKTgV/CdUj9KUwzhlfZmm9J6+fDjSJfvlBOi8UiitsLo
K31fuvCDeWPOljxdD1gTrEDnGvgx9IrDlhWLtfDrSXIQIuJwSfV1hFvkiy1x0B9v
AOU5fXDQHy+vYqXqZ5syaxczEjJSBuDlaJESlhkvUtCXnsZvLBUfe4tGJApU8Frr
aZfZLju+9Vjtk3NDACMznl9ZixamCjQtlb60RZIJJHCX+AxfB6qvOidA+YGYRXsX
LWsJZ3BnbkmoCg+rMzZF
=JMq5
-----END PGP SIGNATURE-----
--Apple-Mail=_BA9E70ED-3DD6-4206-8D61-D51897E4E2E7--
- Raw text -