Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htmldoc multiplies content in current version #755

Closed
MartinKl opened this issue Apr 21, 2022 · 0 comments · Fixed by #757
Closed

htmldoc multiplies content in current version #755

MartinKl opened this issue Apr 21, 2022 · 0 comments · Fixed by #757
Assignees
Labels

Comments

@MartinKl
Copy link
Contributor

MartinKl commented Apr 21, 2022

Describe the bug
I am using htmldoc (config below) to render a table for a span that only occurs only once per document (covering all contained tokens). Nevertheless the table is rendered 5 times. In ANNIS3 it was rendered the correct amount of times (once). I'll provide a link to the corpus (internal).

To Reproduce

Steps to reproduce the behavior:

  1. Import the corpus
  2. search "document" (for example)
  3. open the visualizer "edition"
  4. scroll down

If possible, please provide the corpus data needed to test the behavior.
The ANNIS software developers can't access the corpus data of ANNIS server installations.

Expected behavior
Only one table should be visualized (as it used to be in ANNIS3)

Data
https://korpling.org/annis3/#_c=RERELUFELUhlbGlhbmRfMS4y
https://korpling.org/annis/#_c=RERELUFELUhlbGlhbmRfMS4y

Desktop (please complete the following information):

  • Operating System: Ubuntu
  • Browser Firefox, Chrome
  • Java Version: OpenJDK 11
  • ANNIS Version 4.6.4

edition.config:

document	table
verse	tr; style="line"
verse	td:number; style="line"	value
verse	td; style="text"
edition	span:textval; style="word"	escaped_value

edition.css:

.htmlvis{
  font-family: times, serif;
  font-size: 12pt;
  width: 90%;
  height: 100% !important;
  margin: 30px;
  white-space: normal !important;
}
.word[textval]::after {
  content: attr(textval);
}
.word[textval]:not([textval=","]):not([textval="."]):not([textval=":"]):not([textval=";"]):not([textval="?"]):not([textval=")"]):not([textval="--"]):not([textval="-"]):not([textval="!"])::before{
  content: " ";
}
.word[textval="("] {
  margin-right: -4px;
}
caption.page {
  caption-side: bottom;
  text-align: right;
}
tr.line {
  margin-top: 1em;
}
td.line[number] {
  width: 50px;
}
td.line[number$="0"]::before,
td.line[number$="5"]::before {
  content: attr(number);  
}
td.line[number$="1"]::before,
td.line[number$="2"]::before,
td.line[number$="3"]::before,
td.line[number$="4"]::before,
td.line[number$="6"]::before,
td.line[number$="7"]::before,
td.line[number$="8"]::before,
td.line[number$="9"]::before {
  content: attr(number);
  color: #E8E8EE;  
}
td.text {
  width: 500px;
}
@MartinKl MartinKl added the bug label Apr 21, 2022
bors bot added a commit that referenced this issue Apr 22, 2022
757: Do not output the collected output items several times. r=thomaskrause a=thomaskrause

This fixes #755

Co-authored-by: Thomas Krause <thomas.krause@hu-berlin.de>
@bors bors bot closed this as completed in #757 Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants