1
0
forked from GitHub/gf-core
Commit Graph

9088 Commits

Author SHA1 Message Date
aarne 3afa54c465 added stubs for Jpn modules needed in TranslateJpn 2015-01-14 16:55:58 +00:00
hallgren fbed7c19d5 gf.cabal: include PGF.Haskell 2015-01-14 14:53:28 +00:00
hallgren 0b114195aa Translating linearization functions to Haskell: better treatment of special tokens
Common code has been lifted out from the generated Haskell modules to
an auxiliary module PGF.Haskell, which is currently included in the
regular PGF library, although it is independent of it and probably belongs
in a separate library.

The type Str used by linearization functions is now based on a token
type Tok, which is defined in PGF.Haskell.

PGF.Haskell.Tok is similar to the type GF.Data.Str.Tok, but it has
constructors for the special tokens BIND, SOFT_BIND and CAPIT, and there is
a function

	fromStr :: Str -> String

that computes the effects of these special tokens.
2015-01-14 14:35:39 +00:00
lizazim 560d0a4384 Jpn13-01-15 2015-01-13 16:08:05 +00:00
aarne 5e70b381bc some fixes in DictionarySwe ; in ParadigmsSwe, a compounding function mkN : Str -> N -> N 2015-01-10 17:50:54 +00:00
francis.tyers 45b475e9a2 change translation of 'youth_N' (was 'youth hostel') 2015-01-10 09:31:27 +00:00
hallgren 4348ae40d2 Translating linearization functions to Haskell: add support for pre {...}
STILL TODO:

	- variants
	- better treatment of special tokens BIND, SOFT_BIND & CAPIT.
2015-01-08 17:52:45 +00:00
aarne 0631a9aa04 DictionaryJpn bootstrapped from Wiktionary. Does not compile yet, because there are undefined paradigms such as mkVS 2015-01-08 14:08:35 +00:00
lizazim 2bff57faca patchJpn 2015-01-07 23:44:49 +00:00
hallgren 6db2845375 Translating linearization functions to Haskell: use qualified names to avoid name clashes
All languages in the Phasebook can now be converted to compilable Haskell
code.

STILL TODO:
  
  	- variants
  	- pre { ... }
2015-01-07 16:13:28 +00:00
hallgren 51a233b2f1 Translating linearization functions to Haskell: significant code size reductions
+ Instead of including lists of parameter values generated by GF, generate
  code to enumerate parameter values (in the same order as GF). This seems
  to give a factor of 2-3 code size reduction in the Phrasebook (e.g.
  from 84MB to 25MB for Hin, from 338MB to 154MB for Fre).

+ Deduplicate table entries, i.e. convert "table [..,E,..,E,..,E,..]" into
  "let x = E in table [..,x,..,x,..,x,..]". This gives even more significant
  code size reduction in some cases, e.g. from 569MB to 15MB for
  PhrasebookFin.

All phrasebook languages can now be converted to compilable Haskell code,
except PhrasebookPes, which still has the name clash problem.
2015-01-06 19:57:24 +00:00
hallgren 1f60646f41 More work on translating linearization functions to Haskell
Many Phrasebook languages can now be converted to compilable Haskell code.
Some languages (Fre, Hin, Snd, Urd) generate too much Haskell code to be
practically useful (e.g. 338MB for Fre). One language (Fin) took too long
to convert to Haskell. One language (Pes) has problems with name clashes in
the generated Haskell code.

STILL TODO:

  	- variants
  	- pre { ... }
  	- reduce code duplication for large tables
	- generate qualified names to avoid name clashes
