hallgren
5d8d1999d8
The name of the fastcgi executable has changed back to pgf-service
2011-01-09 15:32:17 +00:00
krasimir
c8b6192128
The GF editor now lets the user to upload his/her own grammars
2010-12-28 16:26:10 +00:00
hallgren
730bfd6c11
gf-server.cabal: changes to stop cabal from demanding hsql even when content-server is not going to be built
2010-12-23 17:02:13 +00:00
hallgren
59b36e0e4a
PGF web service: make the generated index.html for pgf-http a bit more informative
2010-12-22 15:06:02 +00:00
hallgren
6eb3d8ae9c
gf-server.cabal: update description of fastcgi flag
2010-12-22 15:05:10 +00:00
hallgren
ee018154c8
gf-server.cabal: make hsql-mysql optional like fastcgi
...
content-service depends on hsql-mysql, which depends on a C library, so like
fastcgi, only compile it if you ask for it explicitly with -ffastcgi.
2010-12-22 14:59:49 +00:00
hallgren
5b68ac537f
gf-server.cabal: Change the default for the flag fastcgi to False
...
If you want the fastcgi server, use cabal install -ffastcgi.
This is to avoid problems when you only want to compile pgf-http and the
fastcgi library fails to install, which it usually does, since it depends on
a C library which is not installed automatically with cabal.
2010-12-22 14:49:17 +00:00
hallgren
505d99ec37
PGF web service: Use Content-Type text/javascript from JSON output
...
The Content-Type used to be text/json, but this caused warning messages in
some web browers.
2010-12-22 14:47:35 +00:00
krasimir
d28242c03e
tweak gf-server.cabal
2010-12-22 12:32:13 +00:00
hallgren
2e6269ddb4
pgf-http now uses $datadir/www instead of ./www as the document root
...
Along with the changes to Setup.hs it should now be enough to do
cabal install
pgf-http
open http://localhost:41296/
to run the PGF service locally and play with some example grammars in minibar.
2010-12-17 16:35:59 +00:00
hallgren
7ebdacc884
RunHTTP.hs: remove hardcoded document root
...
The document root is now part of the arguments passed to runHTTP.
2010-12-17 16:33:54 +00:00
hallgren
c51d1f9833
Install minibar and some example grammars along with pgf-http
...
Together with the changes to pgf-http, this should make it much easier to run
the PGF service and minibar locally.
2010-12-17 16:29:22 +00:00
hallgren
72d2d9b204
Split pgf-server into pgf-fcgi and pgf-http.
...
The dependency on the fastcgi package made pgf-server difficult to compile, so
it is now split into
- pgf-fgci (main module in pgf-fcgi.hs), which is built only if fastcgi is
already installed or if you turn on the fastcgi flag (e.g. by doing
'cabal install -f fastcgi').
- pgf-http (main module in pgf-http.hs) which is always built (and hopefully
has no problematic dependencies.)
The modules FastCGIUtils and PGFService no longer depend on fastcgi.
2010-11-26 14:30:51 +00:00
hallgren
75ad59b121
pgf-server: more useful JSON output from lineraizeAll
...
Example:
Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearizeAll&tree=Run+YouPl
Response: [{"to":"QuizEng","texts":["you run"]},
{"to":"QuizSwe","texts":["ni l??per","ni springer"]}]
Compared to the old command linearize:
Request: http://www.grammaticalframework.org:41296/grammars/Quiz.pgf?command=linearize&tree=Run+YouPl '
Response: [{"to":"QuizEng","text":"you run"},
{"to":"QuizSwe","text":"ni l??per"}]
2010-11-25 18:30:30 +00:00
aarne
6734572aaf
linearizeAll in PGFService
2010-11-24 21:17:29 +00:00
hallgren
61837063a1
Make PGFService.hs compile again
...
+ PGFService.hs: add Nothing arguments in calls to PGF.parse_ and
PGF.getPArseOutput
+ gf-server.cabal: mark content-server as not buildable, since required source
files are missing.
2010-11-09 15:08:37 +00:00
krasimir
cecf94d729
the PGF service now can do both random and exhaustive generation. these functions now return both the generated tree and its linearization
2010-10-13 12:32:49 +00:00
krasimir
de0354f991
the exhaustive/random generator now knows how to handle computable functions in the types
2010-10-11 17:18:28 +00:00
krasimir
cb8795c222
refactor the API for random generation again. Now PGF contains probabilities in the abstract syntax
2010-10-02 13:03:57 +00:00
krasimir
c200232bfd
update PGFService to work after the extensions in the random generation API
2010-09-30 07:35:54 +00:00
hallgren
8ce7ef3bdd
pgf-server HTTP mode: omit charset from ContentType for static files
...
When pfg-server servers a static file in HTTP mode, it is output as is, so
specifying charset="iso-8859-1" could be wrong.
Note: the a charset can be specified with a meta tag in HTML files,
e.g. for files in UTF-8:
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
2010-09-24 12:34:38 +00:00
hallgren
2d75820da4
pgf-server HTTP mode: support the Accept-Language header
...
It is needed for the userLanguage field in the grammar info from pgf-server
2010-09-10 11:20:49 +00:00
hallgren
5b09b82f31
pgf-server HTTP mode: workaround for bugs in the httpd-shed package that prevented the fridge and translate web apps from working
...
queryToArguments "?&input=bla+bla"
returns [("&input","bla+bla")]
but should return [("input","bla bla")]
2010-09-03 13:12:08 +00:00
hallgren
b1bf971066
pgf-server HTTP mode feature: return the contents of index.html when the URL refers to a directory
2010-09-02 14:10:07 +00:00
hallgren
daa726d742
Bug fix: add missing error handler for statically served files in pgf-server HTTP mode
2010-09-02 13:54:16 +00:00
hallgren
ac23280320
Standalone HTTP version of pgf-server
...
pgf-server can now act as a standalone HTTP server. To activate this mode,
start it with
pfg-server http
to use the default port number (41296), or give an explicit port number, e.g.,
pgf-server http 8080
The HTTP server serves PGF files in the same way as the old FastCGI interface.
In addition, it also serves static files. The document root for static files
is the www subdirectory of the current directory where pgf-server is started.
In spite of these addition, backwards compatibility is maintaned. The old
FastCGI interface continues to work as before. (It is activated when
pgf-server is started without arguments.)
2010-09-01 14:08:52 +00:00
krasimir
b0e110cf4f
native representation for HOAS in PMCFG and incremental type checking of the parse forest
2010-08-09 10:10:08 +00:00
krasimir
d3a6866277
more advanced complete function in the PGFService
2010-08-24 15:58:22 +00:00
krasimir
98c22ef92b
bugfix in the PGF browser
2010-07-31 16:04:15 +00:00
krasimir
6a1dbd0a53
the PGF service now generates samples of the syntax in the browsing information
2010-07-31 15:54:03 +00:00
krasimir
c033bbccff
fix: FastCGIUtils.outputHTML should do UTF8 encoding
2010-07-31 13:56:55 +00:00
krasimir
c8acc8fe11
fix: PGFService should type-check the trees that comes from the user
2010-07-31 10:45:59 +00:00
krasimir
4fdd21f127
detailed information for the type errors from PGFService
2010-07-13 15:33:54 +00:00
krasimir
c671399014
update the shell scripts and some other configuration files for GWT 2.0.4
2010-07-08 12:03:36 +00:00
krasimir
9953091888
add src/ui folder for both Android and GWT UIs
2010-07-08 10:06:26 +00:00
krasimir
be06bc8a09
change the package name of the GWT Apps to org.grammaticalframework.ui.gwt
2010-07-08 09:55:09 +00:00
krasimir
faf816dbac
upgrade to GWT 2.0.4
2010-07-08 09:32:17 +00:00
krasimir
027c14dcbb
FridgeApp and TranslateApp now show the type errors
2010-07-08 07:57:36 +00:00
krasimir
ef4b068902
fix PGFService after the change in the parser API
2010-07-07 14:46:24 +00:00
aarne
dc00e7ea3a
disambiguation in Phrasebook: show Eng instead of AST if DisambL is missing; show all alternative disambiguations for each alternative translation
2010-05-28 03:40:35 +00:00
krasimir
9e7b914c3c
for backward compatibility we have the old parse function again. the old functionality is exposed by parse_
2010-04-30 20:18:26 +00:00
krasimir
c757e914cd
fix PGFService after the change in the API
2010-04-30 15:09:21 +00:00
hallgren
d4be36d218
Update version numbers for build-depends in gf-server.cabal
2010-04-22 14:22:55 +00:00
krasimir
e3a279e457
now the PGF service communicates with Graphviz using UTF8 for the input and binary for the output
2010-04-22 14:01:08 +00:00
krasimir
9db279b24b
the pgf service now compiles with the latest CGI package
2010-04-22 12:37:36 +00:00
hallgren
8b5827fc89
Changes to lighttpd.conf to allow grammars.cgi to work
2010-04-20 14:46:36 +00:00
aarne
95d4adac99
in PGFService disambiguation, show tree if there's no disamb grammar
2010-04-04 20:45:50 +00:00
aarne
5cb147fa19
simplified the treatment of politeness in Phrasebook
2010-03-30 18:48:59 +00:00
aarne
de909a4e44
disambiguation in Phrasebook grammars, PGF server, and the GUI
2010-03-30 15:39:11 +00:00
aarne
ccac96eaa0
catching initial bind symbol in PGFServer
2010-03-28 20:32:03 +00:00