Commit Graph

4117 Commits

Author SHA1 Message Date
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
aarne 65a25ad181 bronzeage grammar restored except for three ones with issues ; arabic transliteration added 2008-08-16 18:55:28 +00:00
aarne b1b2e6766d workaround in Spanish and French for a pgf compiler issue showing in pronArg 2008-08-16 12:29:04 +00:00
aarne 20fe8a8c20 improved error message in pgf compilation to help debugging 2008-08-16 12:27:59 +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
aarne 7df3c6ec72 numerals demo on the web 2008-08-15 15:28:09 +00:00
aarne f56ad59698 examples of morphological synthesis/analysis as top-level grammars 2008-08-15 12:41:04 +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
aarne 8719bb9530 typo in AllHin corrected; excluded ReflA2 in Demo (not needed in concretes any more) 2008-08-14 20:30:17 +00:00
aarne 5368b95a45 added linearization of john_PN - hope it's right 2008-08-14 20:29:21 +00:00
aarne 1302960992 forgiving names in concrete that are not in abstract, with a warning (no warning guaranteed if this is because restricted inheritance) 2008-08-14 20:25:52 +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
aarne 0caebe9092 removed optStr from IdiomEng 2008-08-14 14:21:42 +00:00
aarne ac6b028b1b changed startcat from Phr to S in Demo 2008-08-14 14:17:27 +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
bringert 56adb8b8cd Compile AllX.gf instead of LangX.gf. 2008-08-12 18:43:13 +00:00
aarne c90a558b2a fixed bugs in AllFin so that it now compiles 2008-08-12 16:13:53 +00:00