summaryrefslogtreecommitdiff
path: root/src/www
AgeCommit message (Collapse)Author
2014-04-07Wide Coverage Demo Web App: add segmentationhallgren
Click on sentences to choose among alternative translations.
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-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-03-31Wide coverage demo web app: green translations from Phrasebook.pgfhallgren
The demo web app now show translations from Phrasebook.pgf in green before translations from Translate8.pgf, which can be yellow or red.
2014-03-28Wide coverage demo web app improvementshallgren
+ Adapt language selection menus to the languages supported by the grammar. + Add translation quality colors to the links to alternative translations. + Also added more country codes in langcode.js (needed for speech synthesis voice selection).
2014-03-27Wide coverage demo web app: translation quality feedback with colorshallgren
The background color of the translation changes to pale green, yellow or red according to the quality. Two types of quality indications are supported: + From the grammar: linearizations starting with "+" or "*" are assumed to be of high or low quality, respectively. + From the parse tree: if the root function is "?", then the translation is assumed to be of low quality. If no quality indications are detected, medium quality is assumed.
2014-03-27support.js & gftranslate.js: improved handling of server errorshallgren
In support.js, the functions http_get_json, ajax_http_get_json and ajax_http_post_json now calls the supplied error callback if the server returns invalid JSON (e.g. because of a crash). The function gftranslate.translate in gftranslate.js returns a JSON value containing an error message (since it doesn't have an error callback). This should result in fewer situations where "nothing happens" and the user doesn't know if it is beacuse the server is slow, or if there was an error.
2014-03-17Wide coverage demo web app: add speech synthesishallgren
Works in Safari and Chrome.
2014-03-12support.js: For better error handling, always use AJAX, don't fallback to JSONPhallgren
Cross-origin requests are allowed by the PGF service and are supported in all modern browsers. See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
2014-02-19Wide coverage demo web app: add link to Google Translatehallgren
2014-02-19src/www/js/langcode.js: functions for converting language codeshallgren
factored out from src/www/translator/translator.js
2014-02-12Wide coverage demo: show up to 10 translationshallgren
The translations are loaded one at a time so you don't have to wait for all 10 to see the first one.
2014-02-11Work on web api & apps based on the C run-time systemhallgren
+ PGFService.hs: add command c-grammar, include probability in parse results + js/gftranslation.js: add start position and limit parameters, return more info to applications + Simple Translator: show two wide coverage translations + Wide coverage demo: show parse tree and probability (intended as grammar debugging aids)
2014-01-28Wide coverage translation web demo improvementshallgren
+ Add lexing/unlexing + Add a button to swap input and output + Minor layout adjustments
2014-01-21simple translator: Replaced 'GF Robust Parser' with 'GF Wide Coverage ↵hallgren
Translation' The interface to the wide coverage translation is in js/gftranslate.js and it assumes that the grammar is installed on the cloud server as /robust/Translate8.pgf. The list of supported languages is hardwired in gftranslate.js, since there is no support for obtaining this info from the C run-time system at the moment.
2013-11-14gfse: re-enable example-based grammar constructionhallgren
2013-11-06minibar: fix a mistake the previous bracket fixhallgren
2013-11-06minibar: adapt to changed bracket structure in linearization outputhallgren
2013-08-21gfse: don't use multiline text boxes everywhere, just for concrete syntaxhallgren
2013-08-19gfse: only try to upload/compile grammars when browser is onlinehallgren
Show error message "Offline" if browser is offline.
2013-08-19gfse: always open a resizable text box when editing concrete syntaxhallgren
(Also fixed a broken link in gf-web-api-examples.html)
2013-08-13Syntax editor: minor CSS fixjohn.j.camilleri
2013-07-29minibar: more robust test for availability localStoragehallgren
Minibar should now work if localStorage is disabled or unavailable. (In Firefox, disabling cookies also disables localStorage.)
2013-07-25RGL Browser: now includes Syntax Editor tab!john.j.camilleri
2013-06-13Syntax editor: minor CSS tweak to resemble Minibar morejohn.j.camilleri
2013-06-13Syntax editor: AST string always shown, remove export buttonjohn.j.camilleri
2013-04-26gfse: use alltenses/ instead of present/ when looking up RGL oper typeshallgren
2013-04-26Add greek to Setup.hs and the web appshallgren
2013-04-25minibar: remove two more uses of with()hallgren
2013-04-25minibar: fix bug that prevented minibar from working in Webkit browsershallgren
The with(...) {...} statement has different scoping rules in Webkit browsers and Gecko browsers, so it is better to avoid it.
2013-04-23js/localstorage.js: don't throw an exception if JSON parsing failshallgren
Return the given default value instead.
2013-04-23gfse: add access to the syntax editorhallgren
via the minibar
2013-04-23js/gfrobust.js: don't try to translate sentenses that are too longhallgren
The C run-time responds badly to input that is too long, so we return an error message here instead. The limit is 200 URL-encoded characters.
2013-04-23js/localstorage.js: improved faked localStorage if real localStorage is missinghallgren
2013-04-23minibar: use the common interface to localStoragehallgren
...for more streamlined code and better browser compatibility.
2013-04-20gfse: don't add --# -path=.:present hallgren
Nowadays GF includes alltenses by default in the grammar search path.
2013-04-19simple translation tool: minor documentation fixhallgren
2013-04-19gf-cloud-api.html: fixed a typohallgren
in the documentation of command=remake.
2013-04-19gf-cloud-api.html: clarificationhallgren
Unrecoginzed parameter in cloud service requests are silently ignored.
2013-04-18simple translator: improved translation with the GF robust parserhallgren
by separate punctuation from the string sent to the robust parser. Also added buttons to view parse trees from the robust parser.
2013-04-18gfrobust.js: add a method for constructing parse tree image URLs.hallgren
2013-04-17minibar: syntax editor integration bug fixhallgren
The minibar has the alternative "All" in the target language menu. This should not be included when transfering to the syntax editor.
2013-04-17minibar: fixes for phrasebookhallgren
Add minibar option to_multiple to be able to turn off selection of multiple target languages.
2013-04-12GF cloud: work on syntax editor integrationhallgren
+ The syntax editor is now accessible from the Simple Translaton Tool. + The minibar now automatically provides access to the syntax editor (provided the necessary JavaScript files and style sheets have been loaded). + Preparations for making the syntax editor accessible from the grammar editor.
2013-04-12syntax editor: fix references to global object 'server'hallgren