mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 11:12:51 -06:00
Japanese added to RGL Make and synopsis
This commit is contained in:
6
lib/src/japanese/AllJap.gf
Normal file
6
lib/src/japanese/AllJap.gf
Normal file
@@ -0,0 +1,6 @@
|
||||
--# -path=.:../abstract:../common:../prelude
|
||||
|
||||
concrete AllJap of AllJapAbs =
|
||||
LangJap
|
||||
-- ExtraJap
|
||||
** {} ;
|
||||
4
lib/src/japanese/AllJapAbs.gf
Normal file
4
lib/src/japanese/AllJapAbs.gf
Normal file
@@ -0,0 +1,4 @@
|
||||
abstract AllJapAbs =
|
||||
Lang
|
||||
-- ExtraJapAbs
|
||||
** {} ;
|
||||
@@ -1,4 +1,4 @@
|
||||
concrete LexiconJap of Lexicon = GrammarJap ** open ParadigmsJap, ResJap, Prelude in {
|
||||
concrete LexiconJap of Lexicon = CatJap ** open ParadigmsJap, ResJap, Prelude in {
|
||||
|
||||
flags coding = utf8 ;
|
||||
|
||||
|
||||
54
lib/src/japanese/SymbolJap.gf
Normal file
54
lib/src/japanese/SymbolJap.gf
Normal file
@@ -0,0 +1,54 @@
|
||||
--# -path=.:../abstract:../common
|
||||
|
||||
concrete SymbolJap of Symbol = CatJap ** open Prelude, ResJap in {
|
||||
|
||||
flags coding = utf8;
|
||||
{-
|
||||
lin
|
||||
SymbPN i = {s = addGenitiveS i.s ; g = Masc ; t = NonLiving ; h = Pers3_L } ;
|
||||
|
||||
IntPN i = {s = addGenitiveS i.s ; g = Masc ; t = NonLiving ; h = Pers3_L } ;
|
||||
|
||||
FloatPN i = {s = addGenitiveS i.s ; g = Masc ; t = NonLiving ; h = Pers3_L } ;
|
||||
|
||||
NumPN i = {s = \\_ =>i.s ; g = Masc ; t = NonLiving ; h = Pers3_L } ;
|
||||
|
||||
CNIntNP cn i = {
|
||||
s = \\c => cn.s ! Sg ! Nom ++ i.s ;
|
||||
a = agrP3 cn.g Sg ;
|
||||
t = NonLiving
|
||||
} ;
|
||||
|
||||
CNSymbNP det cn xs = {
|
||||
s = \\c => det.s!Sg!Masc ++ cn.s ! det.n ! Nom ++ xs.s ;
|
||||
a = agrP3 cn.g det.n ;
|
||||
t = NonLiving
|
||||
} ;
|
||||
|
||||
CNNumNP cn i = {
|
||||
s = \\c => cn.s ! Sg ! Nom ++ i.s ;
|
||||
a = agrP3 cn.g Sg ;
|
||||
t = NonLiving
|
||||
} ;
|
||||
|
||||
SymbS sy = sy ;
|
||||
SymbNum sy = { s = sy.s ; n = Pl } ;
|
||||
SymbOrd sy = { s = sy.s ++ "ौँ" ; n = Pl} ;
|
||||
|
||||
lincat
|
||||
|
||||
Symb, [Symb] = SS ;
|
||||
|
||||
lin
|
||||
MkSymb s = s ;
|
||||
|
||||
BaseSymb = infixSS "र" ;
|
||||
ConsSymb = infixSS "," ;
|
||||
|
||||
oper
|
||||
-- Note: this results in a space before 's, but there's
|
||||
-- not mauch we can do about that.
|
||||
addGenitiveS : Str -> Case => Str = \s ->
|
||||
table {_ => Prelude.glue s "दा" } ;
|
||||
-}
|
||||
}
|
||||
Reference in New Issue
Block a user