Mail Archives: geda-user/2016/07/17/16:04:24
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 -