forked from GitHub/gf-core
a minimal implementation for DocumentationTha and DocumentationJpn which is enough for showing the lexical definitions
This commit is contained in:
16
lib/src/japanese/DocumentationJpn.gf
Normal file
16
lib/src/japanese/DocumentationJpn.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
--# -path=.:../abstract:../common
|
||||
concrete DocumentationJpn of Documentation = CatJpn ** open
|
||||
HTML in {
|
||||
|
||||
lincat
|
||||
Inflection = {t : Str; s1,s2 : Str} ;
|
||||
Definition = {s : Str} ;
|
||||
Document = {s : Str} ;
|
||||
Tag = {s : Str} ;
|
||||
|
||||
lin
|
||||
NoDefinition = {s=""};
|
||||
MkDefinition d = {s="<p>"++d.s++"</p>"};
|
||||
MkDefinitionEx d e = {s="<p>"++d.s++"</p><p>"++e.s++"</p>"};
|
||||
|
||||
}
|
||||
@@ -3,5 +3,6 @@
|
||||
concrete LangJpn of Lang =
|
||||
GrammarJpn,
|
||||
LexiconJpn
|
||||
,DocumentationJpn --# notpresent
|
||||
;
|
||||
|
||||
|
||||
16
lib/src/thai/DocumentationTha.gf
Normal file
16
lib/src/thai/DocumentationTha.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
--# -path=.:../abstract:../common
|
||||
concrete DocumentationTha of Documentation = CatTha ** open
|
||||
HTML in {
|
||||
|
||||
lincat
|
||||
Inflection = {t : Str; s1,s2 : Str} ;
|
||||
Definition = {s : Str} ;
|
||||
Document = {s : Str} ;
|
||||
Tag = {s : Str} ;
|
||||
|
||||
lin
|
||||
NoDefinition = {s=""};
|
||||
MkDefinition d = {s="<p>"++d.s++"</p>"};
|
||||
MkDefinitionEx d e = {s="<p>"++d.s++"</p><p>"++e.s++"</p>"};
|
||||
|
||||
}
|
||||
@@ -4,6 +4,7 @@ concrete LangTha of Lang =
|
||||
GrammarTha,
|
||||
LexiconTha
|
||||
,ConstructionTha
|
||||
,DocumentationTha --# notpresent
|
||||
** {
|
||||
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ concrete TranslateJpn of Translate =
|
||||
RelativeJpn,
|
||||
IdiomJpn,
|
||||
---- ConstructionJpn, ---- TODO
|
||||
---- DocumentationJpn, ---- TODO
|
||||
DocumentationJpn, ---- TODO
|
||||
|
||||
ChunkJpn,
|
||||
ExtensionsJpn [
|
||||
|
||||
@@ -21,7 +21,7 @@ concrete TranslateTha of Translate =
|
||||
RelativeTha,
|
||||
IdiomTha,
|
||||
ConstructionTha,
|
||||
-- DocumentationTha,
|
||||
DocumentationTha,
|
||||
|
||||
ChunkTha,
|
||||
ExtensionsTha [
|
||||
|
||||
Reference in New Issue
Block a user