Commit Graph

9063 Commits

Author SHA1 Message Date
hallgren
3dc44ef8cf translator/DictionarySwe.gf: add oriented_A and simplify_V2 2015-02-23 16:39:54 +00:00
aarne
1bce002fdb changed default for Fin.mkN with endings ain/uin/äin: no strong grade, so that we get avain - avaimen instead of avain - avakimen 2015-02-22 19:07:56 +00:00
krasimir
d71d59cdc0 fix in thai_page2.xml 2015-02-20 15:31:32 +00:00
hallgren
08840a0afe translator/Dictionary.gf: remove video_A 2015-02-20 14:37:41 +00:00
hallgren
8d0bb75121 gftransate.js: increase sentence length limit for "fast" language to 500
Currently Bul, Chi, Eng and Swe are marked as "fast" in the documentation.
2015-02-20 14:34:37 +00:00
hallgren
25eeb7bb9c translator/Dictionary*.gf: remove video_A 2015-02-20 14:31:23 +00:00
hallgren
9dce1473d1 translator/DictionarySwe.gf: 6 new words
Found when translating a few paragraphs from a new article
2015-02-20 14:29:35 +00:00
krasimir
205403be76 set the keyboard pages for Thai in Translator.java 2015-02-20 14:26:30 +00:00
krasimir
cefd6440fe experimental Thai keyboard (still not tested) 2015-02-20 14:08:12 +00:00
joel.hinz
186cc84d37 translation app for iOS, replicating some of the functionality of the Android app. Compiles and works on iPad retina but may crash and has known issues. 2015-02-20 07:47:43 +00:00
krasimir
3ee931f905 added option -plus-as-bind which treats (+) as a bind when used with runtime variables 2015-02-20 13:26:12 +00:00
krasimir
9c6c6b6346 remove the meta prob flags 2015-02-20 13:00:51 +00:00
hallgren
913e56081a gftranslate.js: reduce sentense length limit to 200 (URL encoded) characters
This limit might still be to high to avoid excessive time/space use in the
parser for certain languages in the wide coverage translation grammar.
2015-02-20 12:31:41 +00:00
hallgren
b72b8dcef8 PGF Service: limit the number of parallel calls to the C run-time parse function to 4 by default
The limit can be changed with the -j flag
2015-02-20 12:29:44 +00:00
krasimir
87c0368281 silence some warnings in GNU Lightning for i386_64 2015-02-19 12:53:52 +00:00
krasimir
2f35aadc6f parsing with meta rules is now removed since we don't use them anymore and I would gladly remove some code. 2015-02-19 11:59:51 +00:00
krasimir
4ff6728993 fix the missmatch between Int and CInt in the Haskell binding to the word alignment API. This was causing problems on 64-bit machines 2015-02-18 17:05:35 +00:00
krasimir
f3f47c7761 fix the callback for unknown words as well 2015-02-18 16:47:33 +00:00
krasimir
4ed41214e5 fix in the callback for names in the Haskell binding 2015-02-18 16:41:13 +00:00
krasimir
27a12ca9fb fix in the parser for callbacks in the middle of a word 2015-02-18 16:14:29 +00:00
hallgren
4bd568d8bf Wide Coverage Translation Demo: use App14.pgf, remove spaces from Chi, Jpn and Tha output 2015-02-18 13:58:49 +00:00
aarne
36b1c421a6 removing spaces from App output of Chi,Jpn,Tha to get nicer speech output (and of course follow the target lang conventions) 2015-02-17 18:11:20 +00:00
aarne
98cbd993ac App14 with Tha up and running! 2015-02-17 17:18:51 +00:00
aarne
7b933211d1 TranslateTha compiles with 39+ k words 2015-02-17 15:23:11 +00:00
aarne
1a39a54f7f DictionaryTha with 39k entries from panlex; needs clean-up to compile 2015-02-17 15:13:37 +00:00
aarne
5fd4d5ede1 stub for TranslateTha, with Dictionary from Lexicon and Structural 2015-02-17 14:38:54 +00:00
hallgren
1dbe588497 Restore compatibility with ghc-7.4
With ghc-7.4 'import M hiding (x)' causes an error if M does not export x...
2015-02-16 15:41:38 +00:00
hallgren
2ce3e954fd Changes for compatibility with ghc-7.10-rc2
2 modules: Name clashes caused by Applicative-Monad change in Prelude
2 modules: Ambiguities caused by Foldable/Traversable in Prelude
2 modules: Backwards incompatible changes in time-1.5 for defaultTimeLocale
9 modules: {-# LANGUAGE FlexibleContexts #-} (because GHC checks inferred types
           now, in addition to explicitly given type signatures)

