Commit Graph
100 Commits
Author SHA1 Message Date
bjorn 64bbd08edd Towards looking at the locale for default language. Added flag icons. 2008-09-17 10:12:36 +00:00
bjorn 64728d1205 Better error handling in GWT UI. 2008-09-16 13:53:07 +00:00
bjorn 70f8bc0f99 Convert StructuralCat.gf to ISO-8859-1, it was UTF-8 but without a coding flag (except "algú?"). 2008-09-15 20:03:57 +00:00
bjorn a691f4dfaf GWT client: set Accept header to get plain text error messages, 2008-09-15 15:43:37 +00:00
bjorn 62a872b033 Added loading popup to gwt ui 2008-09-15 15:27:33 +00:00
bjorn a43ed0f99f fastcgi server: decode UTF-8 inputs produced by the gwt client 2008-09-15 15:20:15 +00:00
bjorn 1579174e14 gwt installball should not contain gf.fcgi 2008-09-15 14:40:05 +00:00
bjorn ca9b011b27 GWT: only allow a single compeltion request at a time. 2008-09-15 14:39:25 +00:00
bjorn 59065bb6fc Use abs path for gf.fcgi in gwt client. 2008-09-15 14:16:56 +00:00
bjorn b9ec6b089f Fixes to the GWT UI to be able to run it on other machines (still some hardcoded paths in the compilation). 2008-09-15 13:49:55 +00:00
bjorn c2da4129ed Added partial word completion to fastcgi server and update GWT UI accordingly. 2008-09-15 13:33:40 +00:00
bjorn 3857f4a6a6 A somewhat better solution to the words/UTF-8 problem: do encoding last, but only on what appears to be string literals. 2008-09-15 13:16:04 +00:00
bjorn a39f8cc5da Temporary fix for the grave accent a encoding problem: change compatPrint to id.
The problem is that lower case a with a grave accent is coded in UTF-8 as \195\160. 
Unicode character \160 is non-breaking space, so Haskell's words function
will break a UTF-8 encoded string at this character.
String literals in the .gfo file are UTF-8 encoded in generateModuleCode,
just before the call to prGrammar (which uses compactPrint, which used words).
The real solution would be to pretty-print the grammar to Unicode, and then
encode as UTF-8. The problem with that is Latin-1 identifers. They are now
kept in Latin-1 in the .gfo file, since Alex can't handle Unicode.
The real solution to that would be to fix Alex to handle Unicode, but 
that is non-trivial. GHC interally uses a very hacky .x file to be
able to lex UTF-8 source files. 

