On po 16. února 2009, Laurent MONIN wrote:
> On Fri, 13 Feb 2009 17:40:47 +0000
>
> Omari Stephens <x...@csail.mit.edu> wrote:
> > First off, I'll note that I'm now less averse to this than I was — it
> > turns out that the parser in GLIB only parses a subset of XML (see [1]),
> > and is consequently (I imagine) faster and simpler than a standard XML
> > parser.  That said, I believe my points below still stand.
> >
> > [1]
> > http://library.gnome.org/devel/glib/stable/glib-Simple-XML-Subset-Parser.
> >html
>
> I'm not fond of "XML everywhere philosophy" (i tend to agree Omari Stephens
> on some points), but i think Vladimir is right here:
> - parser is already ready to use (glib)
> - it is sufficiently fast (for our usage)
>
> I don't have an exact view on which changes are needed for that yet.
>
> Though i still have doubts about the reasons to change the config file
> format:
>
> "because the current format is not optimal
> for re-using components with different configuration (for example
> the configuration is saved only for the first layout window)."
>
> Can't we just modify the current format to improve things here ?

The format must support tree-like structures.

From improving the current format we will get either something similar
to XML (and IMO it is better to use real XML then) or something
ugly, like:

layout1.sidebar1.InfoPane1.title="Basic Exif"
layout1.sidebar1.InfoPane1.InfoEntry1.title="Lens"
layout1.sidebar1.InfoPane1.InfoEntry1.key="formatted.lens"
layout1.sidebar1.InfoPane1.InfoEntry2.title="ISO"
...

Vladimir

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to