Also silenced warnings about tab characters in source files.
2015-02-16 15:05:06 +00:00
andrea.christina.unger
d21d4f442a ß -> ss (according to new spelling) 2015-02-11 16:40:58 +00:00
hallgren
0058a79a8f PGF.Haskell: adding operators for selections from tables 2015-02-12 16:09:33 +00:00
hallgren
43a873b53f Translating linearization functions to Haskell: more simplifications
+ Some additional simplifying rewrites.
+ Use an intermediate representation for Haskell types, for separation of
  concerns and cleaner code.
+ Pretty printer layout tuning
+ Code cleanup.
2015-02-12 16:05:48 +00:00
hallgren
686f570660 Translating linearization functions to Haskell: simplify the generated Haskell code
Introduced an intermediate representation for the generated Haskell expressions.
This allows pretty printing concerns to be separated from conversion concerns,
and makes it easy to apply some simplifying rewrites to the generated
expressions, e.g.

	[x] ++ [y]    ==> [x,y]
	pure f <*> x  ==> f <$> x
	f <$> pure x  ==> pure (f x)
	join (pure x) ==> x
2015-02-11 23:50:19 +00:00
kr.angelov
f527579c46 different words in Bulgarian for egoist/egotist and related 2015-02-11 13:19:03 +00:00
kr.angelov
e6f51d7ec6 fix in the JIT compiler that would hopefully make it work on iOS 2015-02-11 13:07:06 +00:00
kr.angelov
4cd5116514 fix self_N in DictionarySwe.gf 2015-02-11 09:16:45 +00:00
kr.angelov
d053a84b82 add gloat_V in DictionaryBul.gf 2015-02-11 09:11:16 +00:00
hallgren
ad8b6429ec Translating linearization functions to Haskell: support for variants
By adding the flag -haskell=variants to the command line, GF will now generate
linearization functions in Haskell that support variants. Variants are
represented as lists in Haskell.

Variants inside pre { ... } expressions are still ignored.

TODO: apply some monad laws to generate more compact code (using an
intermediate representation of the generated Haskell code, instead of
pretty printing directly from the GF code).
2015-02-09 16:24:33 +00:00
aarne
d9032f8764 news on Summer School on the main page 2015-02-09 09:35:51 +00:00
aarne
0a97989935 started modules for printing dictionary contents for a database 2015-02-09 07:18:28 +00:00
aarne
292cada649 added ExtraSpa.UseComp_estar for uses of estar instead of copula 2015-02-05 07:55:20 +00:00
inari
9a4970fd7a fixes: carry_N, ripple*, begin* 2015-02-02 09:13:46 +00:00
kr.angelov
ad4ef7c99e fixes in DictionaryBul 2015-02-01 13:49:25 +00:00
kr.angelov
43db38832d split spring_N into four senses 2015-02-01 13:48:49 +00:00
kr.angelov
c1ec4f3217 merge afterward_Adv with afterwards_Adv 2015-01-30 13:28:48 +00:00
kr.angelov
1baba82fe5 added hasLinearization in the Haskell binding 2015-01-30 13:05:57 +00:00
kr.angelov
ceb01afa90 merge rumor_N with rumour_N 2015-01-30 12:39:52 +00:00
kr.angelov
76c6d28e73 merge absinth_N with absinthe_N 2015-01-30 09:26:35 +00:00
kr.angelov
3128bd2f85 merge abridgement_N with abridgment_N 2015-01-30 09:19:06 +00:00
kr.angelov
7146b624dc a few fixes in DictionaryBul 2015-01-30 09:04:57 +00:00
kr.angelov
3f4d0aeb86 remove dimensions_N from the dictionaries 2015-01-28 11:23:16 +00:00