2015-01-06 16:48:03 +00:00
kr.angelov 6acf100ab1 fix the reference counting for callbacks in Python 2015-01-05 11:24:00 +00:00
kr.angelov 34e2a1b82d more words checked in Bulgarian 2014-12-30 10:24:57 +00:00
kr.angelov c50afedec4 alternative plural form for tibia_N in English 2014-12-30 10:23:52 +00:00
kr.angelov aa9cd64bb1 split correction_N into two senses. remove corrections_N 2014-12-30 10:21:54 +00:00
kr.angelov 08e2d9b968 typo in Dictionary.gf 2014-12-30 10:20:39 +00:00
kr.angelov 05819d824e random fixes and checked words in the dictionaries 2014-12-30 09:45:04 +00:00
kr.angelov 7598faed6c add tambourica_N in the dictionaries 2014-12-30 09:44:06 +00:00
kr.angelov 21f7ce30c2 split tambour_N into two senses 2014-12-30 09:42:27 +00:00
kr.angelov 8718562846 fixes in DictionarySwe 2014-12-29 14:31:05 +00:00
kr.angelov d1ab21e513 split tectonic_A in two senses 2014-12-29 14:28:57 +00:00
kr.angelov 0f459462e0 fix in DictionaryBul.gf 2014-12-29 14:24:38 +00:00
kr.angelov 39b09f6f41 some words in DictionaryBul 2014-12-29 12:45:47 +00:00
kr.angelov 328d4df660 API for word alignment in the C runtime and in the Haskell binding 2014-12-29 10:59:20 +00:00
kr.angelov d551c879ba merge orang_outan_N, orang_outang_N and orang_utan_N with orangutan_N 2014-12-28 13:10:04 +00:00
kr.angelov 34d70a5984 fix in DictionarySwe 2014-12-27 10:08:44 +00:00
kr.angelov 1a1b511e2a fixes in DictionaryBul 2014-12-27 10:08:14 +00:00
kr.angelov 4b066bde92 more compact implementation for GuStringBuf 2014-12-24 14:20:30 +00:00
kr.angelov d9c2925806 remove the fake orange_N in Swedish 2014-12-26 14:21:42 +00:00
kr.angelov 716a90455b change orange_1_N to apelsin in Swedish. orange_2_N is still the colour 2014-12-25 20:58:37 +00:00
aarne fca0070ca5 the standard variant for potato_N in DictionaryFre 2014-12-22 16:44:03 +00:00
kr.angelov 33264a5f43 potato_N in French 2014-12-22 09:19:26 +00:00
kr.angelov cb9b9c8b2f the adjectivial form of spud_N in Bulgarian 2014-12-22 09:18:46 +00:00
kr.angelov ef23205148 an alternative form for here_Adv in Bulgarian 2014-12-22 09:17:30 +00:00
aarne 42b66d7277 genitive variant of PossNP in TranslateSwe; overgenerating just like in Eng, because it generates a CN and can hence take determiners 2014-12-22 09:03:28 +00:00
aarne d5799284b4 variants of PossNP in TranslateEng: the goal of the project | the project's goal 2014-12-19 15:38:13 +00:00
kr.angelov 848c2e5aca simple fixes in DictionaryBul.gf 2014-12-19 15:34:33 +00:00
kr.angelov 327ed5836a in English addGenitiveS should use the BIND token 2014-12-19 15:33:54 +00:00
aarne b5269b262b lowered Symb_Chunk probability; fixed translator Makefile 2014-12-19 15:17:38 +00:00
kr.angelov adb9e29dc4 bugfix and tiny optimization for callbacks from Haskell 2014-12-19 10:14:41 +00:00
kr.angelov 705ffaa33d haddock comments for parseWithHeuristics 2014-12-19 09:05:51 +00:00
kr.angelov 022849482d added mkStr to the Haskell binding 2014-12-19 08:58:02 +00:00
kr.angelov fdc6c9a3cd added mkApp to the Haskell binding 2014-12-19 08:47:00 +00:00
aarne 4f7d731d40 fixed typo in Dictionary Fin 2014-12-17 12:42:30 +00:00
aarne 089d0b6b37 added stack space to compile TranslateChi 2014-12-17 12:38:53 +00:00
aarne c8e54c66a4 adapted Translate grammar to work properly with Symb_Chunk 2014-12-17 12:34:56 +00:00
aarne 8822d9e7fd some preposition variants fixed in DictionaryFin, to avoid the problem with unpredictable variant ordering 2014-12-17 12:34:11 +00:00
kr.angelov 467a308335 fix in the Haskell binding 2014-12-16 10:35:56 +00:00
kr.angelov c192aed5ba forgot to export parseWithHeuristics from Haskell 2014-12-16 10:33:45 +00:00