1
0
forked from GitHub/gf-core
Commit Graph

9107 Commits

Author SHA1 Message Date
kr.angelov fbc8bb6769 fix in the Haskell runtime 2014-01-24 08:34:55 +00:00
aarne 7d41ff0b9f testing Predication with Swe 2014-01-23 21:20:52 +00:00
aarne 2c71e31a64 generalized some types in Predication so that the same fun's now cover slash propagation ("who does she force us to love") as well 2014-01-23 17:50:30 +00:00
hallgren 1189a13840 gf.cabal: bump version number to 3.5.12 2014-01-21 16:30:01 +00:00
aarne 8c1128c16c experimental Predication with dependent types - promising, but far from finished 2014-01-23 16:12:28 +00:00
hallgren caacaa9d8b demos/translation: add preliminary online demo,
but it is not ready to be widely advertised yet, e.g. lexing and unlexing is
missing.
2014-01-23 14:56:52 +00:00
aarne 7111684795 removed obsolete DictEng??? grammars and marked Parse as obsolete in Makefile 2014-01-22 15:00:16 +00:00
aarne 1ca7e33ea6 working through translator/Extensions with some reorganization and generalizations 2014-01-22 14:44:56 +00:00
aarne fca176cbbf new copy of DictionaryBul with phrasetable extensions 2014-01-22 14:44:22 +00:00
hallgren 7cf6391ee1 simple translator: Replaced 'GF Robust Parser' with 'GF Wide Coverage Translation'
The interface to the wide coverage translation is in js/gftranslate.js
and it assumes that the grammar is installed on the cloud server
as /robust/Translate8.pgf.

The list of supported languages is hardwired in gftranslate.js, since
there is no support for obtaining this info from the C run-time system
at the moment.
2014-01-21 16:47:23 +00:00
kr.angelov db67c180a5 approximately 3500 new Bulgarian words extracted from the phrasetables for EuroParl 2014-01-21 16:51:56 +00:00
aarne 8a5717d38c notes in Extensions 2014-01-21 15:23:02 +00:00
aarne 9b986255bf completed Translate grammars for all 8 languages; a Makefile entry for them; updated doc/translation.html. What remains to do is to make the new documentation facilities (GF-driven, in the Documentation modules) available in the Android app, so that the Parse* modules can be retired from translation tasks. 2014-01-21 08:20:46 +00:00
aarne 370296c0ba added Translate modules for Hindi 2014-01-21 07:26:53 +00:00
aarne c20f5c3cea removed paths to english in Translate modules 2014-01-21 07:26:17 +00:00
aarne 355777e0ca added refactored TranslateFin. Starting to get confident that the refactoring is on the right track. 2014-01-20 21:52:14 +00:00
aarne 68bee264a5 Translate grammar refactoring for Bul and Chi 2014-01-20 21:32:39 +00:00
aarne f22647f73c lib/src/translator: refactored wide-coverage translator grammar structured as described in lib/doc/translate.html. Implemented for Eng and Swe. To do: more languages, makefile entries (to be converted from entries for Parse), some internal refactoring in translator/Extensions.gf. 2014-01-20 20:59:26 +00:00
hallgren b8f3914209 Optionally include C run-time support
If the C run-time library is compiled and installed on your system, you can now
do 'cabal configure -fc-runtime' to get the following extras:
  + The haskell binding to the C run-time library will be included in the
    PGF library (so you can import it in Haskell applications).
    Documentation on the new modules will be included when you run
    'cabal haddock'.
  + The new command 'pgf-shell', implemented on top of haskell binding to
    the C run-time system.
  + Three new commands in the web API: c-parse, c-linearize and
    c-translate. Their interfaces are similar to the corresponding commands
    without the "c-" prefix, but they should be considered preliminary.
2014-01-20 17:06:11 +00:00
hallgren 1631a46040 haskell-bind: add an export list to hide internal stuff
It also makes the generated haddock documentaiton more structured.
2014-01-20 14:40:38 +00:00
aarne 0f1826a868 subtitles in translation doc 2014-01-20 08:32:09 +00:00
aarne 65457e12e8 translation doc: principles distinguishing translation and resource grammars 2014-01-19 18:42:45 +00:00
aarne 43daeaf1b4 translation doc with a module diagram and as html 2014-01-19 18:28:36 +00:00
aarne 88af7ed93a started a doc describing the use of RGL in translation, in order to gather relevant information in one place and to structure future developments 2014-01-19 10:50:48 +00:00
aarne 681020b371 Merry Christmas and other Dict updates 2014-01-17 14:42:22 +00:00
hallgren 29d1b58ff5 haskell-bind.cabal: relax overly restrictive version bounds and add cc-options 2014-01-17 14:18:20 +00:00
hallgren 4226be69e8 haskell-bind: add a cabal file and examples/pgf-shell.hs
* The haskell-bind.cabal file makes it easy to build the haskell binding and
  use it in ghci.
