summaryrefslogtreecommitdiff
path: root/src/www
AgeCommit message (Collapse)Author
2012-05-16translator: use GF's text lexer/unlexer to obtain more natural looking texthallgren
Note though that the unlexer does the wrong thing with initial words that are supposed to be capitalized, e.g. "I am ready.", "Spanish wine is good.", so these sentenses are not translated at the moment.
2012-05-16translator: file browser shows files alphabetically nowhallgren
2012-05-16translator: bug fixhallgren
My menu hiding hack didn't work in Gecko browsers because of a difference in the behaviour of the JavaScript setTimeout function.
2012-05-15Adding a Simple Translation Toolhallgren
It is part of the cloud services available with gf -server.
2012-05-15Integrate Japanesehallgren
* Update Setup.hs to build Japanese by default. * News item about Japanese on the home page. * Add Japanese to the supported RGL imports in the grammar editor (gfse).
2012-04-30minibar_offline: fix the link to the regular minibarhallgren
2012-04-30minibar_offline: Update the API exported by pgf_offline.js to be compatible ↵hallgren
with pgf_online.js This makes the minibar offline demo work again.
2012-04-27minibar: word-for-word replacements: use concrete syntax for replacement ↵hallgren
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-24minibar&gfse: grammar extension user interface improvementshallgren
The grammar extension is now done with a regular HTML form, so you can use the TAB key to move between the fields and press ENTER to submit the extension when you are done. TODO: more immediate error feedback
2012-04-19minibar & cloud service: minor style changeshallgren
Also include the GF logo on the cloud service start page.
2012-04-19Minibar documentation updatehallgren
Document recent additions in minibar/about.html.
2012-04-18minibar: add buttons to use generated translations as inputhallgren
This functionality was available in the origial Fridge Poetry app, but has been missing in minibar until now.
2012-04-11minibar: fix to prevent the typed input field from losing focus when turning ↵hallgren
word-for-word replacment on or off
2012-04-10minibar: internal state type changehallgren
The current intput is now represented as an array of words instead of as a string. (This is the kind of change is scary to do in a dynamically type language like JavaScript. In a statically typed language like Haskell you can do it with confidence, since you know the compiler can help you catch all mistakes...)
2012-04-10minibar_input.js: internal state simplificationhallgren
Get rid of list of previous states, which was only used to delete the last word.
2012-04-10minibar/pgf_online.js: pass arguments to the browse function in the same way ↵hallgren
as the other functions Also document it in gf-web-api-examples.html.
2012-04-05minibar&gfse: grammar extension user interface fixeshallgren
It works OK now, but it could be better, e.g. the number of mouse clicks required to enter an extension could to be reduced...
2012-04-04minibar&gfse: first working grammar extension interface in minibarhallgren
There are still some user interface wrinkles to iron out.
2012-04-03minibar: remember current inputhallgren
If you leave the minibar and later return, the previous input will be restored. One input string per grammar is rememebered, so you can also switch back and forth between grammars without losing the input. This is implemented using localStorage, i.e. the data is stored locally on the user's device.
2012-04-02minibar: better implementation of word replacementhallgren
Instead of trying to reconstruct the abstract tree from the bracketed string, use the node numbers (the field called "fid") to identify which node in the abstact syntax tree a word in the bracketed string corresponds to.
2012-04-01support.js: add an implementation of Array.isArray for older browsers that ↵hallgren
lack it
2012-03-29gfse&minibar: work in progress on grammar extension fromminibarhallgren
2012-03-29gfse: show an informative error message in browsers that lack support for ↵hallgren
localStorage
2012-03-26minibar: support for adding grammars from several servers to the grammar menuhallgren
You can also add grammars from several directories on the same server of course. The included minibar configuration file adds the user's own grammars from the grammar editor.
2012-03-26gfse: enable word replacement in minibar when activated from the editorhallgren
2012-03-26gfse&minibar: fix bug caused by function name clashhallgren
+ Function div_id was defined in both editor.js and support.js. Solution: moved the more general version from editor.js to support.js. + Function div_class was defined in both editor.js and support.js. Solution: resolv incompatibility with an argument type test and put the generalized function in support.js.
2012-03-22minibar: word-for-word replacement fixeshallgren
Check that the reconstructed abstract syntax tree is type correct before enabling word-for-word replacement. Show an error message if word replacement nevertheless fails.
2012-03-22pgf_online.js: error callbackshallgren
To enable customized error handling, the methods in the pgf_online objects and the AJAX server call functions in support.js accept an error callback function as an extra argument, in addition to the callback (continuation) for normal results.
2012-03-19minibar: word-for-word replacement fixhallgren
Turn off the highlighting that indicates that word-for-word replacement is enabled when it is no longer available (e.g if a word is deleted and there no longer is a complete parse).
2012-03-19minibar: fix for recently introduced bug affacting Webkit browsershallgren
It seems that in Gecko browsers, the effect of "with(x) stmts" reaches inside the bodies of local functions in stmts, but in Webkit browers it does not.
2012-03-19minibar: don't try to select the most recently used grammar if it isn't in ↵hallgren
the current grammar list
2012-03-18minibar: automatically select the most recently used grammar when returning ↵hallgren
to the minibar
2012-03-18minibar: word-for-word replacement (experimental)hallgren
The new functionality also needs some new PGF service functionality, which will be provided in a separate patch.
2012-03-17Cloud service start page layout fix for small screenshallgren
2012-03-08minibar: add an option to make it easy to select png or svg outputhallgren
for abstract synax trees, parse trees and word alignment diagrams.
2012-03-06gfse: small usability improvementshallgren
2012-03-05gfse: more helpful hints about grammar parts and RGL moduleshallgren
2012-03-05gfse: bug fix: avoid hickup when inhertiting from a missing concrete syntaxhallgren
2012-03-05minibar: tool tip on the feedback button and hint in the feedback formhallgren
that the user should select a language from the To: menu to suggest a better translation to a particular language.
2012-03-01gfse: bug fixhallgren
Fix a problem opening grammars created before grammar extension was introduced.
2012-02-29gfse & minibar: minor style adjustmentshallgren
2012-02-29gf -server: update start page, add links to some documentationhallgren
2012-02-29gfse: add missing file sort.js to the repositoryhallgren
2012-02-28gfse: Translation Quiz integrationhallgren
Also moved the translation quiz from demos/TransQuiz to src/www/TransQuiz so that it will be installed by 'cabal install' along with the other files that are installed for use by gf -server mode.
2012-02-27gfse: recognize Predef categories Int, Float and Stringhallgren
but don't show them in the startcat menu.
2012-02-27Phrasebook feedback: hide feedback submitted by Googlebothallgren
2012-02-24gfse: text mode editing: accept grammars with printname judgementshallgren
But printname judgements are ignored for now. Also fixed an UTF-8 encoding bug when parsing uploaded grammars in gf -server mode.
2012-02-24gfse: text mode tweakshallgren
2012-02-22gfse: layout fixhallgren
Style options inteded for some buttons used in example-based editing was unintensionally applied to some other OK/Cancel buttons as well.
2012-02-22gfse: experimental support for editing concrete syntax in text modehallgren