You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the HTML Vis produces a lot of code because of span beginning/end comments. These are necessary in part in order to prevent automatic space rendering between HTML elements: a CSS hack described here was used by making comments that contain a line break, preventing forced spaces between rendered elements:
The problem is that the resulting HTML can get fairly large, which is wasteful when ingesting large amounts of HTML, for example in data.copticscriptorium.org, which fetches hundreds of HTML visualizers from ANNIS.
Therefore it would be good to:
Make the HTML comments smaller in general: instead of comments like
<!-- end of "norm" -->
We could just use 'e' and 's' for start and end:
<!-- e -->
This is less useful for debugging, but fine for a production server (users never see these)
It would be good to make this behavior paramterizable via a mappings parameter. Three modes could be used: comments:{verbose;minimal;none}
Verbose would be the old comments ('end of norm')
Minimal would be just 'e' and 's'
None would be no comments, for visualizers that don't need the space hack described above.
This would reduce bandwidth, memory load and potentially readability of the generated HTML, at least in simple scenarios.
The text was updated successfully, but these errors were encountered:
Currently the HTML Vis produces a lot of code because of span beginning/end comments. These are necessary in part in order to prevent automatic space rendering between HTML elements: a CSS hack described here was used by making comments that contain a line break, preventing forced spaces between rendered elements:
https://css-tricks.com/fighting-the-space-between-inline-block-elements/
The problem is that the resulting HTML can get fairly large, which is wasteful when ingesting large amounts of HTML, for example in data.copticscriptorium.org, which fetches hundreds of HTML visualizers from ANNIS.
Therefore it would be good to:
Make the HTML comments smaller in general: instead of comments like
We could just use 'e' and 's' for start and end:
This is less useful for debugging, but fine for a production server (users never see these)
It would be good to make this behavior paramterizable via a mappings parameter. Three modes could be used: comments:{verbose;minimal;none}
This would reduce bandwidth, memory load and potentially readability of the generated HTML, at least in simple scenarios.
The text was updated successfully, but these errors were encountered: