forked from GitHub/gf-core
module Markup for marking up subphrases with html tags (or other things). Implemented for Eng and Swe so far.
This commit is contained in:
13
lib/src/scandinavian/MarkupScand.gf
Normal file
13
lib/src/scandinavian/MarkupScand.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
incomplete concrete MarkupScand of Markup = CatScand, MarkHTMLX ** open ResScand in {
|
||||
|
||||
lin
|
||||
MarkupCN m cn = {s = \\n,d,c => appMark m (cn.s ! n ! d ! c) ; g = cn.g ; isMod = cn.isMod} ;
|
||||
MarkupNP m np = {s = \\c => appMark m (np.s ! c) ; a = np.a} ;
|
||||
MarkupAP m ap = {s = \\a => appMark m (ap.s ! a) ; isPre = ap.isPre} ;
|
||||
MarkupAdv m adv = {s = appMark m adv.s} ;
|
||||
MarkupS m s = {s = \\o => appMark m (s.s ! o)} ;
|
||||
MarkupUtt m utt = {s = appMark m utt.s} ;
|
||||
MarkupPhr m phr = {s = appMark m phr.s} ;
|
||||
MarkupText m txt = {s = appMark m txt.s} ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user