hallgren
bcf8346716
minibar: use the common interface to localStorage
...
...for more streamlined code and better browser compatibility.
2013-04-23 12:39:18 +00:00
hallgren
563299085d
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
b037fa2b32
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
d35790e656
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
eb941d6eac
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
59f9f9dd17
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
35b47968d2
minibar: add a visual hint that linearizations can be expanded into tables
2013-04-07 12:06:12 +00:00
hallgren
3c244ff27f
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
a22a419bc7
Simple Translation Tool: initial support for editing source segments in the minibar
2013-04-03 20:24:57 +00:00
hallgren
f26778feb0
minibar: remember the selected set of target langauges
2013-04-02 13:49:50 +00:00
hallgren
4e40fd5697
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
63c0b7ae5d
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
be1d380ea5
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
323982b0ea
minibar: documentation update
2013-03-27 16:45:09 +00:00
hallgren
8b06936c01
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
060e3147e8
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
2cb7ed5734
minibar: documentation update
2013-03-26 14:38:10 +00:00
hallgren
155c559e5f
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
dca51e7417
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
f2751ff9e1
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
3c900ee6a3
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
8c22a380f7
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
c3f82bf10f
Syntax editor/minibar integration fix
2012-11-29 15:18:02 +00:00
hallgren
78216222f1
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
22aeb04704
minibar_online.js: updated to launch Editor using a GrammarManager object
2012-11-23 15:07:51 +00:00
hallgren
9e430184ba
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
4e00ddea08
Minibar: call abstract_action with 'this' bound to minibar object
2012-11-23 08:21:00 +00:00
john.j.camilleri
c94e34d4e4
Minibar: add show/hide functions
2012-11-23 08:08:13 +00:00
hallgren
24bf1f0d0e
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
7bcf05e3e7
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
e7b14316dd
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
8bd58a0297
minibar+syntax editor integration, work in progress
2012-11-21 15:07:59 +00:00
hallgren
2ee6211fe1
GF cloud: move gf-web-api-examples.html out of minibar directory
2012-11-20 15:18:05 +00:00
hallgren
3eaeaed8fd
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
889d7db76d
GF web service API examples: update examples of the browse command
...
Also some style tweaks.
2012-11-17 17:42:30 +00:00
hallgren
73c78c8840
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
377ce1732d
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
ca58233bf7
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
fa3c87fb64
minibar-api.html: documentation fixes
2012-09-17 15:52:57 +00:00
hallgren
ae528954a0
minibar: fix links to Wikipedia article on JSONP
...
Wikipedia moved it.
2012-09-09 23:06:26 +00:00
hallgren
7862bfb15b
minibar documentation URL typo fix
2012-08-27 15:00:37 +00:00
hallgren
dfcd61de00
minibar documentation updates
2012-08-27 14:56:10 +00:00
hallgren
09f5c2c82b
minibar-api.html: small documentation improvements
2012-06-11 16:00:03 +00:00
hallgren
3022c7d08e
minibar_offline: fix the link to the regular minibar
2012-04-30 14:03:58 +00:00
hallgren
c10bd79e26
minibar_offline: Update the API exported by pgf_offline.js to be compatible with pgf_online.js
...
This makes the minibar offline demo work again.
2012-04-30 13:53:55 +00:00
hallgren
c6c9b994d2
minibar: word-for-word replacements: use concrete syntax for replacement 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-27 14:00:01 +00:00
hallgren
9d47b83e07
minibar & cloud service: minor style changes
...
Also include the GF logo on the cloud service start page.
2012-04-19 15:34:56 +00:00
hallgren
98ed039498
Minibar documentation update
...
Document recent additions in minibar/about.html.
2012-04-19 12:36:03 +00:00
hallgren
ff812613c8
minibar: add buttons to use generated translations as input
...
This functionality was available in the origial Fridge Poetry app, but has been
missing in minibar until now.
2012-04-18 16:26:49 +00:00
hallgren
baadce4acd
minibar: fix to prevent the typed input field from losing focus when turning word-for-word replacment on or off
2012-04-11 14:03:39 +00:00