summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-04-09Wide Coverage Demo App: use PGF service lexing/unlexinghallgren
It is now enough to make one server call per translation, and the results can cached by the browser.
2014-04-09PGF web service: add unlexers and enable client side cachinghallgren
Most PGF web API commands that produce linearizations now accept an unlexer parameter. Possible values are "text", "code" and "mixed". The web service now include Date and Last-Modified headers in the HTTP, responses. This means that browsers can treat responses as static content and cache them, so it becomes less critical to cache parse results in the server. Also did some cleanup in PGFService.hs, e.g. removed a couple of functions that can now be imported from PGF.Lexing instead.
2014-04-09Change the type of PGF.Lexing.bindTok to [String] -> [String]hallgren
The old type was [String] -> String. This function was only used in GF.Text.Lexing.stringOp, which now uses (unwords . bindTok) instead, with no change in behaviour.
2014-04-09Unlexers: move capitalization of first word from GF.Text.Lexing to PGF.Lexinghallgren
The capitalization of the first word was done in GF.Text.Lexing.stringOp, but is now done in the functions unlexText and unlexMixed in PGF.Lexing. These functions are only used in stringOp and in PGFService (where the change is needed), so the subtle change in behaviour should not cause any bugs.
2014-04-09PGF Service: a bit more clever lexer=texthallgren
Only change the first word to lowercase if the original input is not found in the grammar's morphology. This allows parsing of sentenses starting with "I" in English, nouns in German and proper names in other languages, but it can make the wrong choice for multi-words.
2014-04-09Wide Coverage Demo App updateshallgren
+ Add Clear button. + Use localstorage to remember entered text between visits. + Add a link to it on the GF cloud service start page.
2014-04-09more passives in App. Import changes are now produced with MkApp.hs, which ↵aarne
copies the exclude list from App.gf to the concrete syntax files.
2014-04-09rewrote App so that it just inherits Translate and excludes some functions. ↵aarne
This minimizes the duplication of code between Translate and App. Also added some functions, which make App 15% slower but increase the coverage and quality. This trade-off has to be studied further.
2014-04-08Fix build problem in PGFService.hs when configured without c-runtimehallgren
2014-04-08PGF web service: add lexer supporthallgren
The PGF web API commands parse, translate, translategroup, c-parse and c-translate now support a lexer parameter. Possible values are "text", "code" and "mixed". This is used in the Wide Coverage Demo App to save one server roundtrip.
2014-04-08small fixes in App grammar - don't affect performanceaarne
2014-04-08Move basic lexing functions from GF.Text.Lexing to the new module PGF.Lexinghallgren
They are thus part of the PGF Run-Time Library, making it possible to add lexing functionality in PGF service in a natural way.
2014-04-08Wide Coverage Demo App: remove quality markers ("+" or "*") before unlexinghallgren
Otherwise the first word won't be capitalized.
2014-04-08added preliminary API for custom literals from Java. Not functional yetkr.angelov
2014-04-08bugfix in the C runtime that shows up with only some grammarskr.angelov
2014-04-08Wide Coverage Demo App: restore swap buttonhallgren
2014-04-07demos/translation.t2t: more space for the demo apphallgren
2014-04-07Wide Coverage Demo Web App: add segmentationhallgren
Click on sentences to choose among alternative translations.
2014-04-07Expr and ExprProb are now serializable objectskr.angelov
2014-04-07fix in the keyboardkr.angelov
2014-04-07added alternative_item.xmlkr.angelov
2014-04-07a bit more text in the helpkr.angelov
2014-04-07show alternative translations on Androidkr.angelov
2014-04-06Wide coverage demo app: show an error message even if the error string is emptyhallgren
2014-04-06Wide coverage demo app: show an error message if linearization failshallgren
2014-04-06gftranslate.js: use Translate10.pgfhallgren
2014-04-04TypeCheck.RConcrete: contravariance in table typeshallgren
2014-04-04path in AppFinaarne
2014-04-04polarities restored in Hin translationaarne
2014-04-04Removed imports of TypeCheck.Concrete, fixed problems in TypeCheck.RConcretehallgren
+ The current type checker for concrete syntax is in GF.Compile.TypeCheck.RConcrete, but GF.Compile.TypeCheck.Concrete was still imported in GFI. + Fixed a bug that allowed Ints n as a subtype of Ints m, regardless of m and n. It now requires n<=m. Note: the type checker still allows Int as a subtype of Ints m, regardless of m. + Fixed a potential efficiency problem with large record types, by reducing the number of recursive calls from |R|*|S| to |R| when checking if R<=S. + Fixed a misleading comment: "alpha g t u" checks that u is a subtype of t, the other way around. Similarly, "checkIfEqLType gr g t u trm" checks that u is a subtype of t, not the other way around, and not that t is equal to u.
2014-04-04Wide Coverage Translation Web App: redesigned user interfacehallgren
The layout now resembles a certain other online translation service. The translation is started automatically after text is entered, no need to press the Translate button.
2014-04-04gftranslate.js: increase length limit from 200 to 500 encoded byteshallgren
2014-04-04Simple Translator: show more alternatives when using GF robust translationhallgren
The maximum number of alternatives shown has been increased from 2 to 5 although it can slow down translation.
2014-04-04Slightly more informative error messages in translation web appshallgren
2014-04-04PGFService.hs: adapt to changes in the Haskell binding to the C run-time systemhallgren
Parse errors used to cause crashes, but they are now handled and reported.
2014-04-04fix the haskell binding to handle parse errorskr.angelov
2014-04-04AdvS added to appaarne
2014-04-04text in app helpaarne
2014-04-04now the output from the speech recognizer is editable with the keyboardkr.angelov
2014-04-04add activity_help.xmlkr.angelov
2014-04-04add the forgoten HelpActivity.javakr.angelov
2014-04-03add touch feedback to the two buttons in the appkr.angelov
2014-04-03added help view in the android app. The help itself is not very useful right nowkr.angelov
2014-04-03GFTranslator to DGTranslator in a few more placeskr.angelov
2014-04-03remove the old android iconkr.angelov
2014-04-03change the project name to DGTranslatorkr.angelov
2014-04-03a new icon and a new name for the DG Translatorkr.angelov
2014-04-03added AdvVP and AdVVP to Appaarne
2014-04-03bugfix in the keyboard translationkr.angelov
2014-04-02Android app sources in examples/app - read README for adviceaarne