From 3e293ae3e0b9664fadb118d013563be52f0e5885 Mon Sep 17 00:00:00 2001 From: aarne Date: Sat, 13 Dec 2008 20:19:37 +0000 Subject: bracketing with tree node reference: l -bracket --- src/PGF/ShowLinearize.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/PGF/ShowLinearize.hs') diff --git a/src/PGF/ShowLinearize.hs b/src/PGF/ShowLinearize.hs index 87538201c..26fddd6c2 100644 --- a/src/PGF/ShowLinearize.hs +++ b/src/PGF/ShowLinearize.hs @@ -4,7 +4,8 @@ module PGF.ShowLinearize ( recordLinearize, termLinearize, tabularLinearize, - allLinearize + allLinearize, + markLinearize ) where import PGF.CId @@ -89,6 +90,10 @@ recLinearize pgf lang tree = mkRecord typ $ linTree pgf lang tree where termLinearize :: PGF -> CId -> Tree -> String termLinearize pgf lang = show . linTree pgf lang +-- show bracketed markup with references to tree structure +markLinearize :: PGF -> CId -> Tree -> String +markLinearize pgf lang t = concat $ take 1 $ linearizesMark pgf lang t + -- for Morphology: word, lemma, tags collectWords :: PGF -> CId -> [(String, [(String,String)])] -- cgit v1.2.3