summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2015-04-15extended pgf-shell functionalities: batch translation with many trees, and ↵aarne
intervening context-dependent tree manipulation
2015-04-14Translating linearization functions to Haskell: move Haskell AST and pretty ↵hallgren
printer to GF.Haskell For further separation of pretty printing concerns from conversion concerns, the Haskell AST and pretty printer has been moved to its own module, GF.Haskell, also allowing it to be reused in other places where Haskell code is generated.
2015-04-13updated app help file ; added backslash to ? in Thai keyboard xml to make it ↵aarne
compile
2015-04-09Wide coverage translation demo: show an informative error message for ↵hallgren
sentences that exceed the length limit
2015-04-07GF.Compile.ConcreteToHaskell: some documentationhallgren
2015-03-31GF.CompileInParallel: get rid of the cryptic 'thread blocked indefinitely in ↵hallgren
an MVar operation' message after compilation errors Instead show a message saying how many modules were affected by the compilation errors.
2015-03-24Wide Coverage Translation Demo: zoomable panable collapsible syntax treeshallgren
This is an experimental solution using JavaScript code from https://github.com/christos-c/tree-viewer, d3js.org and jquery.com.
2015-03-24PGF Service: add an option to return syntax trees in JSON formathallgren
The parse/translate/c-parse/c-translate commands now recognize the option jsontree=true to augment the returned JSON structure with a field called "jsontree" next to the field "tree", or "jsontrees" next to "trees", containing the the returned syntax tree in JSON format (the same format returned by the abstrjson command, similar to the format returned in the "brackets" field).
2015-03-22Wide Coverage Translation Demo: add a way to obtain inflection tableshallgren
Too see inflection tables, click on a translated sentense, then click on a blue function name in the textual representation of the abstract syntax tree.
2015-03-19Wide Coverage Translation Demo: draw abstract trees and parse treeshallgren
You can now click on a tree to toggle between the abstract syntax tree and the parse tree. Also, the implementation now uses the new C run-time requests, e.g. App14.pgf?command=c-abstrtree&tree=... so no need to install AppEng.pgf on the server any more.
2015-03-19PGF service: add commands c-abstrtree and c-parsetreehallgren
These are the C runtime variants of the absttree and parsetree commands. They work in the same way, but support fewer rendering options.
2015-03-19haskell-bind: add bindings to graphviz rendering functions for ↵hallgren
abstract&parse trees
2015-03-19fix the compilation of gu/mem.c on Windows. For now memory mapped pools on ↵krasimir
Windows are just not supported.
2015-03-18Wide Coverage Translation Demo: draw syntax treeshallgren
The trees are drawn by using the Haskell run-time request AppEng.pgf?command=abstrtree&tree=... Thus AppEng.pgf has to be installed on the server and in sync with App14.pgf. This is to avoid loading the huge App14.pgf in the Haskell run-time system, and is enough since we only need the abstract syntax.
2015-03-13GF.CompileInParallel: fix a Win32 problemhallgren
Recognize \ in addition to / when extracting path components.
2015-03-11Wide Coverage Translation Demo: improved performancehallgren
For improved performance, request only one translation from the server initially. When the user clicks on a translated sentense, request 9 more translations.
2015-03-11GF.Server: request logging: increase length limit from 100 500 chars per fieldhallgren
2015-03-11DictionarySwe: kick_V2, mouse_Naarne
2015-03-06remove the meta_item variable from the parse statekrasimir
2015-03-06Simple Translation tool: add File menu command 'Open in Wide Coverage ↵hallgren
Translation Demo' Just as a quick way to test different documents in the Wide Coverage Translation Demo.
2015-03-05remove some more old codekrasimir
2015-03-05removed some operations in GeneratePMCFG. They didn't work well with ↵krasimir
variants and are now obsolete with the new partial evaluator
2015-03-04GF.Compile.Compute.ConcreteNew: add dynamic table conversionhallgren
If the enumaration of table parameter values fails during the static traversal phase, try again in the dynamic computation phase, when the values of bound variables are known. This is necessary to properly deal with generic table construction in opers, like the ones found in prelude/Coordination.gf, e.g. consTable : (P : PType) -> ... = \P ... -> {s1 = table P {...} ; ... }
2015-03-04GF.Compile.Compute.ConcreteNew: some refactoring for readabilityhallgren
2015-03-02Fix to avoid "error (no reason given) OCCURRED IN optimizing <cat>"hallgren
GF.Compile.Optimize.mkLinReference can fail and cause this error because the helper function inside it applies msum to a list that might be empty (if there is a record type that does not contain a field of type Str). This means that it can return mzero::Err, i.e. Bad "error (no reason given)" which can slip through the top level test that only catches Bad "no string".
2015-02-27GF shell: fixed problems with previous change of the -retain flaghallgren
Because the prompt included the name of the abstract syntax, the loading of the PGF was forced even if -retain was used. Even worse, if an error occured while loading the PGF, it was repeated and caught every time the prompt was printed, creating an infite loop. The solution is to not print the name of the abstract syntax when the grammar is imported with -retain, which is the way things were before anyway.
2015-02-27GF shell: create a PGF also when the -retain flag is usedhallgren
The commands available in the shell after import -retain are now a superset of the commands available after import without -retain. The PGF is created lazily, so there should be no performance penalty if the PGF isn't needed. If there are errors, they won't be reported until a command that uses the PGF is entered.
2015-02-25PGFService: make the restriction on parallelism more effectivehallgren
Restrict the entire request handler instead of just the call to the C parser.
2015-02-26fix some out-of-date code for the PGF_RESULT_DEBUG mode in the parserkrasimir
2015-02-26use the same trick for comparison of doubles in cmp_expr_statekrasimir
2015-02-26bugfix in the parser which caused some items to be poped in the wrong order ↵krasimir
if their probability differ with less that 0.5
2015-02-25Wide Coverage Translation Demo: better resizing behavior on startup and when ↵hallgren
pasting text
2015-02-24PGFService.hs: text lexer: slightly smarter decapitalization of the first ↵hallgren
word of a sentence Keep the first letter in upper case if it is followed by more upper case letters. (Also remove some left over debugging output.)
2015-02-24remove three more uses of meta productions that were left in debugging modekrasimir
2015-02-24implemented escape characters when reading/printing an abstract expression ↵krasimir
with string literals
2015-02-20fix in thai_page2.xmlkrasimir
2015-02-20gftransate.js: increase sentence length limit for "fast" language to 500hallgren
Currently Bul, Chi, Eng and Swe are marked as "fast" in the documentation.
2015-02-20set the keyboard pages for Thai in Translator.javakrasimir
2015-02-20experimental Thai keyboard (still not tested)krasimir
2015-02-20translation app for iOS, replicating some of the functionality of the ↵joel.hinz
Android app. Compiles and works on iPad retina but may crash and has known issues.
2015-02-20added option -plus-as-bind which treats (+) as a bind when used with runtime ↵krasimir
variables
2015-02-20remove the meta prob flagskrasimir
2015-02-20gftranslate.js: reduce sentense length limit to 200 (URL encoded) charactershallgren
This limit might still be to high to avoid excessive time/space use in the parser for certain languages in the wide coverage translation grammar.
2015-02-20PGF Service: limit the number of parallel calls to the C run-time parse ↵hallgren
function to 4 by default The limit can be changed with the -j flag
2015-02-19silence some warnings in GNU Lightning for i386_64krasimir
2015-02-19parsing with meta rules is now removed since we don't use them anymore and I ↵krasimir
would gladly remove some code.
2015-02-18fix the missmatch between Int and CInt in the Haskell binding to the word ↵krasimir
alignment API. This was causing problems on 64-bit machines
2015-02-18fix the callback for unknown words as wellkrasimir
2015-02-18fix in the callback for names in the Haskell bindingkrasimir
2015-02-18fix in the parser for callbacks in the middle of a wordkrasimir