Commit Graph

214 Commits

Author SHA1 Message Date
krasimir
042790fdf6 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
95733f0b1b the exhaustive/random generator now knows how to handle computable functions in the types 2010-10-11 17:18:28 +00:00
krasimir
be9ad26aea refactor the API for random generation again. Now PGF contains probabilities in the abstract syntax 2010-10-02 13:03:57 +00:00
krasimir
72f505d7df update PGFService to work after the extensions in the random generation API 2010-09-30 07:35:54 +00:00
hallgren
5e1f2c069f 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
af8645a2f3 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
cff7dfcf7b 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
c5f0b31dbe 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
c234222cd9 Bug fix: add missing error handler for statically served files in pgf-server HTTP mode 2010-09-02 13:54:16 +00:00
hallgren
ea67281820 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
9aa7c88c5a native representation for HOAS in PMCFG and incremental type checking of the parse forest 2010-08-09 10:10:08 +00:00
krasimir
b20821dfc3 more advanced complete function in the PGFService 2010-08-24 15:58:22 +00:00
krasimir
39e83436e2 bugfix in the PGF browser 2010-07-31 16:04:15 +00:00
krasimir
57ec23e630 the PGF service now generates samples of the syntax in the browsing information 2010-07-31 15:54:03 +00:00
krasimir
b8214aff83 fix: FastCGIUtils.outputHTML should do UTF8 encoding 2010-07-31 13:56:55 +00:00
krasimir
fefd78222a fix: PGFService should type-check the trees that comes from the user 2010-07-31 10:45:59 +00:00
krasimir
b57dda5d94 detailed information for the type errors from PGFService 2010-07-13 15:33:54 +00:00
krasimir
d0ce81a02c update the shell scripts and some other configuration files for GWT 2.0.4 2010-07-08 12:03:36 +00:00
krasimir
4539830212 add src/ui folder for both Android and GWT UIs 2010-07-08 10:06:26 +00:00
krasimir
1cb3cfb4c2 change the package name of the GWT Apps to org.grammaticalframework.ui.gwt 2010-07-08 09:55:09 +00:00
krasimir
161403e7d3 upgrade to GWT 2.0.4 2010-07-08 09:32:17 +00:00
krasimir
0dbe60b7bf FridgeApp and TranslateApp now show the type errors 2010-07-08 07:57:36 +00:00
krasimir
1a7210dc18 fix PGFService after the change in the parser API 2010-07-07 14:46:24 +00:00
aarne
b66d93f44f 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
8742ebee38 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
a3e1d43318 fix PGFService after the change in the API 2010-04-30 15:09:21 +00:00
hallgren
ee9acfc772 Update version numbers for build-depends in gf-server.cabal 2010-04-22 14:22:55 +00:00
krasimir
f806a7890d 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
a4894be101 the pgf service now compiles with the latest CGI package 2010-04-22 12:37:36 +00:00
hallgren
4c757f4683 Changes to lighttpd.conf to allow grammars.cgi to work 2010-04-20 14:46:36 +00:00
aarne
1040f2a10d in PGFService disambiguation, show tree if there's no disamb grammar 2010-04-04 20:45:50 +00:00
aarne
66cca22f38 simplified the treatment of politeness in Phrasebook 2010-03-30 18:48:59 +00:00
aarne
0e91a4d84d disambiguation in Phrasebook grammars, PGF server, and the GUI 2010-03-30 15:39:11 +00:00
aarne
1c088506b3 catching initial bind symbol in PGFServer 2010-03-28 20:32:03 +00:00
aarne
5c0fb2cb7e text-like unlexer for phrasebook web service 2010-03-26 22:08:48 +00:00
aarne
5e4548e4da fixes for webdemos, including bug in StructuralIta 2010-03-26 17:38:20 +00:00
aarne
cd25764350 www api command translategroup, which uses groupResults 2010-03-22 22:04:36 +00:00
hallgren
e239e3331a Quick fix to adapt to new version of the PGF library. 2010-03-04 18:46:18 +00:00
hallgren
9fc30c11df Update version number 3.0 to 3.1 in a number of places 2009-12-15 15:27:26 +00:00
krasimir
286e60c7dc fix the directories in gf-server.cabal 2009-12-14 15:21:09 +00:00
krasimir
c92f9d1c0c reorganize the directories under src, and rescue the JavaScript interpreter from deprecated 2009-12-13 18:50:29 +00:00
krasimir
836e742ddf TranslateApp now have browser for abstract syntax 2009-11-29 14:51:12 +00:00
krasimir
abe21f6fbb function doListGrammars in PGFService is obsolete 2009-11-26 16:27:04 +00:00
krasimir
12d64654d7 the default function of the PGFService should return list of functions as well as list of categories 2009-11-26 14:47:35 +00:00
krasimir
b596086edf change PGF.categories to return list of identifiers instead of types 2009-11-26 14:43:31 +00:00
aarne
8ed9fe442d Dutch lexicon generated via Google translate; method in lib/src/MkExx.hs 2009-11-16 15:21:56 +00:00
krasimir
f0ab7463e8 fix the compilation of MorphoService.hs 2009-10-27 09:10:50 +00:00
krasimir
73e1f0e81e added tree visualizations in TranslateApp 2009-10-24 10:38:21 +00:00
krasimir
3cf44aaa74 make the GF server to compile after that changes in the PGF runtime 2009-10-15 11:32:25 +00:00
aarne
6a744bfb5f paths in Symbol modules; present in ResRon (not complete) 2009-10-05 12:54:17 +00:00