* pgf-shell.hs is a simple example of how to use the haskell binding.
2014-01-17 14:02:35 +00:00
hallgren 33024f3130 haskell-bind: change the type of CRuntimeFFI.getConcr
Change the type of getConcr from

    getConcr :: PGF -> Language -> Concr

to

    getConcr :: PGF -> Language -> Maybe Concr

This is to prevent programs from crashing later if you try to select a
concrete syntax that is not present in a grammar.
2014-01-17 13:58:48 +00:00
hallgren aea787aded examples/Phasebook/Makefile2: Lativan is fixed, include it again 2014-01-13 14:18:32 +00:00
normundsg 0000ecfbc7 Phrasebook: Latvian is fixed (according to the latest RG) 2014-01-11 20:26:44 +00:00
aarne b572226e37 removed the generated html files 2014-01-10 14:55:21 +00:00
aarne 31062771ee started demo pages for translation and resource grammars 2014-01-10 14:54:21 +00:00
hallgren 22ac05941b lib/src/Makefile: make -j Parse8.pgf
The parse grammar Parse8.pgf for 8 languages can now be built in parallel with
make -j. Finnish requires a lot of RAM. French requires a lot of time.

Other related make targets available for convenience:

	make Parse: create Parse???.pgf for the 8 individual languages
	make Parse8: create Parse8.pgf assuming all Parse???.pgf already exist

Note: these make targets (and some others) use the gf executable and RGL
library that are installed on the system (found via $PATH and $GF_LIB_PATH,
respectively).
2014-01-10 13:28:53 +00:00
hallgren fc53e062a3 examples/Phasebook/Makefile2: Lativan is broken, omit it for now
Also rewrote Makefile2 in a more compact way.
2014-01-10 13:26:42 +00:00
hallgren a158bbce53 Check file datestamp before creating PGF file when compiling grammars
When running a command like

	gf -make L_1.gf ... L_n.gf

gf now avoids recreating the target PGF file if it already exists and is
up-to-date. 

gf still reads all required .gfo files, so significant additional speed
improvements are still possible. This could be done by reading .gfo files
more lazily...
2014-01-09 17:30:24 +00:00
hallgren de5b714573 Check file datestamps before unioning PGF files (fix)
Also check that no additional output formats have been selected.
2014-01-09 15:14:35 +00:00
hallgren 40b8c5fb99 Check file datestamps before unioning PGF files
When running a command like

 gf -make -name=T L_1.pgf ... L_n.pgf

gf now checks if T.pgf exists and is up-to-date before reading and computing
the union of the L_i.pgf files.

The name (T) of the target PGF file has to be given explicitly for this to work,
since otherwise the name is not known until the union has been computed.
If the functions for reading PGF files and computing the union were lazier,
this would not be necessary...
2014-01-09 14:18:21 +00:00
john 60c981d414 Maltese RG: refactor participles, add Idiom.Self* lins 2013-12-23 09:16:11 +00:00
kr.angelov ba191fb438 fixes in DictEngBul and DictEngSwe 2013-12-20 12:03:36 +00:00
inari 83191372cb fixed good_A in DictEngFre 2013-12-19 10:47:39 +00:00
kr.angelov 86523f872c partial cleanup in DictEngBul 2013-12-19 09:42:15 +00:00
kr.angelov 1de632df5a DictEngBul is almost doubled in size by importing more data. It will take a long to clean it up :-) 2013-12-18 17:49:44 +00:00
hallgren 6ce085349d Release note updates and some other minor things 2013-12-18 16:22:59 +00:00
hallgren 35f86b7d81 PGFtoPython: add Python translations for nonExist, BIND and SOFT_BIND
Someone who is familiar with the Python translation should check this.
2013-12-18 15:31:39 +00:00
hallgren 6055ad2f0d GF home page: use the SVG version of the GF logo in browsers that support it
It looks better on high resolution screens.
2013-12-18 12:01:15 +00:00
hallgren c6d2b30c6b src/server/gf-server.cabal: compile it as a common library + executables 2013-12-17 15:55:14 +00:00
kr.angelov ad79e7144c fixes in Swedish 2013-12-18 11:22:56 +00:00
kr.angelov 87760bb843 fixes in the Bulgarian and Swedish dictionaries 2013-12-18 10:26:05 +00:00
kr.angelov 0bc9c4f7aa another fix 2013-12-18 09:49:36 +00:00
kr.angelov f534cc8dcb fixes in the dictionaries inspired by a paper phrasebook 2013-12-18 09:18:55 +00:00