forked from GitHub/gf-core
updated document for numerals
This commit is contained in:
@@ -18,18 +18,14 @@ To precompile a multilingual numeral grammar:
|
|||||||
|
|
||||||
gf <mkNumerals.gfs
|
gf <mkNumerals.gfs
|
||||||
|
|
||||||
To open a translation session,
|
To test,
|
||||||
|
|
||||||
gf numerals.gfcm -- in the OS shell
|
gf numerals.gfcm -- in the OS shell
|
||||||
ts -lang -- in the GF shell
|
generate_random | tree_bank -- in the GF shell
|
||||||
|
|
||||||
To create an example HTML page with translations of a numeral:
|
parse -lang=danish "tres" | linearize -lang=english
|
||||||
|
|
||||||
echo "x=2341" | gft numerals.gfcm >2341.html
|
Document last updated 18 June 2007 by Aarne Ranta.
|
||||||
|
|
||||||
(Requires the gft program, produced 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
|
Copyright (c) Koen Claessen, Carlos Gonzalía, Qiao Haiyan, Harald
|
||||||
Hammarström, Patrik Jansson, Peter Ljunglöf, Wojciech Mostowski, Aarne
|
Hammarström, Patrik Jansson, Peter Ljunglöf, Wojciech Mostowski, Aarne
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
include numerals.Abs.gf ;
|
include numerals.Abs.gf ;
|
||||||
|
|
||||||
|
flags lexer = words ;
|
||||||
|
|
||||||
param Size = sg | sub10 | pl ;
|
param Size = sg | sub10 | pl ;
|
||||||
|
|
||||||
oper LinDigit = {s : Str ; size : Size} ;
|
oper LinDigit = {s : Str ; size : Size} ;
|
||||||
|
|||||||
Reference in New Issue
Block a user