* Justus Winter <4winter@informatik.uni-hamburg.de> schrieb: Hi,
I hacked up opera (at least I _think_ they do it this way) style search engine handling. I am not too happy with what I did to the config file parser, but it works for now :). The parser is beautiful in its simplicity, but it has its limitations (like not being able to handle dictionaries).
What exactly do you mean w/ "dictionaries" ? An list of values ? Then simply use an extra text file. I'm currently developing an tiny desktop environment for unexperienced users and there I often need hierachical config data (even w/ binary content). The filesystem (plus atoi()+friends) is completely enough for that purpose. Can't imagine anything simpler ;-P All filesystem access runs through my userland vfs library, libmvfs. So it's trivial to use other datasources than the local fs, eg. via 9P.
I am not sure what I would like to see, but for the moment I'd go with dictionaries and the ability to include other files.
Includes and macros can be easily done via cpp.
I was also unsure about the proper way to inform the user of errors and I believe the reason for this is simply that there is no mechanism to do this properly.
I am thinking about using the browser widget to render error pages like most of the mainstream browsers. Any thoughts on this one?
Isn't an simple popup window enough ? <snip>
+# The syntax is +# +# search_url="<id>|<url>" +# +# This sets the search URL to use with "<id> <keywords>". +# %s in the URL is replaced with keywords separated by '+'. + +search_url="g|http://www.google.com/search?q=%s" +search_url="ly|http://search.lycos.com/default.asp?query=%s" +search_url="aw|http://www.alltheweb.com/search?cat=web&query=%s" +search_url="y|http://search.yahoo.com/search?p=%s" +search_url="l|http://localhost/cgi-bin/htsearch?words=%s" +search_url="cc|http://search.creativecommons.org/?q=%s" +search_url="d|http://www.dict.cc/?s=%s"
I'd prefer to have this in an extra file. Separation via whitespace seems to convenient to me. cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service - http://www.metux.de/ --------------------------------------------------------------------- Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ ---------------------------------------------------------------------