Hi Patrick, I am now working on a rewrite of the texshow perl script, and we still have to come up with an interface for the interface between the perl script and web version. For the immediate (and not so immediate) future, this will be just queries from texshow to the web using a GET url, I have no plans for an editting interface in the script (for now). How do you feel about this URL convention: <cgi>?interface=<interface>&previous=<unixtime> <cgi> == http://texshow.contextgarden.net/query.cgi <interface> == cont-en OR cont-nl OR .. <unixtime> == unix timestamp of the previous query from this particular instance of texshow And then the CGI returns an XML snippet containing all of the changed command definitions. Is that acceptable and doable? Greetings, Taco
Hello Taco,
How do you feel about this URL convention:
<cgi>?interface=<interface>&previous=<unixtime>
<cgi> == http://texshow.contextgarden.net/query.cgi <interface> == cont-en OR cont-nl OR .. <unixtime> == unix timestamp of the previous query from this particular instance of texshow
looks fine, except for "query.cgi" should get a more sensible name, such as ifdiff or ... (?)
And then the CGI returns an XML snippet containing all of the changed command definitions. Is that acceptable and doable?
Acceptable? Yes. Doable? hmm, currently I take all interface descriptions from cont-en.xml unless there is a user-changed one stored locally. So I don't keep a history of the xml-definitions, but I can do so (in order to get the timestamps). Patrick -- ConTeXt wiki: http://contextgarden.net
Hello Taco, what about: ts.rb?what=getdesc&if=en&previous=1011612922 you can use texshowtest.contextgarden.net as a playground, the database is not in sync with the regular texshow.contextgarden.net (but both now accept getdesc as a command). lang currently defaults to "en", in the near future you can set it with .... &lang=de (or whatever), this is the language of the description/commands/examples. I used the xml structure of the old file we once had. I can change the namespace ... if you don't like it. Patrick -- ConTeXt wiki: http://contextgarden.net
Hi, Patrick Gundlach wrote:
Hello Taco,
what about:
ts.rb?what=getdesc&if=en&previous=1011612922
Because we want texshow to become a bit more generic, it would be just a little bit nicer to have "if=cont-en", but besides that, it works like a charm, thanks!
lang currently defaults to "en", in the near future you can set it with .... &lang=de (or whatever), this is the language of the description/commands/examples.
For the moment, I will assume that example language == interface language (to put it another way: I do not keep language information along with the interface definition at all).
I used the xml structure of the old file we once had. I can change the namespace ... if you don't like it.
That's fine, I still had code for that structure so this was
very convenient. The only extension I have made is that the
locally kept version is stored with an extra attribute:
Taco Hoekwater
ts.rb?what=getdesc&if=en&previous=1011612922
Because we want texshow to become a bit more generic, it would be just a little bit nicer to have "if=cont-en", but besides that, it works like a charm, thanks!
good. Now you can also use cont-?? as an interface request (preferred).
That's fine, I still had code for that structure so this was very convenient. The only extension I have made is that the locally kept version is stored with an extra attribute:
I could include this if you want me to (which would make sense) Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
Taco Hoekwater
writes: ts.rb?what=getdesc&if=en&previous=1011612922
Because we want texshow to become a bit more generic, it would be just a little bit nicer to have "if=cont-en", but besides that, it works like a charm, thanks!
good. Now you can also use cont-?? as an interface request (preferred).
thanks
That's fine, I still had code for that structure so this was very convenient. The only extension I have made is that the locally kept version is stored with an extra attribute:
I could include this if you want me to (which would make sense)
I have to merge with the local version anyway, so it would not help, I already know the time I fetched the new changes from contextgarden within my program code, anyway. But it would not confuse my code either, so either way is fine with me. Greetings, Taco
participants (2)
-
Patrick Gundlach
-
Taco Hoekwater