Mail Archives: geda-user/2020/12/09/02:57:14
Roland Lutz:
...
> You may also want to have a look at the gEDA XML file format:
>
> https://hedmen.org/xorn/doc/api/html/geda-xml-format.html
I do dislike thoose chatty formats but I can't say that
B 0 0 17000 11000 15 0 0 0 -1 -1 0 -1 -1 -1 -1 -1
is much better...
(except that it is very simple to write programs for it)
Regarding:
<box x="0" y="0" width="170" height="110" color="lock" width="0"/>
why not <box pos="0,0" size="170,110" ...>, since x and y is the same
thing, just viewed from an different angle (same with witdh and heigth)
(and why do you have two "witdh"s in the example ?).
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.
And please choose a format that doesn't need all thoose citations marks
and syntactic sugar, which is fine for a parser program but not nice on
the fingers.
Regards,
/Karl Hammar
- Raw text -