From 00ede349dc02a4fc73aa06de7e9243fa0ba8a717 Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 23 May 2017 23:13:37 +0200 Subject: [PATCH] Add table row for linguistic annotations --- website/_includes/_mixins.jade | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 250865884..f815d9c4a 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -352,7 +352,22 @@ mixin pos-row(tag, pos, morph, desc) | #[code=m] +cell.u-text-small=desc + mixin dep-row(label, desc) +row +cell #[code=label] +cell=desc + + +//- Table rows for linguistic annotations + annots [array] - array of cell content + style [array] array of 1 (display as code) or 0 (display as text) + +mixin annotation-row(annots, style) + +row + for cell, i in annots + if style && style[i] + - cell = (typeof(cell) != 'boolean') ? cell : cell ? 'True' : 'False' + +cell #[code=cell] + else + +cell=cell