Skip to content

Feature/#164 annotations html implementation of simple motifs

Feature

Summary

This MR introduces an in-memory intermediate format for simple motifs(*) which is produces by the motifs-expansion.xqm module. It detects motifs (encoded as oXygen comment/processing instruction) and converts them to tei:span. A simply motif spanning several lines is transformed to several tei:span elements which are connected via an ID and the @next attribute.

This intermediate format is then used to create an xhtml:span when creating the HTML pages in tei2html.xqm module, making the motifs findable by the annotation panel.

(*) simple motifs are text passages in which only one motif is present, i.e. a piece of text doesn't have more than one motif. For the complex case cf. #165 (closed).

Compliance to “Definition of Done”

  • Unit tests passed
  • Code reviewed
  • Product Owner accepts the User Story

Documentation

  • I updated the README (if applicable)
  • I provided my functions with appropriate documentation
  • I updated existing documentation

Tests

Are we able to test this new feature?

  • Yes, everything can be done via unit tests.

Changelog

  • I added a statement to the CHANGELOG.

Version number

  • I bumped the version number in build.properties.

Closes

Closes #164 (closed)

Logs and Screenshots

How the motifs look like in HTML

Screenshot_2021-05-07_12-32-46

AnnotationAPI now considers multi-line motifs in ID creation

image

/cc Mathias Göbel, Frank Schneider, Michelle Weidling

Edited by Michelle Weidling

Merge request reports