summaryrefslogtreecommitdiff
path: root/src/www/minibar/minibar_input.js
AgeCommit message (Collapse)Author
2013-11-06minibar: adapt to changed bracket structure in linearization outputhallgren
2013-04-04minibar/syntax editor integration improvementshallgren
Work in progress on preserving the start category and selected target languages when switching between the minibar and the syntax editor.
2013-04-03Simple Translation Tool: initial support for editing source segments in the ↵hallgren
minibar
2012-11-29minibar: add tool tips to some of the buttonshallgren
Also move the functions title and attr from editor/editor.js to js/support.js. Also mention recent changes in minibar/about.html.
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-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-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-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-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-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-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.
2011-10-18minibar: adding a start category menuhallgren
+ The start category menu can be turned off by passing the option {startcat_menu:false} when starting the minibar. + Documentation updates.
2011-10-12Improvements of "gf -server" mode and related setuphallgren
"gf -server" mode now contains everything needed to run the minibar and the grammar editor (including example-based grammar writing). The Setup.hs script installs the required files where gf -server can find them. These files have been moved to a new directory: src/www. The separate server program pgf-http is now obsolete.