forked from GitHub/gf-core
Preparing for release.
This commit is contained in:
2
bin/jgf2
2
bin/jgf2
@@ -4,7 +4,7 @@
|
|||||||
GFHOME=/home/aarne/GF2/bin
|
GFHOME=/home/aarne/GF2/bin
|
||||||
|
|
||||||
JGUILIB=$GFHOME/java/
|
JGUILIB=$GFHOME/java/
|
||||||
GF=$GFHOME/gf2
|
GF=$GFHOME/gf
|
||||||
JGUI=GFEditor2
|
JGUI=GFEditor2
|
||||||
|
|
||||||
java -cp $JGUILIB $JGUI "$GF -java $*"
|
java -cp $JGUILIB $JGUI "$GF -java $*"
|
||||||
|
|||||||
34
examples/letter/README
Normal file
34
examples/letter/README
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
GF challenges Microsoft Works! Here you find templates for
|
||||||
|
multilingual authoring of business and love letters!
|
||||||
|
|
||||||
|
Another point of these grammars is to illustrate how
|
||||||
|
local updates are propagated everywhere in the document.
|
||||||
|
Form, in the editor
|
||||||
|
|
||||||
|
Dear Colleague,
|
||||||
|
|
||||||
|
I love you.
|
||||||
|
|
||||||
|
With best regards,
|
||||||
|
|
||||||
|
your wife
|
||||||
|
|
||||||
|
and change between ColleagueHe, ColleagueShe, ColleaguesHe, ColleaguesShe.
|
||||||
|
|
||||||
|
The grammars are somewhat ad hoc and messy, and could be improved
|
||||||
|
with better abstractions.
|
||||||
|
|
||||||
|
(AR 2001)
|
||||||
|
|
||||||
|
To use in the editor, it is a good idea to precompile:
|
||||||
|
|
||||||
|
gf <mkLetter.gfs
|
||||||
|
|
||||||
|
For the actual use, type then
|
||||||
|
|
||||||
|
jgf Letter.gfcm
|
||||||
|
|
||||||
|
and select "Letter" from the "Cat" menu.
|
||||||
|
|
||||||
|
Copyright (c) 2001-2004 Janna Khegai, Aarne Ranta
|
||||||
|
under GNU General Public License (GPL).
|
||||||
37
examples/numerals/README
Normal file
37
examples/numerals/README
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
Numeral grammars, from 1 to 999999.
|
||||||
|
|
||||||
|
Many grammars were written during the Chalmes CS graduate courses in 1999
|
||||||
|
and 2002. Grammars originally written in 1999 are automatic translations from
|
||||||
|
old-GF source, which explains their bad formatting and structure.
|
||||||
|
(Authors: Koen Claessen, Carlos Gonzalía, Qiao Haiyan, Patrik Jansson,
|
||||||
|
Peter Ljunglöf, Wojciech Mostowski, Aarne Ranta, Karol Ostrovski, David Wahlstedt
|
||||||
|
1999--2002)
|
||||||
|
|
||||||
|
The majority of gramamars were written in 2003-2004 by Harald
|
||||||
|
Hammarström, who also wrote papers on various aspects of numeral
|
||||||
|
systems in the world's languages.
|
||||||
|
|
||||||
|
|
||||||
|
Test usage:
|
||||||
|
|
||||||
|
To precompile a multilingual numeral grammar:
|
||||||
|
|
||||||
|
gf <mkNumerals.gfs
|
||||||
|
|
||||||
|
To open a translation session,
|
||||||
|
|
||||||
|
gf numerals.gfcm -- in the OS shell
|
||||||
|
trans -lang -- in the GF shell
|
||||||
|
|
||||||
|
To create an example HTML page with translations of a numeral:
|
||||||
|
|
||||||
|
echo "x=2341" | gft numerals.gfcm >2341.html
|
||||||
|
|
||||||
|
(Requires the gft program, produces by "make gft" in GF sources)
|
||||||
|
|
||||||
|
Document last updated August 3, 2004 by Aarne Ranta.
|
||||||
|
|
||||||
|
Copyright (c) Koen Claessen, Carlos Gonzalía, Qiao Haiyan, Harald
|
||||||
|
Hammarström, Patrik Jansson, Peter Ljunglöf, Wojciech Mostowski, Aarne
|
||||||
|
Ranta, Karol Ostrovski, David Wahlstedt 1999--2004, under
|
||||||
|
GNU General Public License (GPL).
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
include numerals.Abs.gf ;
|
include numerals.Abs.gf ;
|
||||||
|
--- flags unlexer=reverse ;
|
||||||
param DForm = unit Place | teen | ten | hund ;
|
param DForm = unit Place | teen | ten | hund ;
|
||||||
param Size = small | large | dual ;
|
param Size = small | large | dual ;
|
||||||
param Place = attr | indep ;
|
param Place = attr | indep ;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
include numerals.Abs.gf ;
|
include numerals.Abs.gf ;
|
||||||
|
|
||||||
param Place = attr | indep ;
|
param Place = indep | attr ;
|
||||||
param Nm = sg | pl ;
|
param Nm = sg | pl ;
|
||||||
oper sata : Nm => Str =
|
oper sata : Nm => Str =
|
||||||
table {{sg} => "sata" ; {pl} => "sataa"} ;
|
table {{sg} => "sata" ; {pl} => "sataa"} ;
|
||||||
|
|||||||
41
grammars/mkDistr.sh
Normal file
41
grammars/mkDistr.sh
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
rm -rf grammars
|
||||||
|
mkdir -pv grammars
|
||||||
|
mkdir -pv grammars/letter
|
||||||
|
mkdir -pv grammars/logic
|
||||||
|
mkdir -pv grammars/numerals
|
||||||
|
mkdir -pv grammars/prelude
|
||||||
|
mkdir -pv grammars/resource
|
||||||
|
mkdir -pv grammars/resource/abstract
|
||||||
|
mkdir -pv grammars/resource/english
|
||||||
|
mkdir -pv grammars/resource/finnish
|
||||||
|
mkdir -pv grammars/resource/french
|
||||||
|
mkdir -pv grammars/resource/german
|
||||||
|
mkdir -pv grammars/resource/italian
|
||||||
|
mkdir -pv grammars/resource/romance
|
||||||
|
mkdir -pv grammars/resource/russian
|
||||||
|
mkdir -pv grammars/resource/swedish
|
||||||
|
|
||||||
|
cp -pv letter/README grammars/letter/
|
||||||
|
cp -pv letter/mkLetter.gfs grammars/letter/
|
||||||
|
cp -pv letter/*.gf grammars/letter/
|
||||||
|
|
||||||
|
# cp -pv logic/*.gf grammars/logic/
|
||||||
|
|
||||||
|
cp -pv newnumerals/README grammars/numerals/
|
||||||
|
cp -pv newnumerals/*.gf grammars/numerals/
|
||||||
|
cp -pv newnumerals/mkNumerals.gfs grammars/numerals/
|
||||||
|
|
||||||
|
cp -pv prelude/*.gf grammars/prelude/
|
||||||
|
|
||||||
|
cp -pv newresource/mkTest.gf grammars/resource/
|
||||||
|
cp -pv newresource/mkParadigms.gf grammars/resource/
|
||||||
|
cp -pv newresource/README grammars/resource/
|
||||||
|
cp -pv newresource/abstract/*.gf grammars/resource/abstract/
|
||||||
|
cp -pv newresource/english/*.gf grammars/resource/english/
|
||||||
|
cp -pv newresource/finnish/*.gf grammars/resource/finnish/
|
||||||
|
cp -pv newresource/french/*.gf grammars/resource/french/
|
||||||
|
cp -pv newresource/german/*.gf grammars/resource/german/
|
||||||
|
cp -pv newresource/italian/*.gf grammars/resource/italian/
|
||||||
|
cp -pv newresource/romance/*.gf grammars/resource/romance/
|
||||||
|
cp -pv newresource/russian/*.gf grammars/resource/russian/
|
||||||
|
cp -pv newresource/swedish/*.gf grammars/resource/swedish/
|
||||||
53
lib/resource-0.6/README
Normal file
53
lib/resource-0.6/README
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
GF Resource grammar library, v. 0.6.
|
||||||
|
|
||||||
|
To precompile a test suite:
|
||||||
|
|
||||||
|
gf <mkTest.gfs
|
||||||
|
|
||||||
|
To precompile resource syntaxes and paradigms:
|
||||||
|
|
||||||
|
gf <mkParadigms.gfs
|
||||||
|
|
||||||
|
To test multilingual syntax editing:
|
||||||
|
|
||||||
|
jgf TestAll.gfcm
|
||||||
|
|
||||||
|
Modules to use (open) for a given language X:
|
||||||
|
|
||||||
|
ResourceX -- basic resource API
|
||||||
|
ParadigmsX -- morphological paradigms
|
||||||
|
|
||||||
|
API documentation found in
|
||||||
|
|
||||||
|
Combinations -- syntactic categories and combination rules
|
||||||
|
Structural -- structural words
|
||||||
|
ParadigmsX -- parameter types and morphological paradigms
|
||||||
|
|
||||||
|
Known bugs:
|
||||||
|
|
||||||
|
Finnish
|
||||||
|
Numerals (1,2,3,...) are not inflected
|
||||||
|
|
||||||
|
French
|
||||||
|
Order of clitics with ditransitives is not fully controlled
|
||||||
|
|
||||||
|
Italian
|
||||||
|
Order of clitics with ditransitives is not fully controlled
|
||||||
|
|
||||||
|
|
||||||
|
General
|
||||||
|
* Negative noun phrases ("nobody", "nothing", etc) in TestResource are
|
||||||
|
not treated adequately. For instance, in French
|
||||||
|
the negation word "pas" appears even if "rien" or "personne" is present.
|
||||||
|
* The numeral 1 is not treated specially in "these 1 are old" etc
|
||||||
|
|
||||||
|
|
||||||
|
Missing structures
|
||||||
|
* Tense and aspect
|
||||||
|
* "I want you to go"
|
||||||
|
* "I paint the house blue"
|
||||||
|
" "the house that he wants to buy"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Document last updated August 3, 2004, by Aarne Ranta.
|
||||||
@@ -161,7 +161,7 @@ optionsOfCommand co = case co of
|
|||||||
CShowTerm -> flags "printer"
|
CShowTerm -> flags "printer"
|
||||||
CSystemCommand _ -> none
|
CSystemCommand _ -> none
|
||||||
|
|
||||||
CPrintGrammar -> both "utf8" "printer"
|
CPrintGrammar -> both "utf8" "printer lang"
|
||||||
CPrintMultiGrammar -> opts "utf8"
|
CPrintMultiGrammar -> opts "utf8"
|
||||||
|
|
||||||
CHelp _ -> opts "all"
|
CHelp _ -> opts "all"
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import API
|
|||||||
import CommandL
|
import CommandL
|
||||||
import ArchEdit
|
import ArchEdit
|
||||||
|
|
||||||
|
import List
|
||||||
|
|
||||||
-- AR 20/4/2000 -- 12/11/2001
|
-- AR 20/4/2000 -- 12/11/2001
|
||||||
|
|
||||||
editSession :: Options -> ShellState -> IO ()
|
editSession :: Options -> ShellState -> IO ()
|
||||||
@@ -28,7 +30,7 @@ translateSession opts st = do
|
|||||||
cat = firstCatOpts opts (firstStateGrammar st)
|
cat = firstCatOpts opts (firstStateGrammar st)
|
||||||
trans s = unlines $
|
trans s = unlines $
|
||||||
if oElem showLang opts then
|
if oElem showLang opts then
|
||||||
[l +++ ":" +++ s | (l,s) <- zip (map (prIdent . cncId) grs)
|
sort $ [l +++ ":" +++ s | (l,s) <- zip (map (prIdent . cncId) grs)
|
||||||
(translateBetweenAll grs cat s)]
|
(translateBetweenAll grs cat s)]
|
||||||
else translateBetweenAll grs cat s
|
else translateBetweenAll grs cat s
|
||||||
translateLoop opts trans
|
translateLoop opts trans
|
||||||
|
|||||||
Reference in New Issue
Block a user