| Age | Commit message (Collapse) | Author |
|
minibar_support.js
|
|
|
|
|
|
|
|
supported by the browser
|
|
by the "i" button
Also bumped version number in gf.cabal to 3.6-darcs.
Also removed some unecessary use of CPP.
|
|
|
|
|
|
Minibar should now work if localStorage is disabled or unavailable.
(In Firefox, disabling cookies also disables localStorage.)
|
|
|
|
The with(...) {...} statement has different scoping rules in Webkit browsers
and Gecko browsers, so it is better to avoid it.
|
|
via the minibar
|
|
...for more streamlined code and better browser compatibility.
|
|
The minibar has the alternative "All" in the target language menu. This should
not be included when transfering to the syntax editor.
|
|
Add minibar option to_multiple to be able to turn off selection of multiple
target languages.
|
|
+ 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.
|
|
When starting from the minibar, the selected set of target languages is now
preserved when switching back and forth.
|
|
to allow debug output from the syntax editor when it is started from the
minibar.
Also fix broken markup.
|
|
|
|
Work in progress on preserving the start category and selected target languages
when switching between the minibar and the syntax editor.
|
|
minibar
|
|
|
|
Function names are always shown.
|
|
Click once to show abstract syntax trees without function names. Click again
to add function names.
|
|
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).
|
|
|
|
Click again to hide the table.
|
|
They stopped working after yesterday's changes.
|
|
|
|
Click once to show the parse tree without function names. Click again to
add function names.
|
|
This affects which translations are shown and which languages are included in
the word alignment diagrams.
|
|
Tested it in Firefox 18 (which has the new Ionmonkey JavaScript engine).
Still get stack overflows.
|
|
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.
|
|
Also move the functions title and attr from editor/editor.js to js/support.js.
Also mention recent changes in minibar/about.html.
|
|
|
|
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
|
|
|
|
By avoiding "this" in callback functions, the code can be kept cleaner.
|
|
|
|
|
|
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...
|
|
It could case JavaScript error
ReferenceError: initial_grammar is not defined
|
|
+ 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.
|
|
|
|
|
|
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.
|
|
Also some style tweaks.
|
|
It converts an abstract syntax tree (represented as a string) to a JSON
structure.
Also some HTML code cleanup.
|
|
This had been bugging me for ages!
|
|
+ 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.
|