From a175874e2c144a55ea88bf6e351e7b6b9ea4ab07 Mon Sep 17 00:00:00 2001
From: aarne
Date: Wed, 11 Mar 2009 16:54:16 +0000
Subject: [PATCH] idea page
---
doc/gf-ideas.html | 284 +++++++++++++++++++++++++++++++
doc/gf-ideas.txt | 216 +++++++++++++++++++++++
examples/bronzeage/SwadeshEng.gf | 3 +-
examples/bronzeage/SwadeshI.gf | 1 +
next-lib/src/Make.hs | 4 +
src/server/lighttpd.conf | 2 +-
6 files changed, 508 insertions(+), 2 deletions(-)
create mode 100644 doc/gf-ideas.html
create mode 100644 doc/gf-ideas.txt
diff --git a/doc/gf-ideas.html b/doc/gf-ideas.html
new file mode 100644
index 000000000..a032061e1
--- /dev/null
+++ b/doc/gf-ideas.html
@@ -0,0 +1,284 @@
+
+
+
+
+
+GF Project Ideas
+
+GF Project Ideas
+
+Resource Grammars, Web Applications, etc
+contact: Aarne Ranta (aarne at chalmers dot se)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Resource Grammar Implementations
+
+GF Resource Grammar Library is an open-source computational grammar resource
+that currently covers 12 languages.
+The Library is a collaborative effort to which programmers from many countries
+have contributed. The next goal is to extend the library
+to all of the 23 official EU languages. Also other languages
+are welcome all the time. The following diagram show the current status of the
+library. Each of the red and yellow ones are a potential project.
+
+
+
+
+
+
+
+red=wanted, green=exists, orange=in-progress, solid=official-eu, dotted=non-eu
+
+
+The linguistic coverage of the library includes the inflectional morphology
+and basic syntax of each language. It can be used in GF applications
+and also ported to other formats. It can also be used for building other
+linguistic resources, such as morphological lexica and parsers.
+The library is licensed under LGPL.
+
+
+Tasks
+
+Writing a grammar for a language is usually easier if other languages
+from the same family already have grammars. The colours have the same
+meaning as in the diagram above. Thus, in particular, each of the languages
+coloured red below are possible programming projects.
+
+
+Baltic:
+
+
+
+
+Celtic:
+
+
+
+
+Fenno-Ugric:
+
+
+- Estonian
+
- Finnish
+
- Hungarian
+
+
+
+Germanic:
+
+
+- Danish
+
- Dutch
+
- English
+
- German
+
- Norwegian
+
- Swedish
+
+
+
+Hellenic:
+
+
+
+
+Romance:
+
+
+- Catalan
+
- French
+
- Italian
+
- Portuguese
+
- Romanian
+
- Spanish
+
+
+
+Semitic:
+
+
+
+
+Slavonic:
+
+
+- Bulgarian
+
- Czech
+
- Polish
+
- Russian
+
- Slovak
+
- Slovenian
+
+
+
+Who is qualified
+
+Writing a resource grammar implementation requires good general programming
+skills, and a good explicit knowledge of the grammar of the target language.
+A typical participant could be
+
+
+- native or fluent speaker of the target language
+
- interested in languages on the theoretical level, and preferably familiar
+ with many languages (to be able to think about them on an abstract level)
+
- familiar with functional programming languages such as ML or Haskell
+ (GF itself is a language similar to these)
+
- on Master's or PhD level in linguistics, computer science, or mathematics
+
+
+
+But it is the quality of the assignment that is assessed, not any formal
+requirements. The "typical participant" was described to give an idea of
+who is likely to succeed in this.
+
+
+The Summer School
+
+A Summer School on resource grammars and applications will
+be organized at the campus of Chalmers University of Technology in Gothenburg,
+Sweden, on 17-28 August 2009. It can be seen as a natural checkpoint in
+a resource grammar project; the participants are assumed to learn GF before
+the Summer School, but how far they have come in their projects may vary.
+
+
+More information on the Summer School web page:
+
+
+http://www.cs.chalmers.se/Cs/Research/Language-technology/GF/doc/gf-summerschool.html
+
+
+Other project ideas
+
+GF interpreter in Java
+
+The idea is to write a run-time system for GF grammars in Java. This enables
+the use of embedded grammars in Java applications. This project is
+a fresh-up of earlier work,
+now using the new run-time format PGF and addressing a new parsing algorithm.
+
+
+Requirements: Java, Haskell, basics of compilers and parsing algorithms.
+
+
+GF interpreter in C#
+
+The idea is to write a run-time system for GF grammars in C#. This enables
+the use of embedded grammars in C# applications. This project is
+similar to earlier work
+on Java, now addressing C# and using the new run-time format PGF.
+
+
+Requirements: C#, Haskell, basics of compilers and parsing algorithms.
+
+
+GF localization library
+
+This is an idea for a software localization library using GF grammars.
+The library should replace strings by grammar rules, which can be conceived
+as very smart templates always guaranteeing grammatically correct output.
+The library should be based on the
+GF Resource Grammar Library, providing infrastructure
+currently for 12 languages.
+
+
+Requirements: GF, some natural languages, some localization platform
+
+
+Multilingual grammar applications for mobile phones
+
+GF grammars can be compiled into programs that can be run on different
+platforms, such as web browsers and mobile phones. An example is a
+numeral translator running on both these platforms.
+
+
+The proposed project is rather open: find some cool applications of
+the technology that are useful or entertaining for mobile phone users. A
+part of the project is to investigate implementation issues such as making
+the best use of the phone's resources. Possible applications have
+something to do with translation; one suggestion is an sms editor/translator.
+
+
+Requirements: GF, JavaScript, some phone application development tools
+
+
+Multilingual grammar applications for the web
+
+This project is rather open: find some cool applications of
+the technology that are useful or entertaining on the web. Examples include
+
+
+- translators: see demo
+
- multilingual wikis: see demo
+
- fridge magnets: see demo
+
+
+
+Requirements: GF, JavaScript or Java and Google Web Toolkit, CGI
+
+
+GMail gadget for GF
+
+It is possible to add custom gadgets to GMail. If you are going to write
+e-mail in a foreign language then you probably will need help from
+dictonary or you may want to check something in the grammar. GF provides
+all resources that you may need but you have to think about how to
+design gadget that fits well in the GMail environment and what
+functionality from GF you want to expose.
+
+
+Requirements: GF, Google Web Toolkit
+
+
+Dissemination and intellectual property
+
+All code suggested here will be released under the LGPL just like
+the current resource grammars and run-time GF libraries,
+with the copyright held by respective authors.
+
+
+As a rule, the code will be distributed via the GF web site.
+
+
+
+
+
diff --git a/doc/gf-ideas.txt b/doc/gf-ideas.txt
new file mode 100644
index 000000000..cf66a589e
--- /dev/null
+++ b/doc/gf-ideas.txt
@@ -0,0 +1,216 @@
+GF Project Ideas
+Resource Grammars, Web Applications, etc
+contact: Aarne Ranta (aarne at chalmers dot se)
+
+%!Encoding : iso-8859-1
+
+%!target:html
+%!postproc(html): #BECE
+%!postproc(html): #ENCE
+%!postproc(html): #GRAY
+%!postproc(html): #EGRAY
+%!postproc(html): #RED
+%!postproc(html): #YELLOW
+%!postproc(html): #ERED
+
+#BECE
+[gf-logo.png]
+#ENCE
+
+
+==Resource Grammar Implementations==
+
+GF Resource Grammar Library is an open-source computational grammar resource
+that currently covers 12 languages.
+The Library is a collaborative effort to which programmers from many countries
+have contributed. The next goal is to extend the library
+to all of the 23 official EU languages. Also other languages
+are welcome all the time. The following diagram show the current status of the
+library. Each of the red and yellow ones are a potential project.
+
+#BECE
+[school-langs.png]
+#ENCE
+
+
+//red=wanted, green=exists, orange=in-progress, solid=official-eu, dotted=non-eu//
+
+The linguistic coverage of the library includes the inflectional morphology
+and basic syntax of each language. It can be used in GF applications
+and also ported to other formats. It can also be used for building other
+linguistic resources, such as morphological lexica and parsers.
+The library is licensed under LGPL.
+
+
+===Tasks===
+
+Writing a grammar for a language is usually easier if other languages
+from the same family already have grammars. The colours have the same
+meaning as in the diagram above. Thus, in particular, each of the languages
+coloured red below are possible programming projects.
+
+Baltic:
+- #RED Latvian #ERED
+- #RED Lithuanian #ERED
+
+
+Celtic:
+- #RED Irish #ERED
+
+
+Fenno-Ugric:
+- #RED Estonian #ERED
+- #GRAY Finnish #EGRAY
+- #RED Hungarian #ERED
+
+
+Germanic:
+- #GRAY Danish #EGRAY
+- #RED Dutch #ERED
+- #GRAY English #EGRAY
+- #GRAY German #EGRAY
+- #GRAY Norwegian #EGRAY
+- #GRAY Swedish #EGRAY
+
+
+Hellenic:
+- #RED Greek #ERED
+
+
+Romance:
+- #GRAY Catalan #EGRAY
+- #GRAY French #EGRAY
+- #GRAY Italian #EGRAY
+- #RED Portuguese #ERED
+- #YELLOW Romanian #ERED
+- #GRAY Spanish #EGRAY
+
+
+Semitic:
+- #YELLOW Arabic #ERED
+- #RED Maltese #ERED
+
+
+Slavonic:
+- #GRAY Bulgarian #EGRAY
+- #RED Czech #ERED
+- #YELLOW Polish #ERED
+- #GRAY Russian #EGRAY
+- #RED Slovak #ERED
+- #RED Slovenian #ERED
+
+
+
+===Who is qualified===
+
+Writing a resource grammar implementation requires good general programming
+skills, and a good explicit knowledge of the grammar of the target language.
+A typical participant could be
+- native or fluent speaker of the target language
+- interested in languages on the theoretical level, and preferably familiar
+ with many languages (to be able to think about them on an abstract level)
+- familiar with functional programming languages such as ML or Haskell
+ (GF itself is a language similar to these)
+- on Master's or PhD level in linguistics, computer science, or mathematics
+
+
+But it is the quality of the assignment that is assessed, not any formal
+requirements. The "typical participant" was described to give an idea of
+who is likely to succeed in this.
+
+
+===The Summer School===
+
+A Summer School on resource grammars and applications will
+be organized at the campus of Chalmers University of Technology in Gothenburg,
+Sweden, on 17-28 August 2009. It can be seen as a natural checkpoint in
+a resource grammar project; the participants are assumed to learn GF before
+the Summer School, but how far they have come in their projects may vary.
+
+More information on the Summer School web page:
+
+[``http://www.cs.chalmers.se/Cs/Research/Language-technology/GF/doc/gf-summerschool.html`` http://www.cs.chalmers.se/Cs/Research/Language-technology/GF/doc/gf-summerschool.html]
+
+
+==Other project ideas==
+
+===GF interpreter in Java===
+
+The idea is to write a run-time system for GF grammars in Java. This enables
+the use of **embedded grammars** in Java applications. This project is
+a fresh-up of [earlier work http://www.cs.chalmers.se/~bringert/gf/gf-java.html],
+now using the new run-time format PGF and addressing a new parsing algorithm.
+
+Requirements: Java, Haskell, basics of compilers and parsing algorithms.
+
+
+===GF interpreter in C#===
+
+The idea is to write a run-time system for GF grammars in C#. This enables
+the use of **embedded grammars** in C# applications. This project is
+similar to [earlier work http://www.cs.chalmers.se/~bringert/gf/gf-java.html]
+on Java, now addressing C# and using the new run-time format PGF.
+
+Requirements: C#, Haskell, basics of compilers and parsing algorithms.
+
+
+===GF localization library===
+
+This is an idea for a software localization library using GF grammars.
+The library should replace strings by grammar rules, which can be conceived
+as very smart templates always guaranteeing grammatically correct output.
+The library should be based on the
+[GF Resource Grammar Library http://www.cs.chalmers.se/Cs/Research/Language-technology/GF/lib/resource/doc/synopsis.html], providing infrastructure
+currently for 12 languages.
+
+Requirements: GF, some natural languages, some localization platform
+
+
+===Multilingual grammar applications for mobile phones===
+
+GF grammars can be compiled into programs that can be run on different
+platforms, such as web browsers and mobile phones. An example is a
+[numeral translator http://www.cs.chalmers.se/Cs/Research/Language-technology/GF/demos/index-numbers.html] running on both these platforms.
+
+The proposed project is rather open: find some cool applications of
+the technology that are useful or entertaining for mobile phone users. A
+part of the project is to investigate implementation issues such as making
+the best use of the phone's resources. Possible applications have
+something to do with translation; one suggestion is an sms editor/translator.
+
+Requirements: GF, JavaScript, some phone application development tools
+
+
+===Multilingual grammar applications for the web===
+
+This project is rather open: find some cool applications of
+the technology that are useful or entertaining on the web. Examples include
+- translators: see [demo http://tournesol.cs.chalmers.se:41296/translate]
+- multilingual wikis: see [demo http://csmisc14.cs.chalmers.se/~meza/restWiki/wiki.cgi]
+- fridge magnets: see [demo http://tournesol.cs.chalmers.se:41296/fridge]
+
+
+Requirements: GF, JavaScript or Java and Google Web Toolkit, CGI
+
+
+===GMail gadget for GF===
+
+It is possible to add custom gadgets to GMail. If you are going to write
+e-mail in a foreign language then you probably will need help from
+dictonary or you may want to check something in the grammar. GF provides
+all resources that you may need but you have to think about how to
+design gadget that fits well in the GMail environment and what
+functionality from GF you want to expose.
+
+Requirements: GF, Google Web Toolkit
+
+
+
+==Dissemination and intellectual property==
+
+All code suggested here will be released under the LGPL just like
+the current resource grammars and run-time GF libraries,
+with the copyright held by respective authors.
+
+As a rule, the code will be distributed via the GF web site.
+
diff --git a/examples/bronzeage/SwadeshEng.gf b/examples/bronzeage/SwadeshEng.gf
index 7ebab9596..9b2cb878e 100644
--- a/examples/bronzeage/SwadeshEng.gf
+++ b/examples/bronzeage/SwadeshEng.gf
@@ -2,5 +2,6 @@
concrete SwadeshEng of Swadesh = SwadeshI with
(Syntax = SyntaxEng),
+v v v v v v v
+^ ^ ^ ^ ^ ^ ^
(Lexicon = LexiconEng) ;
-
diff --git a/examples/bronzeage/SwadeshI.gf b/examples/bronzeage/SwadeshI.gf
index 331f926aa..192ad95e9 100644
--- a/examples/bronzeage/SwadeshI.gf
+++ b/examples/bronzeage/SwadeshI.gf
@@ -98,6 +98,7 @@ incomplete concrete SwadeshI of Swadesh = open Syntax, Lexicon in {
white_A = Lexicon.white_A ;
wide_A = Lexicon.wide_A ;
yellow_A = Lexicon.yellow_A ;
+
-- Nouns
animal_N = Lexicon.animal_N ;
ashes_N = Lexicon.ashes_N ;
diff --git a/next-lib/src/Make.hs b/next-lib/src/Make.hs
index 9fca1713a..bd835def4 100644
--- a/next-lib/src/Make.hs
+++ b/next-lib/src/Make.hs
@@ -152,8 +152,12 @@ demos abstr ls = "gr -number=100 | l -treebank " ++ unlexer abstr ls ++
lang (lla,la) = lla ++ "/All" ++ la ++ ".gf"
compat (lla,la) = lla ++ "/Compatibility" ++ la ++ ".gf"
symbol (lla,la) = lla ++ "/Symbol" ++ la ++ ".gf"
+v v v v v v v
+try (lla,la) = "api/Syntax" ++ la ++ ".gf"
+*************
try (lla,la) = "api/Try" ++ la ++ ".gf"
syntax (lla,la) = "api/Syntax" ++ la ++ ".gf"
+^ ^ ^ ^ ^ ^ ^
symbolic (lla,la) = "api/Symbolic" ++ la ++ ".gf"
parse (lla,la) = "parse/Parse" ++ la ++ ".gf"
diff --git a/src/server/lighttpd.conf b/src/server/lighttpd.conf
index 09f73f102..23b7f6d8c 100644
--- a/src/server/lighttpd.conf
+++ b/src/server/lighttpd.conf
@@ -50,7 +50,7 @@ fastcgi.debug = 0
fastcgi.server = ( ".pgf" =>
((
"socket" => basedir + "/" + var.PID + "-pgf.socket",
- "bin-path" => basedir + "/pgf.fcgi",
+ "bin-path" => basedir + "/dist/build/pgf-server/pgf-server",
# Use 2 OS threads (to be able to use 2 cores).
# Limit heap size to 512 MB.
"bin-environment" => ("GHCRTS" => "-N2 -M512M"),