Mail Archives: geda-user/2020/12/09/09:06:46
On Wed, 9 Dec 2020, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> Regarding:
> <box x="0" y="0" width="170" height="110" color="lock" width="0"/>
>
> why not <box pos="0,0" size="170,110" ...>
The former is easier to work with for XML tools (retrieving an attribute
is typically simpler than string manipulation to split the combined
coordinates).
> (and why do you have two "witdh"s in the example ?)
That's an oversight; the second one should be "linewidth".
> Or why not
> B 0,0 17000,11000 15 0 0 0,-1,-1,0 -1,-1,-1,-1,-1
> which would keep related things together and be visually easier to read.
> Or have named arguments for the lesser used args., like
> B 0,0 17000,11000 15 0 0 dash=0,-1,-1,0 fill=-1,-1,-1,-1,-1
> which could then be simplified to
> B 0,0 17000,11000 15 0 0
> which is a more reasonable size for an argument list.
These seem like a good compromise between human and tool parsability.
However, I'd prefer not to change the file format as long as I can get
away with it.
Roland
- Raw text -