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 =
|
concrete LangJpn of Lang =
|
||||||
GrammarJpn,
|
GrammarJpn,
|
||||||
LexiconJpn
|
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,
|
GrammarTha,
|
||||||
LexiconTha
|
LexiconTha
|
||||||
,ConstructionTha
|
,ConstructionTha
|
||||||
|
,DocumentationTha --# notpresent
|
||||||
** {
|
** {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ concrete TranslateJpn of Translate =
|
|||||||
RelativeJpn,
|
RelativeJpn,
|
||||||
IdiomJpn,
|
IdiomJpn,
|
||||||
---- ConstructionJpn, ---- TODO
|
---- ConstructionJpn, ---- TODO
|
||||||
---- DocumentationJpn, ---- TODO
|
DocumentationJpn, ---- TODO
|
||||||
|
|
||||||
ChunkJpn,
|
ChunkJpn,
|
||||||
ExtensionsJpn [
|
ExtensionsJpn [
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ concrete TranslateTha of Translate =
|
|||||||
RelativeTha,
|
RelativeTha,
|
||||||
IdiomTha,
|
IdiomTha,
|
||||||
ConstructionTha,
|
ConstructionTha,
|
||||||
-- DocumentationTha,
|
DocumentationTha,
|
||||||
|
|
||||||
ChunkTha,
|
ChunkTha,
|
||||||
ExtensionsTha [
|
ExtensionsTha [
|
||||||
|
|||||||
Reference in New Issue
Block a user