Commit Graph

171 Commits

Author SHA1 Message Date
bringert
642809fd3b JSGF pretty printing tweaks. 2006-12-20 21:43:41 +00:00
bringert
f07b0ef88e Use HughesPJ pretty printer to make JSGF output look nicer. 2006-12-20 21:39:25 +00:00
bringert
0353b7b7cb Make smaller SISR code for tokens. 2006-12-20 20:22:08 +00:00
bringert
e74d10952e Removed tracing from PrJSGF. 2006-12-20 20:14:46 +00:00
bringert
f9621483a0 Use LCLR algorithm for eliminating left-recursion, with lambda terms in SISR for getting trees right. 2006-12-20 20:10:15 +00:00
bringert
c7df9f4167 Added still unused implementation of Moore's LCLR algorithm for left recursion elimination. Fixed top category generation for SRG (included LR-elimination-added categories before). 2006-12-17 19:18:28 +00:00
bringert
4e592d495e Use [] in JSGF printing. 2006-12-17 18:16:20 +00:00
bringert
f252bb6090 Some clean-up in GF/Speech/TransformCFG.hs 2006-12-17 13:29:12 +00:00
bringert
44af93a9c9 Many fixes to JSGF format (never tested before). Implemented JSGF+SISR. Left recursion removal destroys SISR, must be fixed. 2006-12-17 13:17:17 +00:00
bringert
bd4dbfb26b VoiceXML: add _cat and _field to category names, to avoid clashing with javascript built-ins. removed debugging stuff to make maintenance easier. SRGS: changed cate and field names to match the VoiceXML change. 2006-12-16 14:19:04 +00:00
bringert
215bf61115 Towards smaller SRGs when lots of variants are used. 2006-12-15 16:09:58 +00:00
bringert
1e1401472f Include update function in generated VoiceXML. Generated linearization javaScript now uses the same abstract syntax representation as SISR. 2006-12-15 16:08:39 +00:00
bringert
0b7fef1a33 Use ebnf srg generation in PrSRGS. 2006-12-12 14:01:42 +00:00
bringert
1c8e32e641 Moved profile stuff to GF.Speech.SRG, to allow other SRG formats to include SISR. 2006-12-12 11:59:12 +00:00
bringert
87b66d5205 SRGS generation: don't include debug script stuff if debugging is disabled. Place category comments better. 2006-12-12 10:37:45 +00:00
bringert
c07300b86b SRGS+SISR: put tags after items. 2006-12-11 19:41:03 +00:00
bringert
e86aa2deb6 VoiceXML: set xml:lang (value is still fake though) 2006-12-11 16:08:15 +00:00
bringert
ce62977188 VoiceXML: print without debugging stuff by default. 2006-12-11 15:20:26 +00:00
bringert
c34c26a837 VoiceXML: don't use srcexpr in subdialogs, since Opera does not support that. Also makes fewer subdialogs nows. 2006-12-11 14:47:00 +00:00
bringert
0dc19c3139 VoiceXML: don't use subdialog srcexpr for statically know subdialogs. 2006-12-10 23:32:30 +00:00
bringert
c0db56422b Reinstate SISR field name for top-level categories. The VoiceXML generation relies on it. 2006-12-10 23:31:43 +00:00
bringert
51ed253c75 Added tag-format attribute to SRGS XML when using SISR. 2006-12-10 20:53:51 +00:00
bringert
7e8d0e49b2 Use public category with original name as SRGS start cat. 2006-12-08 20:10:28 +00:00
bringert
a4b0496378 Changed SRGS SISR printing to be closer to the current working draft standard, as supported by the WebSphere implementation (and thus Opera). 2006-12-08 19:53:44 +00:00
bringert
429cbe1139 Removed extra comma in import list of src/GF/Speech/Relation.hs. This prevented compilation on current ghc HEAD. 2006-09-13 16:46:07 +00:00
bringert
0e484f094f Disable special treatment of lists in SRGS+SISR generation, since OptimTalk can't handle it. 2006-05-31 19:41:05 +00:00
bringert
e1ea20277c VoiceXML generation: use cond attribute with blocks, instead of having ifs inside. Recommended by OptimSys support. 2006-04-27 09:30:59 +00:00
bringert
8c77d8e951 Added debugging flag to generated VoiceXML. 2006-04-20 09:46:54 +00:00
bringert
ccd5189766 Use quest_Cat to generate questions in the VoiceXML printer. 2006-04-19 09:03:19 +00:00
bringert
a663a046ed Look at both command-line and grammar startcat falgs in pg commands. 2006-04-18 12:42:20 +00:00
bringert
6eac1e2be2 Fixed left recursion removal to not create cyclic rules. 2006-04-13 15:07:17 +00:00
bringert
dbfef31538 Removed cycles when building SRGs, to avoid getting left-recursive grammars. 2006-04-13 14:47:37 +00:00
bringert
c5d0416996 generate unique new category names when removing left recursion from cfgs. 2006-04-13 14:29:27 +00:00
bringert
47dedcf256 Fixed bug in SRG top-down filtering where the start category would be removed if it wasn't referenced by itself. 2006-04-13 14:18:13 +00:00
bringert
aa309abecf Added top-down filtering to the GSL printer. 2006-04-13 13:33:35 +00:00
bringert
97956fc13f The SLF removeTrivialEmptyNodes optimization could orphan the final node. Fixed this by not bypassing final nodes. 2006-04-12 23:22:35 +00:00
bringert
cb046fea18 In GSL generation: remove punctuation before LR analysis. 2006-03-31 15:52:03 +00:00
bringert
8dfa27bb6d Added colon to the list of punctuation chars in GSL generation. 2006-03-31 15:31:33 +00:00
bringert
19af3254dc Replaced all used of Data.FiniteMap with Data.Map. 2006-03-20 12:49:31 +00:00
bringert
0dfd55a30d SRGS generation: use XML module escape mechanism. Added beginnings of a not yet working SRGS minimization function. 2006-03-03 10:40:53 +00:00
bringert
11cba226ea Towards a working VoiceXML generator. 2006-03-03 10:40:23 +00:00
bringert
e85fb4bf69 VoiceXML generation: fixed threading of existing values through subdialog calls. 2006-02-06 16:45:59 +00:00
bringert
9bae44c37d Moved general XML stuff to GF.Data.XML. Started working on VoiceXML generation. 2006-02-03 18:43:06 +00:00
bringert
bdf602b95c SRGS: add top-level rules for each GF category. 2006-02-01 19:00:48 +00:00
bringert
8cd03874f6 Include GF version and compile date in SRGS meta creator tag. 2006-02-01 18:09:47 +00:00
bringert
a26ccb40bd SRGS semantic results for list categories is now an array. 2006-02-01 18:03:13 +00:00
bringert
fd0dfd7d4d First version of SRGS with semantic tags. 2006-02-01 16:23:14 +00:00
bringert
992e212bcc Escape backslashes and double quotes in SRGS attribute values. 2006-02-01 10:24:37 +00:00
bringert
36492443e9 Set xml:lang in SRGS grammars to the value of the language flag. 2006-02-01 10:16:40 +00:00
bringert
92f22c8f5c Use right start category names in si command. 2006-01-20 18:20:02 +00:00