hallgren
57ebfa4416
PGFService.hs: adapt to changes in the Haskell binding to the C run-time system
...
Parse errors used to cause crashes, but they are now handled and reported.
2014-04-04 12:28:00 +00:00
kr.angelov
268e7a697f
fix the haskell binding to handle parse errors
2014-04-04 11:46:40 +00:00
aarne
1b6f58c592
text in app help
2014-04-04 07:28:55 +00:00
kr.angelov
9f0ee95fd6
now the output from the speech recognizer is editable with the keyboard
2014-04-04 09:04:00 +00:00
kr.angelov
232b4518ed
add activity_help.xml
2014-04-04 07:51:05 +00:00
kr.angelov
02c39118a9
add the forgoten HelpActivity.java
2014-04-04 07:48:50 +00:00
kr.angelov
793acdf171
add touch feedback to the two buttons in the app
2014-04-03 20:30:23 +00:00
kr.angelov
184c0ed29f
added help view in the android app. The help itself is not very useful right now
2014-04-03 14:22:44 +00:00
kr.angelov
51dbaa0c7e
GFTranslator to DGTranslator in a few more places
2014-04-03 14:06:26 +00:00
kr.angelov
95291eec92
remove the old android icon
2014-04-03 14:02:50 +00:00
kr.angelov
6edcfbe9d0
change the project name to DGTranslator
2014-04-03 13:48:08 +00:00
kr.angelov
19f7fd998b
a new icon and a new name for the DG Translator
2014-04-03 13:44:14 +00:00
kr.angelov
f4cd152e6f
bugfix in the keyboard translation
2014-04-03 06:14:15 +00:00
kr.angelov
d94c7632d4
fix in the keyboard XMLs
2014-04-02 20:05:16 +00:00
kr.angelov
d110df7a1f
initial binding to Prolog for the C runtime
2014-04-02 10:03:19 +00:00
aarne
b9b7ed9ccc
use chunking before morpho lookup in backup parsing ; show results with unknown linearizations in darkest red
2014-04-01 16:24:35 +00:00
hallgren
d262bb0e48
Bug fix for pattern macros in pre{}
...
This bug was introduced sometime between 2013-08-21 and 2013-11-01 and caused
the function convertTerm in GF.Compile.GeneratePMCFG to encounter a EPatt where
it expected Strs. I fixed it by applying the function getPatts (from the old
partial evaluator) to the pattern.
2014-04-01 10:54:41 +00:00
aarne
75b7e6105d
Hin and Bul keyboards in app restored
2014-03-31 19:45:41 +00:00
hallgren
713012001c
Wide coverage demo web app: green translations from Phrasebook.pgf
...
The demo web app now show translations from Phrasebook.pgf in green before
translations from Translate8.pgf, which can be yellow or red.
2014-03-31 15:28:14 +00:00
hallgren
75011c8efa
Wide coverage demo web app improvements
...
+ Adapt language selection menus to the languages supported by the grammar.
+ Add translation quality colors to the links to alternative translations.
+ Also added more country codes in langcode.js (needed for speech synthesis
voice selection).
2014-03-28 14:56:56 +00:00
hallgren
d46bdda103
Wide coverage demo web app: translation quality feedback with colors
...
The background color of the translation changes to pale green, yellow or red
according to the quality.
Two types of quality indications are supported:
+ From the grammar: linearizations starting with "+" or "*" are assumed to
be of high or low quality, respectively.
+ From the parse tree: if the root function is "?", then the translation is
assumed to be of low quality.
If no quality indications are detected, medium quality is assumed.
2014-03-27 15:11:02 +00:00
hallgren
94bf87add9
support.js & gftranslate.js: improved handling of server errors
...
In support.js, the functions http_get_json, ajax_http_get_json
and ajax_http_post_json now calls the supplied error callback if the server
returns invalid JSON (e.g. because of a crash).
The function gftranslate.translate in gftranslate.js returns
a JSON value containing an error message (since it doesn't have an error
callback).
This should result in fewer situations where "nothing happens" and the user
doesn't know if it is beacuse the server is slow, or if there was an error.
2014-03-27 15:02:27 +00:00
kr.angelov
709f5dfcd8
small fixes in the C runtime
2014-03-25 13:57:57 +00:00
kr.angelov
5f3b35a5f9
refactor the compilation of CFG and EBNF grammars. Now they are parsed by using GF.Grammar.Parser just like the ordinary GF grammars. Furthermore now GF.Speech.CFG is moved to GF.Grammar.CFG. The new module is used by both the speech conversion utils and by the compiler for CFG grammars. The parser for CFG now consumes a lot less memory and can be used with grammars with more than 4 000 000 productions.
2014-03-21 21:25:05 +00:00
kr.angelov
b33c163068
added hasLinearization method in the Python binding
2014-03-20 14:48:47 +00:00
kr.angelov
132612365a
fix in the Python binding which was forgoten after a change in the C runtime
2014-03-20 14:48:02 +00:00
hallgren
6cc8557e6b
gf -server: add a command to manually flush the PGF cache
...
This can be used if the cloud service seems slow, but it would probably
be better to automatically expire unused PGFs from the cache after some time.
2014-03-19 16:15:05 +00:00
aarne
fd8cf9af58
a darker red in translation app: dictionary lookup for each word, identity if lookup fails
2014-03-18 13:22:13 +00:00
aarne
22e3eb2223
Hin and Ger added to android app again
2014-03-18 10:21:53 +00:00
kr.angelov
bc81d163fb
whitespace cleanup in the parser
2014-03-18 10:19:35 +00:00
aarne
6d8aff65c8
show the value in the error message when failing to get Str from value
2014-03-17 18:02:07 +00:00
hallgren
a229c539e9
Wide coverage demo web app: add speech synthesis
...
Works in Safari and Chrome.
2014-03-17 15:59:43 +00:00
kr.angelov
ddb0d90c18
bugfix in the compiler for linref of empty record
2014-03-15 11:33:54 +00:00
aarne
7bfb2444af
bg in android app
2014-03-14 15:00:33 +00:00
aarne
d18fcde814
Spanish in android app
2014-03-14 09:45:46 +00:00
aarne
3a39903563
AppIta, with a small lexicon
2014-03-13 13:27:51 +00:00
aarne
b325f74048
App ported to Fre
2014-03-13 11:12:34 +00:00
kr.angelov
f3dead2d7c
remove accidental trace message
2014-03-13 08:25:19 +00:00
kr.angelov
87bd2d06d1
small stylistic changes in the Android App
2014-03-13 08:21:31 +00:00
kr.angelov
1a1e7cdb2e
compute the right word probability
2014-03-12 15:36:40 +00:00
hallgren
cb9222a20c
support.js: For better error handling, always use AJAX, don't fallback to JSONP
...
Cross-origin requests are allowed by the PGF service and are supported in
all modern browsers.
See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
2014-03-12 14:07:35 +00:00
hallgren
6abd0c8eef
haskell-bind: comment out superfluous imports
2014-03-12 13:21:47 +00:00
kr.angelov
0888760d66
the UI for the Android API now has stable word prediction
2014-03-12 14:01:22 +00:00
kr.angelov
3ce5339f34
ensure that negative probabilities are always avoided
2014-03-12 13:11:23 +00:00
john.j.camilleri
466ef94d59
Fix typo in PGFService: "incomlete"
2014-03-12 12:45:32 +00:00
kr.angelov
e76b745aa8
remove the unnecessary logging of the completion string
2014-03-12 10:57:11 +00:00
kr.angelov
d653304dcf
fixes in the word completion
2014-03-12 10:54:29 +00:00
aarne
556bfa002b
android: added (1) dg icon (2) green/yellow/red colours for translation confidence (3) App grammars as test case in Translator.java
2014-03-10 18:04:43 +00:00
aarne
29276ca62f
added alternative build with Pred grammars to android, commented out by default
2014-03-09 11:42:47 +00:00
kr.angelov
155656e328
added word completion in the Android UI
2014-03-07 21:30:54 +00:00