forked from GitHub/gf-core
updated resource license and docs and makefile
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
<LI><A HREF="#toc11">Paradigms for Russian</A>
|
||||
<LI><A HREF="#toc12">Paradigms for Spanish</A>
|
||||
<LI><A HREF="#toc13">Paradigms for Swedish</A>
|
||||
<LI><A HREF="#toc14">An Example of Usage</A>
|
||||
<LI><A HREF="#toc14">Browsing the libraries with GF commands</A>
|
||||
<LI><A HREF="#toc15">An Example of Usage</A>
|
||||
</UL>
|
||||
|
||||
<P></P>
|
||||
@@ -35,12 +36,17 @@
|
||||
<P>
|
||||
This document contains the most important parts of the GF Resource Grammar API.
|
||||
It has been machine-generated from the source files; each chapter gives a link
|
||||
to the relevant source files, which give more information.
|
||||
to the relevant source files, which give more information. Some of the files have
|
||||
not yet been prepared so that the machine generated documentation has the right format.
|
||||
</P>
|
||||
<P>
|
||||
The second-last chapter gives instructions on how to "browse" the library by
|
||||
loading the grammars into the <CODE>gf</CODE> command editor.
|
||||
</P>
|
||||
<P>
|
||||
The last chapter contains a brief example of how application grammars can
|
||||
import resource modules. It also illustrates a "design pattern" for using
|
||||
the resource API to build functor-based applications
|
||||
import resource modules. At the same time, it illustrates a "design pattern" for
|
||||
using the resource API to build functor-based applications
|
||||
</P>
|
||||
<A NAME="toc1"></A>
|
||||
<H1>Categories</H1>
|
||||
@@ -333,7 +339,6 @@ Source 2: <A HREF="../abstract/Cat.gf"><CODE>http://www.cs.chalmers.se/~aarne/GF
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc2"></A>
|
||||
<H1>Syntax Rules</H1>
|
||||
<P>
|
||||
@@ -1527,7 +1532,6 @@ Source: <A HREF="../api/Constructors.gf"><CODE>http://www.cs.chalmers.se/~aarne/
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc3"></A>
|
||||
<H1>Structural Words</H1>
|
||||
<P>
|
||||
@@ -2021,7 +2025,6 @@ Source: <A HREF="../abstract/Structural.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc4"></A>
|
||||
<H1>Paradigms for Danish</H1>
|
||||
<P>
|
||||
@@ -2345,7 +2348,6 @@ source <A HREF="../danish/ParadigmsDan.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc5"></A>
|
||||
<H1>Paradigms for English</H1>
|
||||
<P>
|
||||
@@ -2629,7 +2631,6 @@ source <A HREF="../english/ParadigmsEng.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc6"></A>
|
||||
<H1>Paradigms for Finnish</H1>
|
||||
<P>
|
||||
@@ -3043,7 +3044,6 @@ source <A HREF="../finnish/ParadigmsFin.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc7"></A>
|
||||
<H1>Paradigms for French</H1>
|
||||
<P>
|
||||
@@ -3327,7 +3327,6 @@ source <A HREF="../french/ParadigmsFre.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc8"></A>
|
||||
<H1>Paradigms for German</H1>
|
||||
<P>
|
||||
@@ -3641,7 +3640,6 @@ source <A HREF="../german/ParadigmsGer.gf"><CODE>http://www.cs.chalmers.se/~aarn
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc9"></A>
|
||||
<H1>Paradigms for Italian</H1>
|
||||
<P>
|
||||
@@ -3930,7 +3928,6 @@ source <A HREF="../italian/ParadigmsIta.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc10"></A>
|
||||
<H1>Paradigms for Norwegian</H1>
|
||||
<P>
|
||||
@@ -4254,7 +4251,6 @@ source <A HREF="../norwegian/ParadigmsNor.gf"><CODE>http://www.cs.chalmers.se/~a
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc11"></A>
|
||||
<H1>Paradigms for Russian</H1>
|
||||
<P>
|
||||
@@ -4553,7 +4549,6 @@ source <A HREF="../russian/ParadigmsRus.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc12"></A>
|
||||
<H1>Paradigms for Spanish</H1>
|
||||
<P>
|
||||
@@ -4847,7 +4842,6 @@ source <A HREF="../spanish/ParadigmsSpa.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc13"></A>
|
||||
<H1>Paradigms for Swedish</H1>
|
||||
<P>
|
||||
@@ -5146,8 +5140,37 @@ source <A HREF="../swedish/ParadigmsSwe.gf"><CODE>http://www.cs.chalmers.se/~aar
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<P></P>
|
||||
<A NAME="toc14"></A>
|
||||
<H1>Browsing the libraries with GF commands</H1>
|
||||
<P>
|
||||
All of the following assume
|
||||
</P>
|
||||
<PRE>
|
||||
cd $GF_LIB_PATH
|
||||
</PRE>
|
||||
<P>
|
||||
To try out inflection paradigms:
|
||||
</P>
|
||||
<PRE>
|
||||
> i -path=alltenses:prelude -retain alltenses/ParadigmsGer.gfr
|
||||
> cc mkN "Farbe"
|
||||
</PRE>
|
||||
<P>
|
||||
To look for a syntax tree in the overload API by parsing:
|
||||
</P>
|
||||
<PRE>
|
||||
> i -path=alltenses:prelude alltenses/OverLangEng.gfc
|
||||
> p -cat=S -overload "this grammar is too big"
|
||||
</PRE>
|
||||
<P>
|
||||
To view linearizations in all languages by parsing from English:
|
||||
</P>
|
||||
<PRE>
|
||||
> i alltenses/langs.gfcm
|
||||
> p -cat=S -lang=LangEng "this grammar is too big" | tb
|
||||
</PRE>
|
||||
<P></P>
|
||||
<A NAME="toc15"></A>
|
||||
<H1>An Example of Usage</H1>
|
||||
<P>
|
||||
The standard way of building an application has the following modules.
|
||||
@@ -5211,6 +5234,6 @@ For each language, an instantiation of the functor:
|
||||
</PRE>
|
||||
<P></P>
|
||||
|
||||
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
||||
<!-- html code generated by txt2tags 2.4 (http://txt2tags.sf.net) -->
|
||||
<!-- cmdline: txt2tags -thtml -\-toc synopsis.txt -->
|
||||
</BODY></HTML>
|
||||
|
||||
Reference in New Issue
Block a user