1
0
forked from GitHub/gf-core
Commit Graph

1548 Commits

Author SHA1 Message Date
bjorn
8fe2a1cc59 Added semantic interpretation tag printing to the *bnf grammar printers. 2008-09-26 12:57:20 +00:00
bjorn
b64d25b3be Use ebnf format for "regular" output-format. 2008-09-26 10:20:18 +00:00
bjorn
a84849bee2 Changed nolr printer to use EBNF format. 2008-09-26 10:03:42 +00:00
bjorn
9010afef50 ebnf printer: print external cats first. 2008-09-26 09:58:57 +00:00
bjorn
d54ba6f112 bnf and ebnf printer: align ::= symbols. 2008-09-26 09:54:09 +00:00
bjorn
93e9d60765 SRG category renaming: don't count the external cats when calculating indices. 2008-09-26 09:44:02 +00:00
bjorn
d80c71f688 Changed SRG category renaming to use GF cat + index among CFG cats for that GF cat, instead of the old Concrete syntax name + index among all CFG cats. 2008-09-26 09:39:48 +00:00
bjorn
c588e8ca2b Oops, I accidentally disabled all CFG simplification and LR-removal with the ENBF printing patch. 2008-09-26 09:39:04 +00:00
bjorn
8c348f963f Change category naming in CFG generation: the number now starts from 1 for each GF category, instead of being the FCFG category number. 2008-09-26 09:28:03 +00:00
bjorn
824d72bf16 Added --output-format=ebnf. 2008-09-26 09:20:39 +00:00
bjorn
84dec7aaa2 In CFG generation: don't add linrow number if the lincat has only a single constituent. 2008-09-26 09:06:52 +00:00
bjorn
367cc0acb9 Added --output-format=nolr. Minor makeRegular refactoring. 2008-09-25 13:41:07 +00:00
bjorn
8001ea8ea0 Added --output-format=regular. 2008-09-25 11:49:00 +00:00
bjorn
4d96eb7e9a Fixe copy-paste error: srgs_abnf_nonrec produced xml, fixed now. 2008-09-25 11:36:04 +00:00
bjorn
716250bcf1 Somewhat nicer FCFG output format. 2008-09-25 08:44:23 +00:00
bjorn
90b2441c34 Added an FCFG output format (--output-format=fcfg). This now lives in GF.Speech.PGFToCFG, but should probably move somewhere else. 2008-09-25 08:41:49 +00:00
bjorn
0d1b2c01b9 Got SRGS ABNF generation to compile. 2008-09-23 12:56:25 +00:00
bjorn
66d4909142 Added srgs_abnf_nonrec grammar printer to GF.Infra.Options. 2008-09-23 12:44:17 +00:00
bjorn
c01af6168b Re-added old PrSRGS_ABNF (does not compile yet). 2008-09-23 12:41:44 +00:00
aarne
961261c46e use hex in transliteration table 2008-09-23 09:04:03 +00:00
aarne
2269a5ba41 Telugu transliteration 2008-09-23 08:49:58 +00:00
aarne
aacf6945fb moved lib/next-resource to next-lib/src, to enable linking with next-lib as value of GF_LIB_PATH 2008-09-22 11:49:15 +00:00
bjorn
3d11bf48a3 GWT: somewhat nicer iterable() hack. 2008-09-22 10:11:15 +00:00
bjorn
491a829105 Added iterable() method for nicer iteration through GF method results. (GWT) 2008-09-21 20:37:27 +00:00
aarne
292df86e25 adapted Hindi to next-resource 2008-09-20 14:40:18 +00:00
bjorn
279ba4823b Fixed gf-morpho-server.cabal name typo. Added basic README for morpho server. 2008-09-18 20:12:01 +00:00
bjorn
bc2447bcbb GWT: disable translation until the language info has been loaded from the server, 2008-09-17 13:25:08 +00:00
bjorn
7c79fd0aa9 GWT: update to use new /grammar resource. Select from language based on Accept-Language header. 2008-09-17 13:04:10 +00:00
bjorn
0896d6dee1 fastcgi: rename /info to /grammar 2008-09-17 12:42:05 +00:00
bjorn
4a2bac3cf2 fastcgi: replace /categories, /languages and /mylanguage with /info. 2008-09-17 12:37:34 +00:00
bjorn
9265be0326 fastcgi server: add /mylanguage resource, which selects the language that best matches the Accept-language header. 2008-09-17 12:22:17 +00:00
bjorn
ee40c265b7 GWT: comment out flag icon stuff in CSS. 2008-09-17 11:40:35 +00:00
bjorn
64bbd08edd Towards looking at the locale for default language. Added flag icons. 2008-09-17 10:12:36 +00:00
krasimir
9827f433fb build parsers on demand if they aren't in the PGF file 2008-09-16 15:35:15 +00:00
krasimir
a0fb2a0b0b fix the segmentation fault with Swedish 2008-09-16 15:11:06 +00:00
bjorn
64728d1205 Better error handling in GWT UI. 2008-09-16 13:53:07 +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
aarne
219eab4c1f completing resource api with things needed in WebALT 2008-09-12 22:31:13 +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