summaryrefslogtreecommitdiff
path: root/src/www/minibar
AgeCommit message (Collapse)Author
2019-11-21Minibar: make it possible to configure a list of preferred grammarsThomas Hallgren
A preferred grammar is selected when a user visits the Minibar for the first time. (Like before, Minibar remembers the selected grammar for future visits.) A preferred list of grammars can be specified in config.js in the .../minibar directory on the server, e.g. like this: preferred_grammars=["/grammars/Foods.pgf","/grammars/ResourceDemo.pgf"] The first available grammar from the list is used.
2019-08-21Minibar: support for links to open a given grammar in the minibarThomas Hallgren
When you press the "i" or "More info" button for a grammar, the info now includes a link that can be used by anyone to open this specific grammar in the minibar.
2019-08-05Minibar can now display grammar documentation.Thomas Hallgren
The documentation is taken from a file called Grammar.pgf_info, located next to the Grammar.pgf file on the server. The first line of the documentation is displayed below the menu bar in the minibar. The rest of the documentation is displayed when you press the "More info" button (or the "i" button). The documentation can contain HTML markup. Blank lines are treated as paragraph breaks.
2018-10-10Comment out links to some old demos that no longer workThomas Hallgren
2017-05-05minibar_translations.js: remove dead codehallgren
2016-06-09minibar: define grammar_list in config.js to restrict the grammar menuhallgren
minibar.html now reads config.js and if it defines grammar_list, only the grammars listed there will show up in the grammar menu.
2016-06-09PGF service & minibar: only show dependency diagrams if the labels are knownhallgren
+ The PGF service now reads and caches dependency label configuration files. + The grammar info returned by command=grammar has a new boolean field 'hasDependencyLabels' to indicate if dependency labels were found for the grammar. Also, command=deptree will now fail if no labels are present. + The minibar only shows word dependency trees if labels are present. + Also changed the type of getDepLabels from [String] -> Labels to String -> Labels, since all uses were in the form "getDepLabels . lines".
2016-06-08Minibar: show word dependecy diagramshallgren
They are now included in the cycle of images shown when clicking on the parse tree icon.
2016-06-06Minibar: remove spaces for better Thai speech synthesishallgren
2016-06-05Minibar: detect the language for show speech synthesis buttons in more caseshallgren
This was done to obtain speech synthesis for more languages in the Numerals grammar, which uses neither language flags nor the standard naming for concrete syntax.
2016-04-13Minibar: don't show dependency information in parse trees.hallgren
This was fixed by adding "&nodep=true" in the minibar when it requests a parse tree from the server. The reason dependency information got included in the first place was that all rendering options are on by default in command=parsetree requests in PGF service API.
2015-12-11feedback.cgi: exclude empty submission when showing the feedback listhallgren
2015-05-27minibar: moved 2 reusable functions from minibar_translations.js to ↵hallgren
minibar_support.js
2015-05-19minibar: cosmetic fix for the "To:" menuhallgren
2015-05-19minibar: more work on speech outputhallgren
2015-05-18minibar: speech output (experimental) (in browsers that support it)hallgren
2015-05-18minibar: use SVG instead of PNG for trees and alignment diagrams if ↵hallgren
supported by the browser
2014-06-24minibar: include the grammar's last modification in the grammar info shown ↵hallgren
by the "i" button Also bumped version number in gf.cabal to 3.6-darcs. Also removed some unecessary use of CPP.
2013-11-06minibar: fix a mistake the previous bracket fixhallgren
2013-11-06minibar: adapt to changed bracket structure in linearization outputhallgren
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-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-23gfse: add access to the syntax editorhallgren
via the minibar
2013-04-23minibar: use the common interface to localStoragehallgren
...for more streamlined code and better browser compatibility.
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-12minibar/syntax editor integration fixeshallgren
When starting from the minibar, the selected set of target languages is now preserved when switching back and forth.
2013-04-11minibar.html: add debug elementhallgren
to allow debug output from the syntax editor when it is started from the minibar. Also fix broken markup.
2013-04-07minibar: add a visual hint that linearizations can be expanded into tableshallgren
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
2013-04-02minibar: remember the selected set of target langaugeshallgren
2013-04-02minibar: abstract syntax trees are now shown with or without category nameshallgren
Function names are always shown.
2013-03-28minibar: show abstract syntax trees without or with function nameshallgren
Click once to show abstract syntax trees without function names. Click again to add function names.
2013-03-27minibar: fix problems with the To: menuhallgren
Automatically expanding the menu when the mouse is over it seems to cause wierd scrolling behavior in Chrome (and also in Firefox but less severe).
2013-03-27minibar: documentation updatehallgren
2013-03-27minibar: click on a linearization to obtain a table with all variants and formshallgren
Click again to hide the table.
2013-03-27minibar: fix buttons for abstract syntax trees and word alignment diagramshallgren
They stopped working after yesterday's changes.
2013-03-26minibar: documentation updatehallgren
2013-03-26minibar: show parse trees without or with function nameshallgren
Click once to show the parse tree without function names. Click again to add function names.
2013-03-25minibar: initial support for selecting an arbitrary subset of target languageshallgren
This affects which translations are shown and which languages are included in the word alignment diagrams.
2013-01-09Fixes for minibar offlinehallgren
Tested it in Firefox 18 (which has the new Ionmonkey JavaScript engine). Still get stack overflows.
2012-11-29minibar: add a button to get detailed grammar infohallgren
After pressing the "i" button to view grammar info, there is now a "More info" button to get more detailed information about all categories and functions in the grammar.
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-29Syntax editor/minibar integration fixjohn.j.camilleri
2012-11-27some documentation updates and fixeshallgren
doc/Makefile: add a rule to regenerate gf-help-full.txt gf-help-full.txt: updated (new parse tree visualization options) demo & cloud index: clarifications minibar documentation: better layout on mobile devices GF 3.4 release notes: reorganized & updated
2012-11-23minibar_online.js: updated to launch Editor using a GrammarManager objectjohn.j.camilleri
2012-11-23syntax editor + minibar: fix bug with repeated switching back and forthhallgren
By avoiding "this" in callback functions, the code can be kept cleaner.