def gen_output(self, fr): # Using <small> improves rendering in RSS feeds wrapper = tags.div(cls="alectryon-output-sticky-wrapper") with tags.small(cls="alectryon-output").add(wrapper): for output in fr.outputs: if isinstance(output, Messages): assert output.messages, "transforms.commit_io_annotations" with tags.div(cls="alectryon-messages"): for message in output.messages: tags.blockquote(self.highlight(message.contents), cls="alectryon-message") if isinstance(output, Goals): assert output.goals, "transforms.commit_io_annotations" with tags.div(cls="alectryon-goals"): self.gen_goals(output.goals[0], output.goals[1:])
def gen_goal(self, goal, toggle=None): """Serialize a goal to HTML.""" with tags.blockquote(cls="alectryon-goal"): if goal.hypotheses: # Chrome doesn't support the ‘gap’ property in flex containers, # so properly spacing hypotheses requires giving them margins # and giving negative margins to their container. This breaks # when the container is empty, so just omit the hypotheses if # there are none. self.gen_hyps(goal.hypotheses) toggle = goal.hypotheses and toggle cls = "goal-separator" + (" alectryon-extra-goal-label" if toggle else "") with self.gen_label(toggle, cls): tags.hr() if goal.name: tags.span(goal.name, cls="goal-name") tags.div(self.highlight(goal.conclusion), cls="goal-conclusion")
def render(self): with div(): p(self.note) blockquote(p(self.quotation))
# tags.link(rel="stylesheet", href="static/style.css") tags.link(rel="shortcut icon", href="favicon.ico", type="image/x-icon") # fmt: off with doc: with tags.body(): with tags.div(cls="container"): tags.h1("Speaker disentanglement in video-to-speech conversion", cls="mt-5") with tags.p(): tags.span( "This web-page presents results for our Interspeech 2020 submission:" ) tags.blockquote(raw( r"Dan Oneață, Adriana Stan, Horia Cucu. Speaker disentanglement in video-to-speech conversion." ), cls="blockqoute ml-4 font-italic") tags.span( "We show qualitative results for two sets of experiments:") with tags.ul(): with tags.li(): tags.a("video-to-speech", href="#video-to-speech") tags.span( "in which we evaluate our baseline system with respect to the previous work;" ) with tags.li(): tags.a("speaker control", href="#speaker-control") tags.span(