www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/07/17/16:04:24

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: geda-user AT delorie DOT com
From: Kai-Martin Knaak <kmk AT familieknaak DOT de>
Subject: Re: [geda-user] New XML file format for schematics and symbols
Date: Sun, 17 Jul 2016 22:02:41 +0200
Lines: 64
Message-ID: <nmgo92$hdq$1@ger.gmane.org>
References: <alpine DOT DEB DOT 2 DOT 11 DOT 1607171601340 DOT 19102 AT nimbus>
Mime-Version: 1.0
X-Complaints-To: usenet AT ger DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: a-89-182-77-43.net-htp.de
User-Agent: KNode/4.14.10
Reply-To: geda-user AT delorie DOT com

Roland Lutz wrote:

> I just merged a branch which adds support for an alternative,
> XML-based
> file format for gEDA schematic and symbol files.  You can find a
> description of the new file format here:
> 
>    http://hedmen.org/xorn/doc/api/html/geda-xml-format.html

cite:

/--------------------------
B 0 0 17000 11000 15 0 0 0 -1 -1 0 -1 -1 -1 -1 -1

becomes

<box x="0" y="0" width="170" height="110" color="lock" width="0"/>
\--------------------------

This is great! 
A truly human readable format that I can successfully edit without 
having the manual open at all times. 

What happens if xorn is presented with a box command that has the 
parameters x= and y= swapped? I'd expect the utility to silently read 
the values into their corresponding internal representation. Or is 
there some chatter in the logs? 

What happens on save? Does xorn try to keep the order of the 
parameters as in the original. Or does it rearrange the parameters 
into some "official" order?
I'd prefer the latter as it straightens irregularities introduced by 
manually messing with the contents. But I can certainly see why people 
would advocate for the former. (Maybe, the user deliberately 
rearranged the order. Keep changes to the file to a minimum to keep 
version control lean)


> When converting .sch files to XML files, the symbols and pixmaps
> referenced by the schematic are included in the XML file by default.

this is equivalent to the "embed" action from within gschem, right?


>  In order to make this possible, you'll need to specify the symbol
> library directories:
> 
>    $ xorn convert --symbol-library=sym/
>                   --symbol-library-search=/path/to/library/
>        example.sch example.sch.xml

So this command does not interpret the traditional geda way to tell 
where the libs are. (gafrc, gnetlistrc at their various locations) 


> 
> When using the default library included with gEDA, you can't use
> --symbol-library-search=, unfortunately, because it contains symbol
> name conflicts.

Can you elaborate, please?

---<)kaimartin(>---


- Raw text -


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