hallgren
93ba5b7b37
minibar: include the grammar's last modification in the grammar info shown by the "i" button
...
Also bumped version number in gf.cabal to 3.6-darcs.
Also removed some unecessary use of CPP.
2014-06-24 13:59:09 +00:00
hallgren
09e64e92e4
minibar: fix a mistake the previous bracket fix
2013-11-06 16:54:21 +00:00
hallgren
dcbe3533d0
minibar: adapt to changed bracket structure in linearization output
2013-11-06 16:45:24 +00:00
hallgren
f4519dda8c
minibar: more robust test for availability localStorage
...
Minibar should now work if localStorage is disabled or unavailable.
(In Firefox, disabling cookies also disables localStorage.)
2013-07-29 11:58:17 +00:00
hallgren
56f87a4c34
minibar: remove two more uses of with()
2013-04-25 15:08:26 +00:00
hallgren
debe305484
minibar: fix bug that prevented minibar from working in Webkit browsers
...
The with(...) {...} statement has different scoping rules in Webkit browsers
and Gecko browsers, so it is better to avoid it.
2013-04-25 14:55:24 +00:00
hallgren
5c19681f2d
gfse: add access to the syntax editor
...
via the minibar
2013-04-23 13:55:00 +00:00
hallgren
aa37d9d01b
minibar: use the common interface to localStorage
...
...for more streamlined code and better browser compatibility.
2013-04-23 12:39:18 +00:00
hallgren
c1390db368
minibar: syntax editor integration bug fix
...
The minibar has the alternative "All" in the target language menu. This should
not be included when transfering to the syntax editor.
2013-04-17 08:49:31 +00:00
hallgren
5e15ba20f5
minibar: fixes for phrasebook
...
Add minibar option to_multiple to be able to turn off selection of multiple
target languages.
2013-04-17 08:39:39 +00:00
hallgren
4ec1db9065
GF cloud: work on syntax editor integration
...
+ 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-12 18:29:15 +00:00
hallgren
95e68117a9
minibar/syntax editor integration fixes
...
When starting from the minibar, the selected set of target languages is now
preserved when switching back and forth.
2013-04-12 14:30:27 +00:00
hallgren
a60e8bb0b7
minibar.html: add debug element
...
to allow debug output from the syntax editor when it is started from the
minibar.
Also fix broken markup.
2013-04-11 11:47:06 +00:00
hallgren
98d068fa3a
minibar: add a visual hint that linearizations can be expanded into tables
2013-04-07 12:06:12 +00:00
hallgren
8a1b37a169
minibar/syntax editor integration improvements
...
Work in progress on preserving the start category and selected target languages
when switching between the minibar and the syntax editor.
2013-04-04 14:04:31 +00:00
hallgren
d10c6bc85f
Simple Translation Tool: initial support for editing source segments in the minibar
2013-04-03 20:24:57 +00:00
hallgren
40bc49245a
minibar: remember the selected set of target langauges
2013-04-02 13:49:50 +00:00
hallgren
da862e20b4
minibar: abstract syntax trees are now shown with or without category names
...
Function names are always shown.
2013-04-02 11:56:10 +00:00
hallgren
0e45b8513f
minibar: show abstract syntax trees without or with function names
...
Click once to show abstract syntax trees without function names. Click again
to add function names.
2013-03-28 16:00:04 +00:00
hallgren
9c7d1328a1
minibar: fix problems with the To: menu
...
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-27 23:39:35 +00:00
hallgren
63c09e962a
minibar: documentation update
2013-03-27 16:45:09 +00:00
hallgren
6076ed6ca0
minibar: click on a linearization to obtain a table with all variants and forms
...
Click again to hide the table.
2013-03-27 16:35:56 +00:00
hallgren
b30504a8e2
minibar: fix buttons for abstract syntax trees and word alignment diagrams
...
They stopped working after yesterday's changes.
2013-03-27 14:07:16 +00:00
hallgren
cf186f04fb
minibar: documentation update
2013-03-26 14:38:10 +00:00
hallgren
26d846a23e
minibar: show parse trees without or with function names
...
Click once to show the parse tree without function names. Click again to
add function names.
2013-03-26 14:24:22 +00:00
hallgren
9a8d2349e4
minibar: initial support for selecting an arbitrary subset of target languages
...
This affects which translations are shown and which languages are included in
the word alignment diagrams.
2013-03-25 17:43:12 +00:00
hallgren
4b0e05f9c7
Fixes for minibar offline
...
Tested it in Firefox 18 (which has the new Ionmonkey JavaScript engine).
Still get stack overflows.
2013-01-09 16:44:18 +00:00
hallgren
7b87169c76
minibar: add a button to get detailed grammar info
...
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-29 19:15:30 +00:00
hallgren
c9522c0a37
minibar: add tool tips to some of the buttons
...
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-29 16:05:42 +00:00
john.j.camilleri
a2c0030415
Syntax editor/minibar integration fix
2012-11-29 15:18:02 +00:00
hallgren
a6ac00023d
some documentation updates and fixes
...
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-27 14:11:47 +00:00
john.j.camilleri
dbd5c56049
minibar_online.js: updated to launch Editor using a GrammarManager object
2012-11-23 15:07:51 +00:00
hallgren
fe9b368b90
syntax editor + minibar: fix bug with repeated switching back and forth
...
By avoiding "this" in callback functions, the code can be kept cleaner.
2012-11-23 13:15:16 +00:00
john.j.camilleri
0dac6fc783
Minibar: call abstract_action with 'this' bound to minibar object
2012-11-23 08:21:00 +00:00
john.j.camilleri
2476383b3a
Minibar: add show/hide functions
2012-11-23 08:08:13 +00:00
hallgren
8c9b90cc90
minibar: can now switch back to the minibar after switching to the syntax editor
...
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-22 16:42:39 +00:00
hallgren
1354888b31
minibar: fix bug introduced in previous update
...
It could case JavaScript error
ReferenceError: initial_grammar is not defined
2012-11-21 19:01:52 +00:00
hallgren
bd3b512074
minibar+syntax editor integration, work in progress 2
...
+ 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-21 17:13:21 +00:00
hallgren
73a458dc66
minibar+syntax editor integration, work in progress
2012-11-21 15:07:59 +00:00
hallgren
fdab9fab6c
GF cloud: move gf-web-api-examples.html out of minibar directory
2012-11-20 15:18:05 +00:00
hallgren
f402d1687d
GF cloud: move support.js and pgf_online.js
...
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-20 12:56:48 +00:00
hallgren
4ec77e5664
GF web service API examples: update examples of the browse command
...
Also some style tweaks.
2012-11-17 17:42:30 +00:00
hallgren
34ce2ab81e
GF web service API examples: added the "abstrjson" command
...
It converts an abstract syntax tree (represented as a string) to a JSON
structure.
Also some HTML code cleanup.
2012-11-17 11:55:32 +00:00
john.j.camilleri
bcabfbc72e
Minibar: cursor over editable words is now a "hand"
...
This had been bugging me for ages!
2012-10-26 15:00:19 +00:00
hallgren
fc09b7e604
PGF service & minibar: put a limit on the number of parse trees
...
+ 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-30 15:35:25 +00:00
hallgren
fd298007be
minibar-api.html: documentation fixes
2012-09-17 15:52:57 +00:00
hallgren
2687d1fae9
minibar: fix links to Wikipedia article on JSONP
...
Wikipedia moved it.
2012-09-09 23:06:26 +00:00
hallgren
ffedf0a165
minibar documentation URL typo fix
2012-08-27 15:00:37 +00:00
hallgren
9ab4c04b5c
minibar documentation updates
2012-08-27 14:56:10 +00:00
hallgren
60d8ec58a2
minibar-api.html: small documentation improvements
2012-06-11 16:00:03 +00:00