summaryrefslogtreecommitdiff
path: root/src/www/minibar
AgeCommit message (Collapse)Author
2012-11-23Minibar: call abstract_action with 'this' bound to minibar objectjohn.j.camilleri
2012-11-23Minibar: add show/hide functionsjohn.j.camilleri
2012-11-22minibar: can now switch back to the minibar after switching to the syntax editorhallgren
This is done by including a lin_action when starting the syntax editor from the minibar. Also: added some minibar options in the syntax editor for consistency...
2012-11-21minibar: fix bug introduced in previous updatehallgren
It could case JavaScript error ReferenceError: initial_grammar is not defined
2012-11-21minibar+syntax editor integration, work in progress 2hallgren
+ Transfer current astract syntax tree when activating the syntax editor from the minibar. + Add options to start the minibar with given input. You need to include the current grammar url, the current language and the input, like this: initial_grammar: "/grammars/Foods.pgf", initial: { from: "FoodsEng", input:["that","fish","is","fresh"]} + Fix a style sheet clash.
2012-11-21minibar+syntax editor integration, work in progresshallgren
2012-11-20GF cloud: move gf-web-api-examples.html out of minibar directoryhallgren
2012-11-20GF cloud: move support.js and pgf_online.jshallgren
Created the folder js and moved minibar/support.js and minibar/pgf_online.js there, to emphasize their status as app independent support libraries. There are probably more files that should be moved here. The cloud apps have been updated, externally hosted apps that link directly to our server need to be updated too.
2012-11-17GF web service API examples: update examples of the browse commandhallgren
Also some style tweaks.
2012-11-17GF web service API examples: added the "abstrjson" commandhallgren
It converts an abstract syntax tree (represented as a string) to a JSON structure. Also some HTML code cleanup.
2012-10-26Minibar: cursor over editable words is now a "hand"john.j.camilleri
This had been bugging me for ages!
2012-09-30PGF service & minibar: put a limit on the number of parse treeshallgren
+ In the PGF web service API, the commands parse, translate and translategroup now accept a limit parameter. It limits the number of parse trees returned. If no limit is given, the behaviour is backwards compatible, i.e. no limit is applied. + In minibar, the limit is now set to 25 by default. This change is based on a suggestion by Kaarel Kaljurand.
2012-09-17minibar-api.html: documentation fixeshallgren
2012-09-09minibar: fix links to Wikipedia article on JSONPhallgren
Wikipedia moved it.
2012-08-27minibar documentation URL typo fixhallgren
2012-08-27minibar documentation updateshallgren
2012-06-11minibar-api.html: small documentation improvementshallgren
2012-04-30minibar_offline: fix the link to the regular minibarhallgren
2012-04-30minibar_offline: Update the API exported by pgf_offline.js to be compatible ↵hallgren
with pgf_online.js This makes the minibar offline demo work again.
2012-04-27minibar: word-for-word replacements: use concrete syntax for replacement ↵hallgren
words when possible Instead of showing the name of a function in the abstract syntax, linearize it and show the result. For functions with argument, e.g. That : Kind -> Item, the function is applied to the right number of placeholder arguments: 'That ?'. If the linearization fails, the name of the function is shown anyway.
2012-04-19minibar & cloud service: minor style changeshallgren
Also include the GF logo on the cloud service start page.
2012-04-19Minibar documentation updatehallgren
Document recent additions in minibar/about.html.
2012-04-18minibar: add buttons to use generated translations as inputhallgren
This functionality was available in the origial Fridge Poetry app, but has been missing in minibar until now.
2012-04-11minibar: fix to prevent the typed input field from losing focus when turning ↵hallgren
word-for-word replacment on or off
2012-04-10minibar: internal state type changehallgren
The current intput is now represented as an array of words instead of as a string. (This is the kind of change is scary to do in a dynamically type language like JavaScript. In a statically typed language like Haskell you can do it with confidence, since you know the compiler can help you catch all mistakes...)
2012-04-10minibar_input.js: internal state simplificationhallgren
Get rid of list of previous states, which was only used to delete the last word.
2012-04-10minibar/pgf_online.js: pass arguments to the browse function in the same way ↵hallgren
as the other functions Also document it in gf-web-api-examples.html.
2012-04-04minibar&gfse: first working grammar extension interface in minibarhallgren
There are still some user interface wrinkles to iron out.
2012-04-03minibar: remember current inputhallgren
If you leave the minibar and later return, the previous input will be restored. One input string per grammar is rememebered, so you can also switch back and forth between grammars without losing the input. This is implemented using localStorage, i.e. the data is stored locally on the user's device.
2012-04-02minibar: better implementation of word replacementhallgren
Instead of trying to reconstruct the abstract tree from the bracketed string, use the node numbers (the field called "fid") to identify which node in the abstact syntax tree a word in the bracketed string corresponds to.
2012-04-01support.js: add an implementation of Array.isArray for older browsers that ↵hallgren
lack it
2012-03-29gfse&minibar: work in progress on grammar extension fromminibarhallgren
2012-03-26minibar: support for adding grammars from several servers to the grammar menuhallgren
You can also add grammars from several directories on the same server of course. The included minibar configuration file adds the user's own grammars from the grammar editor.
2012-03-26gfse&minibar: fix bug caused by function name clashhallgren
+ Function div_id was defined in both editor.js and support.js. Solution: moved the more general version from editor.js to support.js. + Function div_class was defined in both editor.js and support.js. Solution: resolv incompatibility with an argument type test and put the generalized function in support.js.
2012-03-22minibar: word-for-word replacement fixeshallgren
Check that the reconstructed abstract syntax tree is type correct before enabling word-for-word replacement. Show an error message if word replacement nevertheless fails.
2012-03-22pgf_online.js: error callbackshallgren
To enable customized error handling, the methods in the pgf_online objects and the AJAX server call functions in support.js accept an error callback function as an extra argument, in addition to the callback (continuation) for normal results.
2012-03-19minibar: word-for-word replacement fixhallgren
Turn off the highlighting that indicates that word-for-word replacement is enabled when it is no longer available (e.g if a word is deleted and there no longer is a complete parse).
2012-03-19minibar: fix for recently introduced bug affacting Webkit browsershallgren
It seems that in Gecko browsers, the effect of "with(x) stmts" reaches inside the bodies of local functions in stmts, but in Webkit browers it does not.
2012-03-19minibar: don't try to select the most recently used grammar if it isn't in ↵hallgren
the current grammar list
2012-03-18minibar: automatically select the most recently used grammar when returning ↵hallgren
to the minibar
2012-03-18minibar: word-for-word replacement (experimental)hallgren
The new functionality also needs some new PGF service functionality, which will be provided in a separate patch.
2012-03-08minibar: add an option to make it easy to select png or svg outputhallgren
for abstract synax trees, parse trees and word alignment diagrams.
2012-03-05minibar: tool tip on the feedback button and hint in the feedback formhallgren
that the user should select a language from the To: menu to suggest a better translation to a particular language.
2012-02-29gfse & minibar: minor style adjustmentshallgren
2012-02-29gf -server: update start page, add links to some documentationhallgren
2012-02-27Phrasebook feedback: hide feedback submitted by Googlebothallgren
2012-02-22gfse: some refactoringhallgren
2012-02-15minibar_translations.js: bug fixhallgren
Two methods used the global variable p instead of declaring a local variable p. This caused the function p (that constructs HTML <p> elements) in support.js to suddenly be redefined as a number.
2012-02-13gfse & minibar: small fixeshallgren
2012-02-13minibar: fix problems with the feedback formhallgren