An alternative solution that doesn't address the weirdness of using two different
encodings in the same .gfo as we do now, is to incorporate compactPrint
into the grammar printer, to avoid having to do any postprocessing.
2008-09-15 12:38:37 +00:00
bjorn 1c16b6b6e2 Somewhat nicer gwt client ui style. 2008-09-12 21:07:14 +00:00
bjorn 75b0279a11 GWT client now has the same func 2008-09-12 11:47:41 +00:00
bjorn ddd4d418c0 server: changes lang field to name 2008-09-12 11:32:30 +00:00
bjorn 9cebc28e8e Update gf-client.html with new gf.fcgi output types. 2008-09-12 11:14:02 +00:00
bjorn a282f868bc Change JSON structures returned by the translation server to always be arrays of objects. 2008-09-12 11:05:38 +00:00
bjorn 78a86d6092 translation server: added limit argument to /complete. 2008-09-12 10:13:16 +00:00
bjorn 585368e003 Started working on Google Web Toolkit version of translation server ui. 2008-09-12 10:03:12 +00:00
bjorn f5d3c17777 Fix binary-dist to include gfc and exclude compiled grammars, since the latter didn't work anyway. NOTE: you must re-run autoconf (actually the previous patch is the one that requires this). 2008-09-11 08:35:17 +00:00
bjorn 257636ec21 Remove old editor shell script and configure stuff. 2008-09-11 08:30:29 +00:00
bjorn b2e874b057 Change version number in configure.ac to 3.0-beta2 too. 2008-09-10 12:48:34 +00:00
bjorn f772cded9e Added temporary completions button to AJAX translation UI. 2008-09-10 11:57:00 +00:00
bjorn 3f4d79eba1 Note about deleting /tmp/fcgi_ipc 2008-09-10 11:55:10 +00:00
bjorn a49362f225 missing sudo in erver README 2008-09-10 11:52:45 +00:00
bjorn a16bb8b40d mod_fastcgi installation instructions in src/server/README 2008-09-10 08:44:18 +00:00
bjorn 6dbc576426 Note that Apache must be restarted after config changes. 2008-09-10 08:19:50 +00:00
bjorn 26d8a7254d Fix type error in fastcgi server.
I forgot to fix this after I copied the modified FastCGIUtils from morpho-server.
2008-09-10 07:09:44 +00:00
bjorn 7826a445b0 More info in src/server/README. 2008-09-09 12:38:45 +00:00
bjorn 9e3b3f1bd2 Disable translation on every keystroke, and completion, in the gf FastCGI AJAX client, since it can be too slow. 2008-09-09 12:19:28 +00:00
bjorn af2dbf293a Updated JS editor to the latest version from Moises. 2008-09-09 09:32:32 +00:00
bjorn dbe3571fcc Added --haskell-prefix option for changing the constructor prefix in generated Haskell modules. 2008-09-03 15:42:11 +00:00
bjorn 27fdc19b20 Added missing space in Constructors.gf whose absence introduced an extra space in the library synopsis. 2008-08-29 08:41:38 +00:00
bjorn 1919fe99a6 gf-server: the readData function given to getData should be m a, not IO a. 2008-08-24 20:44:30 +00:00
bjorn 85bfb64e2a First (hacky) working version of FastCGI JSON morphology server. 2008-08-24 19:31:12 +00:00
bjorn f8487ec6b9 Move CGIError stuff to FastCGIUtils. 2008-08-24 19:12:44 +00:00
bjorn 646bf9c4d8 URL decode text input in fastcgi server, including %uXXXX sequences. 2008-08-24 17:39:24 +00:00
bjorn 2ffc138e52 Overload mkAdv in TrySwe. 2008-08-24 14:53:45 +00:00
bjorn f246747496 Completed SISR 1.0 support (untested). 2008-08-24 14:53:21 +00:00
bjorn c42e4c0690 Export modifyFlags and modifyModuleFlags from GF.Infra.Options. 2008-08-24 14:52:49 +00:00
bjorn b8fae8f5a4 Re-enable Catalan in the server demo grammar. 2008-08-24 10:19:44 +00:00
bjorn c80538e068 Added target for building translation server grammar for LangX. 2008-08-23 10:33:16 +00:00
bjorn 45ab3ea0d9 Added README with build instructions for the fastcgi server. 2008-08-22 13:16:31 +00:00
bjorn 0e80a79e1d Don't include DemoCat in server example grammar, since some parts are missing. 2008-08-22 13:15:51 +00:00
bjorn 849c146973 UTF8 encode all generated XML. 2008-08-22 09:47:42 +00:00
bjorn acf1a17268 In GF.Compile.Export, output file name extensions should not have double dots. 2008-08-22 09:27:44 +00:00
bjorn 440d9c49b9 Renamed the gf3 executable to gf in GF.cabal 2008-08-22 08:45:40 +00:00
bjorn 243bd895e4 Added srgs_xml_nonrec output format. 2008-08-22 08:43:58 +00:00
bjorn b73f03b366 Removed Overload modules from GF.cabal. 2008-08-22 07:18:34 +00:00
bjorn 921798bc2a Added target to lib/resource/Makefile for building a tarball of the compiled resource library. 2008-08-22 07:06:07 +00:00
bjorn a16b87f441 Use overloaded API in peace keeping grammar. Still not compiling, "no instance of mkS for Cl among ... Cl ... ?" 2008-08-19 14:35:45 +00:00
bjorn 7616c2ea23 removed some dead code from gflib.js 2008-08-19 14:08:02 +00:00
bjorn 5477222a4d tweak ajax client html 2008-08-19 12:40:17 +00:00
bjorn c43e5bf979 First version of ajax / fastcgi interface with completion. 2008-08-19 12:29:31 +00:00
bjorn 07e0449132 Remove src/server/grammar.pgf from the repo, use 'make food' if you want it. 2008-08-19 08:14:22 +00:00
bjorn 9f9bb2d5b7 Added parse and linearize functions to the fastcgi server. Some refactoring. 2008-08-19 08:13:51 +00:00
bjorn 6d0cdf3cda Fix order in the cncnames list in unionPGF. It was made in reverse. 2008-08-19 07:40:45 +00:00
bjorn 6856723e48 Ajax: use onsubmit instead of onclick, to catch Firefox auto-submit-on-enter. 2008-08-18 20:56:30 +00:00
bjorn 8767009f7e Ajax translator: copied iPhone viewport stuff from Aarne's JS translator, untested. 2008-08-18 20:28:22 +00:00
bjorn 33b71088ec AJAX translator: update translation when the from or to language is changed. 2008-08-18 20:26:52 +00:00
bjorn 591c44f05b Some peacekeeping clean-up, still far from compiling. 2008-08-18 20:22:25 +00:00
bjorn 018b8e2f0d Include all languages in the demo pgf for the fastcgi server. 2008-08-18 20:21:02 +00:00
bjorn ca667318cf Sort languages in fastcgi /languages output. 2008-08-18 20:20:32 +00:00
bjorn 6360d3f473 Fixed bug in russian regular compartives. Predef.tk/dp have *really* confusing names, I don't think I ever got it right on the first try. 2008-08-18 19:05:46 +00:00
bjorn 4925580877 When producing PGF, do UTF-8 encoding of the whole file after pretty printing instead of walking through the PGF structure before pretty-printing.
The old code was brittle, and only converted strings in the lins and opers, not in printnames and parsers. The old code also double encoded some grammars when using gfc to combine PGF files.
2008-08-18 12:34:56 +00:00
bjorn ae90af3211 Updated AJAX translator to make use of canParse and the fixed parseAllLangs. 2008-08-18 09:38:21 +00:00
bjorn 686dd71041 Cleaned up the Demo conrecte syntaxes now that they don't have to list the restricted inheritance. Added language codes. 2008-08-18 09:37:01 +00:00
bjorn 78cd216243 Added canParse function to the PGF API. Make parseAllLang and parseAll skip languages which don't have parsers, instead of always throwing exceptions when some language is missing a parser. 2008-08-18 09:26:24 +00:00
bjorn 5e1836d4f9 Added languageCode function to the PGF API. 2008-08-18 09:25:43 +00:00
bjorn 7743fee09c Removed spurious lin foo = bar in DemoEng. 2008-08-18 08:58:11 +00:00
bjorn c9983ac6b5 Updated resource grammar fle list in GF.cabal 2008-08-18 08:47:39 +00:00
bjorn 95cdaaf4c4 gfc can now combine PGF files. 2008-08-15 21:10:54 +00:00
bjorn 0f51f5187c Added peacekeeping example back in. Doesn't compile yet. 2008-08-15 20:21:12 +00:00
bjorn e2f5add011 Added Makefile for fastcgi server. 2008-08-15 20:33:04 +00:00
bjorn e121f8f4cf Qualify PGF import in fastcgi server, to avoid hiding Language, which breaks with older cgi versions. 2008-08-15 20:31:23 +00:00
bjorn c00007c49e Added a basic stylesheet for the js and ajax translators. 2008-08-15 11:46:36 +00:00
bjorn 310d7cc63a JS translator: fixed typo, before a ul was produced instead of an li 2008-08-15 11:28:41 +00:00
bjorn a4bc886a31 First working version of the AJAX translation client. 2008-08-15 11:14:13 +00:00
bjorn c32be3e827 Change JS translation to replace existing output when a new translation is done. 2008-08-15 10:53:59 +00:00
bjorn 5939be16b8 Refactor js translator to be able to share some code with the ajax version. 2008-08-14 18:51:06 +00:00
bjorn b8de42f050 Started working on an AJAX client for the fastcgi server. 2008-08-14 15:56:52 +00:00
bjorn f29fac369e Added /cats and /langs to fastcgi server. 2008-08-14 15:56:38 +00:00
bjorn ca5a30b3f7 Print gf commands in Make.hs for debugging purposes. 2008-08-14 15:25:05 +00:00
bjorn 4792a92eb5 Better error handlig in the GF FastCGi server. 2008-08-14 12:08:38 +00:00
bjorn 38d37c4149 Added first version of the GF FastCGI server. 2008-08-14 09:06:26 +00:00
bjorn 3aee461ec0 Added startcat flag to Demo.gf 2008-08-14 08:07:24 +00:00
bjorn 5245c1e2b7 Remove the grammars directory. It was full of old grammars that don't compile these days. See the old source distributions if you want them. 2008-08-14 07:58:04 +00:00
bjorn 664bc8f534 Added .PHONY to lib/resource/Makefile 2008-08-14 07:57:50 +00:00
bjorn f43f756edb Remove superfluous DemoI.gf. 2008-08-14 07:56:41 +00:00
bjorn a709c654d1 Remove src/module-structure.txt, it's about the restructuring in GF 2.2. 2008-08-14 07:14:22 +00:00
bjorn b296099441 Include concrete syntax flags in generated JS. 2008-08-13 12:08:11 +00:00
bjorn 538f173447 Added missing translator.js 2008-08-13 11:11:25 +00:00
bjorn d43f3e7f5d Add language selectors to JavaScript translator. 2008-08-12 20:13:41 +00:00
bjorn d836aac9cd First working JavaScript translator. 2008-08-12 19:35:27 +00:00
bjorn 03660714f1 Use Food grammar as the example grammar.js. 2008-08-12 19:35:05 +00:00
bjorn 48e1ff8b3c russian: possesive pronouns don't get inital n after prepositions 2008-06-30 18:13:19 +00:00
bjorn ff80576666 Don't build lib twice in make binary-dist. 2008-06-27 18:16:46 +00:00
bjorn 99762c4bbc Build gfdoc in binary-dist, since the tarball includes it. 2008-06-27 18:15:27 +00:00
bjorn 428d92eac0 Set charset to utf-8 when printing html code. This is needed to get Safari to display resdemo.html correctly. 2008-06-27 18:14:19 +00:00