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
53e6546a53
Syntax editor; add new helper for parsing type signatures (not complete)
2012-11-27 12:00:41 +00:00
john.j.camilleri
7faa501542
Syntax editor: add options for GM in editor_online.js
2012-11-27 11:21:28 +00:00
john.j.camilleri
bd6d7327bf
Syntax editor: avoid server calls for each refinement by using cached data
2012-11-27 11:19:12 +00:00
john.j.camilleri
054df2451a
Syntax editor: improvements and fixes with grammar manager
2012-11-27 10:09:40 +00:00
hallgren
7d528dc5b3
gfse: add Prelude to the list of RGL modules that can be opened
2012-11-26 15:08:16 +00:00
hallgren
be311aeb07
gfse: more readable layout for not so simple grammars + bug fix
...
To make definitions that span multiple lines more readable in guided mode,
preserve line breaks and indentation when lin and oper definitions are
displayed and edited in guided mode.
Bug fix: moving the cursor by clicking and selecting text by dragging did
not work in textareas and input fields, because those mouse event were
intercepted by the sort-by-drag-and-drop handler.
2012-11-26 14:11:12 +00:00
hallgren
158aafa3af
gf -server + gfse: show modification time of public grammars
2012-11-23 23:21:17 +00:00
hallgren
9b3d106ff8
gfse: use POST requests when parsing grammar modules after editing as text
...
instead of GET, to avoid the Apache httpd URI length limitation.
This means that gfse can no longer use JSONP when parsing grammars, so it
has to be located on the same host as the cloud service.
Also clean away trailing white space in support.js.
2012-11-23 18:51:44 +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
john.j.camilleri
7fe922d5a6
Syntax editor: now uses common GrammarManager object
2012-11-23 15:03:36 +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
3ae7f0df0e
Syntax editor: return to editor after having switched to minibar
2012-11-23 08:25:00 +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
john.j.camilleri
8b813be742
Syntax editor: can now load minibar (in-place) from a linearised tree
2012-11-22 12:45:20 +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
john.j.camilleri
5d5ac79b2b
Syntax editor: start with initial AST
...
Note that the argument has been renamed to initial.abstr
(Where abstr means an abstract syntax tree in string form, NOT an AST object)
2012-11-21 15:24:44 +00:00
hallgren
73a458dc66
minibar+syntax editor integration, work in progress
2012-11-21 15:07:59 +00:00
john.j.camilleri
12ed92eac2
Syntax editor: start with initial grammar, startcat, to: languages
2012-11-21 11:22:35 +00:00
john.j.camilleri
11e431d330
support.js: elem() returns false when as is undefined
2012-11-21 11:13:46 +00:00
hallgren
b62d41b8f6
gfse: remove obsolete files
2012-11-20 15:31:31 +00:00
hallgren
fdab9fab6c
GF cloud: move gf-web-api-examples.html out of minibar directory
2012-11-20 15:18:05 +00:00
john.j.camilleri
bee1afd7b8
Syntax editor: update to use common js files
2012-11-20 13:56:56 +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
john.j.camilleri
47eae4035c
Syntax editor: random generation of trees (and subtrees!)
2012-11-20 09:36:50 +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
03a64e2ec7
Syntax editor: work on importing AST as string (eg for generate random)
...
But it's still not complete. Need an efficient way of getting the cat info to accompany funs.
2012-11-16 14:35:37 +00:00
john.j.camilleri
cb92b80aba
Syntax editor: select subset of available languages
...
Also added a basic readme file with a list of todo's
2012-11-16 09:33:55 +00:00
john.j.camilleri
48dbabcbbe
Syntax editor: jump to next hole in tree
2012-11-15 15:38:17 +00:00
john.j.camilleri
3216a5def6
Syntax editor: fix bug in Firefox, Seamonkey
2012-11-15 12:40:14 +00:00
john.j.camilleri
7a69d9d5e5
Add first demo of new syntax editor
...
As part of the GF cloud stuff, it can be accessed from
http://cloud.grammaticalframework.org/syntax-editor/editor.html
2012-11-13 15:14:49 +00:00
hallgren
78120c84b5
TransQuiz: use the grammars from the same server
...
Unlike the other web apps in the cloud, the translation quiz was configured
to use the grammars at http://www.grammaticalframework.org/grammars .
2012-10-30 14:36:55 +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
3c24b72147
gf-cloud-api.html: document the new command=remake
...
Also improve the documentation of the responses to the upload and make
commands.
2012-10-23 21:16:31 +00:00
hallgren
c70c01745b
Add Chinese to the list of installed RGL languages and support it in the web apps
...
Aarne says the Chinese resource grammar is complete, but not yet completely
correct.
2012-10-22 10:16:10 +00:00
hallgren
cf44576573
gfse: grammars can now contain one-line descriptions
...
Also fixed two small problems with public grammars.
2012-10-18 12:48:39 +00:00
hallgren
a74e619c3f
gfse: small fix
2012-10-16 23:06:37 +00:00
hallgren
d63d350cef
gfse: identify inherited grammars by their unique id
...
This helps avoiding problems if an inherited grammar is renamed, or if there
is more than one grammar with the same name.
2012-10-16 22:10:49 +00:00
hallgren
ea4ed8b4db
gfse: adding a section about public grammars in about.html
2012-10-09 14:54:50 +00:00
hallgren
02e128d493
gfse: show the grammar list if the currently selected grammar can not be loaded
...
Avoid showing a blank page if there is an unexpected problem with the grammars
in localStorage.
2012-10-09 13:44:34 +00:00
hallgren
3d47d7b6f9
simple translator: make it usable on iOS devices
...
To make the popup menus accessible, use a simple trick to activate the
simulate-hovering-by-tapping behaviour.
2012-10-04 22:29:42 +00:00
hallgren
99b0e42e12
simple translator: bug fix
...
"Edit/Add a segment..." stopped working at some point.
(Importing text still worked.)
2012-10-04 18:02:31 +00:00
hallgren
5e1da255a3
gfse: various code improvements and prelimiary support for public grammars
2012-10-04 15:21:30 +00:00
hallgren
dad8d4a0ea
gfse: fix a bug caused by sharing when copying a linearization function in the row view
...
Functional programming is easier than imperative programming!
2012-10-03 13:54:35 +00:00
hallgren
edc51c6a2f
gfse: some refactoring
2012-10-03 13:22:50 +00:00
hallgren
432a354b91
gfse: row view: add a button to copy a linearization
...
When adding a new function, you can enter a linearization for one language
and then copy it to the other languages with one button click.
2012-10-03 12:37:47 +00:00