summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-08-24pgf-service: apply the OpenMath LaTeX function only when linearizing to ahallgren
concrete language whose name ends with LaTeX. This change also avoids duplicating output and, in addition to the linearize command, applies the transfer also when using the linearizeAll command.
2011-08-23pgf-service: add Jordis transfer function for OpenMath LaTeX outputhallgren
2011-08-22minibar: documentation updatehallgren
2011-08-22minibar: quick fix to allow literals to be entered.hallgren
If you press Enter, the current word will be accepted, even if there are no matching completions. (You can now use names of people when constructing sentences in the Letter grammar, for example.)
2011-08-22commented Compute/Concrete with explanationsaarne
2011-08-22pgf service: external service hook: always format the output as a JSON stringhallgren
2011-08-22pgf service: added a hook for external serviceshallgren
This is really reinventing CGI, people should learn how to write CGI scripts instead... TODO: better handling of temporary files
2011-08-21minibar: documentation fixeshallgren
2011-08-19minibar: bug fix for "Try Google Translate" buttonhallgren
2011-08-17gfse: fix an issue with Webkit browershallgren
For lin and lincats with empty RHSs, there was nothing to point to to make the edit button (the "%" button) appear in browsers based on Webkit (Safari, Chrome).
2011-08-16minibar: adding pgf_offline.jshallgren
This file exports the same PGF runtime interface as pgf_online.js but calls the hs2js translation of the PGF runtime library (which is not included in darcs).
2011-08-11minibar: documentation and API workhallgren
2011-08-11minibar: some functions were in the wrong filehallgren
2011-08-09minibar: more documentation (in minibar-api.html)hallgren
2011-08-08minibar: refactoring for improved modularityhallgren
Two smaller objects have been factored out from the Minibar object: Input and Translations. These have been placed in two separate files: minibar_input.js and minibar_translations.js. Some common auxiliary functions have also been moved to a separate file: minibar_support.js
2011-08-08minibar: resolve conflicthallgren
2011-08-03minibar: improve pgf_online.jshallgren
pgf_online.js has been simplified and generalized to support the full GF Web Service API. The changes are backwards incompatible, unfortunately. The documentation and minibar.js have been updated accordingly.
2011-08-03minibar: small code and documentation tweakshallgren
2011-08-08minibar: recording old configuration changeshallgren
2011-08-01gfse: added links to download PGF files for user's grammarshallgren
2011-08-01gfse: add missing file share.html to darcshallgren
Also fix bug in share.html by adding cloud.js to the list of loaded JavaScript files.
2011-07-29gfse: some correctness checks for concrete syntaxhallgren
The editor now calls the GF server to check the syntax of expressions that are part of concrete syntax (except for parameter types). This is currently done by using the cc command of the GF shell, which puts some unnecessary restricitons on operation definitions...
2011-07-29gfse: refactoringhallgren
Factor out functions that interface to the old cloud service (upload.cgi) from editor.js into cloud.js. Merge changes from editor2.js into editor.js and factor out functions that interface to gf -server into clouds2.js.
2011-07-26gfse: about: added a note that each grammar has a unique identity ↵hallgren
independent of its name
2011-07-25gfse: various small improvementshallgren
2011-07-21GenIP, GenRP in Extra and any_Quant in ExtraEngaarne
2011-07-07gfse: new section "Grammars in the cloud" in about.htmlhallgren
2011-07-07gfse: grammars in the cloud, still primitve, but good enough to be installed ↵hallgren
on the server, I think
2011-07-07gfse: grammars in the cloud, work in progresshallgren
Cloud merging: when sharing grammars between two devices that previously each had separate grammar directoies on the server, clean up one of the directories and make it a symbolic link to the other.
2011-07-06gfse: grammars in the cloud, work in progresshallgren
2011-06-08gfse: initial support for grammars in the cloudhallgren
This lets the user access the same set of grammars from multiple devices. Sharing grammars between multiple users is possible but discouraged at the moment. There is no version handling, so concurrent editing of the same grammar by different users might result in one user overwriting changes made by another user. (The same goes for cuncurrent editing on multiple devices by a single user, of course.)
2011-06-21minibar support.js: add function ajax_http_post for posting FormDatahallgren
2011-06-21gf-server: make pgf-service work the Apache mod_fastcgihallgren
pgf-service now appears to works with Apache mod_fastcgi (under Mac OS X) in addition to lighttpd. One difference appears to be that while lighttpd passes the name of the PGF file in the SCRIPT_FILENAME variable, Apache passes it in PATH_TRANSLATED. But perhaps this depends on exactly how the fastcgi service is configured. The following is what I added to the Apache configuration file to test this: <Directory /Library/WebServer/Documents/fcgi-bin> SetHandler fastcgi-script Options +ExecCGI </Directory> Action pgf-service /fcgi-bin/pgf-service AddHandler pgf-service .pgf
2011-06-21gf-server: enable -rtsopts when compiling with ghc>=7.0hallgren
2011-06-21gf-server.cabal: a separate flag for the content servicehallgren
* Use cabal install -ffastcgi to compile the fastcgi server. * Use cabal install -fcontent to compile the content service (off by default, currently broken) * Use both flag to compile both.
2011-05-07gfse: fix a problem in browsers where "class" is a reserved keywordhallgren
2011-06-20refinementNepali-11-06-20virk.shafqat
2011-06-14allow empty lines in transliteration filesaarne
2011-06-02Predef functions toUpper, toLower, isUpperaarne
2011-05-19refinementsTextUrd-11-05-19virk.shafqat
2011-05-06gfse: you can now add concrete syntax for arbitrary languageshallgren
Before, you had to pick a language from a list of supported languages, but now you can also pick Other and change the language code afterwards.
2011-05-06fixed problems in persian transliteration pointed out by Elnazaarne
2011-05-02transliteration via configuration file: ps -to=file or ps -from=fileaarne
2011-04-20Ctrl-C shouldn't terminate the GF shellhallgren
This quick fix should make Ctrl-C in the GF shell behave more like it does in other shells: even if no command is running, Ctrl-C now just gives you a new prompt instead of terminating the shell.
2011-04-15GFI.hs: some refactoring for readabilityhallgren
Also some minor changes in how Ctrl-C is handled and how CPU time is measured.
2011-04-13gfse: use "gf -server" mode instead of upload.cgihallgren
Work in progress on making the online grammar editor use the new "gf -server" mode instead of the old upload.cgi script. A first benefit is that the editor now calls the server to check the syntax of lin & lincat definitions. (But the links to minibar/gfshell/quiz are not available at the moment.)
2011-04-13Added a preliminary "gf -server" mode.hallgren
The command "gf -server" now starts a simple HTTP server on port 41295, providing a simple web API to the GF compiler. It currently support the follwing operations: * creating new temporary directories for grammar uploads, * uploading grammars files for use in the GF shell, * executing GF shell commands, and * accessing static files. This means that GF now depends on some additional networking related packages, but they should be available and easy to install on all platforms. There is also a new configuration flag "server" in gf.cabal, so GF will be compiled without support for server mode if the extra packages are unavailable. Note that running gf -server while connected to the internet can be a security risk. To prevent unauthorized access to the rest of the system, it is advisable to run the server in GF_RESTRICTED mode and as a user with suitably restricted file permissions.
2011-04-13Show configuration options as part of build infohallgren
The GF shell welcome message will now include something like This is GF version 3.2.1-darcs. Built on darwin/i386 with ghc-7.0, flags: interrupt where a list of enabled configuration flags are included on the last line. This is implemented in GF.Infra.BuildInfo by consulting the CPP macros defined by the respective option in gf.cabal. For this to work, GF.Infra.BuildInfo obviously has to be updated when new flags are added to gf.cabal or if the CPP macros are renamed. (Also, I suspect that if you reconfigure with different flags and rebuild GF without cleaning first, the BuildInfo module will not be recompiled, resulting in a misleading welcome message...)
2011-04-13GF.Infra.UseIO: add functions readBinaryFile & writeBinaryFilehallgren
2011-04-11minibar: fix typohallgren